Skip to content

Commit af5156a

Browse files
committed
fix: xfail serialization test
We need better object comparison methods first.
1 parent bd91d0c commit af5156a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_integration/test_workspace_io.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from pydantic import ValidationError
2424

2525
from structurizr import Workspace, WorkspaceIO
26+
from structurizr.model import ModelIO
2627

2728

2829
DEFINITIONS = Path(__file__).parent / "data" / "workspace_definition"
@@ -55,6 +56,7 @@ def test_deserialize_workspace(filename):
5556
Workspace.load(path)
5657

5758

59+
@pytest.mark.xfail(reason="Workspace and model comparison is still id dependent.")
5860
@pytest.mark.parametrize(
5961
"example, filename", [("getting_started", "GettingStarted.json.gz")]
6062
)
@@ -63,5 +65,5 @@ def test_serialize_workspace(example, filename, monkeypatch):
6365
monkeypatch.syspath_prepend(EXAMPLES)
6466
example = import_module(example)
6567
path = DEFINITIONS / filename
66-
expected = Workspace.load(path)
67-
assert example.main() == expected
68+
expected = ModelIO.from_orm(Workspace.load(path).model)
69+
assert ModelIO.from_orm(example.main().model) == expected

0 commit comments

Comments
 (0)