-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed possibility to run single tests * use full standard instead of fixture files for most tests * download and cache standard in the CI * fix to handle empty tag with type 1C as an error * use lxml used instead of xml for xml parsing
- Loading branch information
1 parent
90207ba
commit e163b5d
Showing
27 changed files
with
174 additions
and
13,482 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import argparse | ||
|
||
from dicom_validator.spec_reader.edition_reader import EditionReader | ||
|
||
|
||
def get_revision(revision, path): | ||
reader = EditionReader(path) | ||
# we want to recreate the json files for each test run | ||
# so we don't want them cached | ||
reader.get_revision(revision, create_json=False) | ||
|
||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser( | ||
description="Downloads a revision of the DICOM standard" | ||
) | ||
parser.add_argument( | ||
"revision", | ||
help="Standard revision", | ||
) | ||
parser.add_argument( | ||
"path", | ||
help="Path for the DICOM specs", | ||
) | ||
args = parser.parse_args() | ||
get_revision(args.revision, args.path) |
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
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
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
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
128 changes: 0 additions & 128 deletions
128
dicom_validator/tests/fixtures/2021d/json/dict_info.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.