We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a241b09 commit 53782c9Copy full SHA for 53782c9
tests/integration/test_workspace_io.py
@@ -32,6 +32,7 @@
32
33
34
def pytest_generate_tests(metafunc) -> None:
35
+ """Generate test parameters for invalid workspace tests."""
36
if "invalid_workspace" in metafunc.fixturenames:
37
files = sorted(Path("data", "workspace_validation").glob("*.json"))
38
ids = [p.name for p in files]
@@ -46,6 +47,12 @@ def pytest_generate_tests(metafunc) -> None:
46
47
48
49
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
56
WorkspaceIO.parse_file(invalid_workspace)
57
58
0 commit comments