Skip to content

Commit

Permalink
flake8 for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Beliy Nikita committed Jun 12, 2024
1 parent 8addfab commit d2a597b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def test_get_sidecar_rule(self):
# Testing with skip
inputs = {"datatype": "eeg",
"suffix": "coordsystem"}
rules = BIDSschema.get_sidecar_rule(skip="(sidecar|entities|modality|dataset)",
ruleset=ruleset, **inputs)
rules = BIDSschema.get_sidecar_rule(
skip="(sidecar|entities|modality|dataset)",
ruleset=ruleset, **inputs)
rules_list = list(rules.keys())
self.assertCountEqual(
["eeg/EEGCoordsystemGeneral",
Expand Down Expand Up @@ -574,7 +575,7 @@ def test_validation(self):
fname = "anat/sub-123_ses-456_T1w.nii"
sidecar = {}
self.assertTrue(BIDSschema.validate(fname, sidecar))

# invalid name
fname = "anat/sub-123_ses-456_T1w"
with self.assertLogs(level=logging.ERROR):
Expand Down Expand Up @@ -631,7 +632,6 @@ def test_get_sidecar(self):
sidecar = {"IntendedFor": None,
"EEGCoordinateSystem": "<<placeholder>>",
"EEGCoordinateUnits": "<<placeholder>>",
"EEGCoordinateSystemDescription": "",
"EEGCoordinateSystemDescription": "<<placeholder>>",
"FiducialsDescription": None,
"FiducialsCoordinates": "",
Expand Down

0 comments on commit d2a597b

Please sign in to comment.