Commit 9ed04a6
[SCHEMA] Very minor tune ups to the test_rule_objects test while trying to grasp its function (#1728)
* RF: minor simplification of Python code
If the point is to go through values, just go through .values()
without iterating through keys() and then dereferencing via [key]
* Raise AssertionError in the test, not ValueError
Since then also it is not clear if that is indeed some ValueError from within code.
I also added a string which summarizes the problem.
* Update tools/schemacode/bidsschematools/data/tests/test_rules.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Chris Markiewicz <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 8628630 commit 9ed04a6
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
0 commit comments