Skip to content

Commit 7b10473

Browse files
committed
add comments to tests
1 parent 722aec4 commit 7b10473

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_data_api/test_multiscales.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"json_example", MULTISCALES_EXAMPLES.items(), ids=lambda v: v[0]
1313
)
1414
def test_multiscales_rt(json_example: tuple[str, dict[str, object]]) -> None:
15+
"""
16+
Test that the multiscales metadata round-trips input JSON
17+
"""
1518
_, value = json_example
1619
value_tup = tuplify_json(value)
1720
multi_json = value_tup["attributes"]["multiscales"]
@@ -22,6 +25,10 @@ def test_multiscales_rt(json_example: tuple[str, dict[str, object]]) -> None:
2225

2326

2427
def test_scale_level_from_group() -> None:
28+
"""
29+
Test that the ScaleLevel metadata rejects a dict with
30+
from_group but no "scale" attribute
31+
"""
2532
meta = {"group": "1", "from_group": "0"}
2633
with pytest.raises(ValidationError):
2734
ScaleLevel(**meta)

0 commit comments

Comments
 (0)