3737
3838@pytest .fixture (scope = "module" )
3939def archive_location (tmp_path_factory ):
40+ """Provide a path for archive files for test cases."""
4041 location = tmp_path_factory .mktemp ("structurizr" )
4142 return str (location )
4243
@@ -53,6 +54,7 @@ def settings(archive_location):
5354
5455
5556def test_empty_workspace_without_encryption (settings ):
57+ """Test basic upload and download of an empty workspace."""
5658 workspace = Workspace (
5759 id = settings .workspace_id ,
5860 name = "e2e-tests - without encryption" ,
@@ -66,6 +68,7 @@ def test_empty_workspace_without_encryption(settings):
6668
6769
6870def test_interact_with_workspace_without_encryption (settings ):
71+ """Test basic upload and download of a populated workspace."""
6972 # Set up a toy workspace.
7073 workspace = Workspace (
7174 id = settings .workspace_id ,
@@ -100,13 +103,15 @@ def test_interact_with_workspace_without_encryption(settings):
100103
101104
102105def test_lock_workspace (settings ):
106+ """Check locking a workspace."""
103107 client = StructurizrClient (settings = settings )
104108 client .unlock_workspace ()
105109 assert client .lock_workspace ()
106110 client .close ()
107111
108112
109113def test_unlock_workspace (settings ):
114+ """Check unlocking a workspace."""
110115 client = StructurizrClient (settings = settings )
111116 client .lock_workspace ()
112117 assert client .unlock_workspace ()
0 commit comments