@@ -1095,25 +1095,28 @@ async def test_validate_name(storage_client: StorageClient, name: str, *, is_val
10951095
10961096
10971097@pytest .mark .parametrize (
1098- 'tested_storage_client ' ,
1098+ 'tested_storage_client_class ' ,
10991099 [
1100- pytest .param (MemoryStorageClient () , id = 'tested=MemoryStorageClient' ),
1101- pytest .param (FileSystemStorageClient () , id = 'tested=FileSystemStorageClient' ),
1102- pytest .param (SqlStorageClient () , id = 'tested=SqlStorageClient' ),
1100+ pytest .param (MemoryStorageClient , id = 'tested=MemoryStorageClient' ),
1101+ pytest .param (FileSystemStorageClient , id = 'tested=FileSystemStorageClient' ),
1102+ pytest .param (SqlStorageClient , id = 'tested=SqlStorageClient' ),
11031103 ],
11041104)
11051105@pytest .mark .parametrize (
1106- 'global_storage_client ' ,
1106+ 'global_storage_client_class ' ,
11071107 [
1108- pytest .param (MemoryStorageClient () , id = 'global=MemoryStorageClient' ),
1109- pytest .param (FileSystemStorageClient () , id = 'global=FileSystemStorageClient' ),
1110- pytest .param (SqlStorageClient () , id = 'global=SqlStorageClient' ),
1108+ pytest .param (MemoryStorageClient , id = 'global=MemoryStorageClient' ),
1109+ pytest .param (FileSystemStorageClient , id = 'global=FileSystemStorageClient' ),
1110+ pytest .param (SqlStorageClient , id = 'global=SqlStorageClient' ),
11111111 ],
11121112)
11131113async def test_get_auto_saved_value_various_global_clients (
1114- tmp_path : Path , tested_storage_client : StorageClient , global_storage_client : StorageClient
1114+ tmp_path : Path , tested_storage_client_class : type [ StorageClient ], global_storage_client_class : type [ StorageClient ]
11151115) -> None :
11161116 """Ensure that persistence is working for all clients regardless of what is set in service locator."""
1117+ tested_storage_client = tested_storage_client_class ()
1118+ global_storage_client = global_storage_client_class ()
1119+
11171120 service_locator .set_configuration (
11181121 Configuration (
11191122 storage_dir = str (tmp_path ),
0 commit comments