Skip to content

Commit 53782c9

Browse files
yt-msMidnighter
authored andcommitted
docs(integration tests): fix flake8 warnings
1 parent a241b09 commit 53782c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/test_workspace_io.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333

3434
def pytest_generate_tests(metafunc) -> None:
35+
"""Generate test parameters for invalid workspace tests."""
3536
if "invalid_workspace" in metafunc.fixturenames:
3637
files = sorted(Path("data", "workspace_validation").glob("*.json"))
3738
ids = [p.name for p in files]
@@ -46,6 +47,12 @@ def pytest_generate_tests(metafunc) -> None:
4647

4748

4849
def test_invalid_workspace(invalid_workspace):
50+
"""
51+
Test that invalid workspaces raise ValidationError.
52+
53+
Note that the parameterisation of this test, including that it raises a vaalidation
54+
error is controlled through `pytest_generate_tests`.
55+
"""
4956
WorkspaceIO.parse_file(invalid_workspace)
5057

5158

0 commit comments

Comments
 (0)