Skip to content

Commit 77eab2c

Browse files
committed
refactor: make use of new API
1 parent faaddd4 commit 77eab2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_e2e/test_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def test_interact_with_workspace_without_encryption(settings):
7676
# Verify the generated archive.
7777
archives = list(settings.workspace_archive_location.glob("*.json.gz"))
7878
assert len(archives) == 1
79-
with gzip.open(archives[0], mode="rt") as handle:
80-
archived_ws: Workspace = Workspace.parse_raw(handle.read())
79+
archived_ws: Workspace = Workspace.load(archives[0])
8180
assert archived_ws.id == 20081
8281
assert archived_ws.name == "structurizr-python e2e-tests - without encryption"
8382
assert len(archived_ws.model.software_systems) == 1

0 commit comments

Comments
 (0)