77
88import weaviate
99import weaviate .classes as wvc
10- from weaviate .backup .executor import (
10+ from weaviate .backup .backup import (
1111 BackupCompressionLevel ,
1212 BackupConfigCreate ,
1313 BackupConfigRestore ,
@@ -117,7 +117,6 @@ def _create_backup_id() -> str:
117117 return str (round (time .time_ns () * 1000 ))
118118
119119
120- @pytest .mark .serial
121120def test_create_and_restore_backup_with_waiting (client : weaviate .WeaviateClient ) -> None :
122121 """Create and restore backup with waiting."""
123122 backup_id = _create_backup_id ()
@@ -156,7 +155,6 @@ def test_create_and_restore_backup_with_waiting(client: weaviate.WeaviateClient)
156155 assert restore_status .status == BackupStatus .SUCCESS
157156
158157
159- @pytest .mark .serial
160158@pytest .mark .parametrize ("include" , [["Article" ], "Article" ])
161159def test_create_and_restore_backup_without_waiting (
162160 client : weaviate .WeaviateClient , include : Union [str , List [str ]]
@@ -212,7 +210,6 @@ def test_create_and_restore_backup_without_waiting(
212210 assert len (client .collections .use ("Article" )) == len (ARTICLES_IDS )
213211
214212
215- @pytest .mark .serial
216213def test_create_and_restore_1_of_2_classes (client : weaviate .WeaviateClient ) -> None :
217214 """Create and restore 1 of 2 classes."""
218215 backup_id = _create_backup_id ()
@@ -248,7 +245,6 @@ def test_create_and_restore_1_of_2_classes(client: weaviate.WeaviateClient) -> N
248245 assert restore_status .status == BackupStatus .SUCCESS
249246
250247
251- @pytest .mark .serial
252248def test_fail_on_non_existing_class (client : weaviate .WeaviateClient ) -> None :
253249 """Fail backup functions on non-existing class"""
254250 backup_id = _create_backup_id ()
@@ -260,7 +256,6 @@ def test_fail_on_non_existing_class(client: weaviate.WeaviateClient) -> None:
260256 assert "422" in str (excinfo .value )
261257
262258
263- @pytest .mark .serial
264259def test_fail_restoring_backup_for_existing_class (client : weaviate .WeaviateClient ) -> None :
265260 """Fail restoring backup for existing class."""
266261 backup_id = _create_backup_id ()
@@ -285,7 +280,6 @@ def test_fail_restoring_backup_for_existing_class(client: weaviate.WeaviateClien
285280 assert "already exists" in str (excinfo .value )
286281
287282
288- @pytest .mark .serial
289283def test_fail_creating_existing_backup (client : weaviate .WeaviateClient ) -> None :
290284 """Fail creating existing backup."""
291285 backup_id = _create_backup_id ()
@@ -310,7 +304,6 @@ def test_fail_creating_existing_backup(client: weaviate.WeaviateClient) -> None:
310304 assert "422" in str (excinfo .value )
311305
312306
313- @pytest .mark .serial
314307def test_fail_restoring_non_existing_backup (client : weaviate .WeaviateClient ) -> None :
315308 """Fail restoring non-existing backup."""
316309 backup_id = _create_backup_id ()
@@ -320,7 +313,6 @@ def test_fail_restoring_non_existing_backup(client: weaviate.WeaviateClient) ->
320313 assert "404" in str (excinfo .value )
321314
322315
323- @pytest .mark .serial
324316def test_fail_checking_status_for_non_existing_restore (client : weaviate .WeaviateClient ) -> None :
325317 """Fail checking restore status for non-existing restore."""
326318 backup_id = _create_backup_id ()
@@ -334,7 +326,6 @@ def test_fail_checking_status_for_non_existing_restore(client: weaviate.Weaviate
334326 assert "404" in str (excinfo )
335327
336328
337- @pytest .mark .serial
338329def test_fail_creating_backup_for_both_include_and_exclude_classes (
339330 client : weaviate .WeaviateClient ,
340331) -> None :
@@ -357,7 +348,6 @@ def test_fail_creating_backup_for_both_include_and_exclude_classes(
357348 )
358349
359350
360- @pytest .mark .serial
361351@pytest .mark .parametrize ("dynamic_backup_location" , [False , True ])
362352def test_backup_and_restore_with_collection (
363353 client : weaviate .WeaviateClient , dynamic_backup_location : bool , tmp_path : pathlib .Path
@@ -414,7 +404,6 @@ def test_backup_and_restore_with_collection(
414404 assert restore_status .status == BackupStatus .SUCCESS
415405
416406
417- @pytest .mark .serial
418407def test_backup_and_restore_with_collection_and_config_1_24_x (
419408 client : weaviate .WeaviateClient ,
420409) -> None :
@@ -462,7 +451,6 @@ def test_backup_and_restore_with_collection_and_config_1_24_x(
462451 assert restore_status .status == BackupStatus .SUCCESS
463452
464453
465- @pytest .mark .serial
466454def test_backup_and_restore_with_collection_and_config_1_23_x (
467455 client : weaviate .WeaviateClient ,
468456) -> None :
@@ -508,7 +496,6 @@ def test_backup_and_restore_with_collection_and_config_1_23_x(
508496# assert backup_id in [b.backup_id for b in backups]
509497
510498
511- @pytest .mark .serial
512499@pytest .mark .parametrize ("dynamic_backup_location" , [False , True ])
513500def test_cancel_backup (
514501 client : weaviate .WeaviateClient , dynamic_backup_location , tmp_path : pathlib .Path
0 commit comments