-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from sensein/alistair/resource_fixes
Alistair/resource fixes
- Loading branch information
Showing
6 changed files
with
22 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ tts = [ | |
dev = [ | ||
"b2aiprep[doc]", | ||
"pytest", | ||
"pytest-benchmark", | ||
"pre-commit" | ||
] | ||
|
||
|
File renamed without changes.
File renamed without changes.
41 changes: 0 additions & 41 deletions
41
src/b2aiprep/resources/instrument_columns/precancerouseLesions.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Tests for the resources module.""" | ||
|
||
from importlib.resources import files | ||
|
||
from b2aiprep.constants import GENERAL_QUESTIONNAIRES | ||
|
||
|
||
def test_verify_all_resources_are_present(): | ||
"""Verify that all resource JSON files are present in the instrument_columns folder.""" | ||
|
||
b2ai_resources = ( | ||
files("b2aiprep").joinpath("resources").joinpath("instrument_columns") | ||
) | ||
for questionnaire_name in GENERAL_QUESTIONNAIRES: | ||
assert b2ai_resources.joinpath(f"{questionnaire_name}.json").exists() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters