Skip to content

Commit

Permalink
Fix some test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed May 17, 2024
1 parent 9009878 commit 68d69a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extra_data/tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_zeros_in_train_ids(agipd_file):

with raises(ValidationError) as excinfo:
FileValidator(FileAccess(agipd_file)).validate()
problem = excinfo.value.problems.pop()
problem = excinfo.value.problems[0]
assert problem['msg'] == 'Zeroes in trainId index before last train ID'
assert problem['dataset'] == 'INDEX/trainId'
assert 'RAW-R0239-AGIPD00-S00000.h5' in problem['file']
Expand Down
2 changes: 1 addition & 1 deletion extra_data/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def main(argv=None):
args = ap.parse_args(argv)

available_checks = {f.__name__ for f in FileValidator.check_funcs}
bad_skips = set(args.skip) - available_checks
bad_skips = set(args.skip or []) - available_checks
if bad_skips:
print("Unknown names passed to --skip:", ", ".join(sorted(bad_skips)))
return 1
Expand Down

0 comments on commit 68d69a3

Please sign in to comment.