From b385b9a7dd02bff1f0f32608d7fab734a15fc035 Mon Sep 17 00:00:00 2001 From: Maxim Lapan Date: Tue, 7 Jan 2025 10:57:15 +0100 Subject: [PATCH] Add backend fixture --- test/integration/test_cloud_storage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/test_cloud_storage.py b/test/integration/test_cloud_storage.py index 93653cd..fd12c1d 100644 --- a/test/integration/test_cloud_storage.py +++ b/test/integration/test_cloud_storage.py @@ -24,7 +24,9 @@ def test_cloud_storage_setup_scripts( # this test was used to check SaaS integration tests, but # might be broken if SaaSBucket will support iteration eventually -def test_saas_bucket_cannot_be_iterated(secrets: Secrets, setup_itde): +def test_saas_bucket_cannot_be_iterated(backend, secrets: Secrets, setup_itde): + if backend != "saas": + pytest.skip('The test runs only with SaaS database') bucket = open_bucketfs_connection(secrets) with pytest.raises(TypeError, match="not iterable"): list(bucket)