Skip to content

Commit 7d16ef0

Browse files
committed
SaasBucket test
1 parent 7957f59 commit 7d16ef0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/integration/test_cloud_storage.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pytest
12
from exasol.nb_connector.secret_store import Secrets
23
from exasol.nb_connector.github import retrieve_jar, Project
34
from exasol.nb_connector.connections import open_bucketfs_connection, open_pyexasol_connection
@@ -19,3 +20,11 @@ def test_cloud_storage_setup_scripts(
1920
setup_scripts(db_conn, secrets.db_schema, str(bfs_jar_path))
2021
counts = get_script_counts(db_conn, secrets)
2122
assert counts['UDF'] == 3
23+
24+
25+
# this test was used to check SaaS integration tests, but
26+
# might be broken if SaaSBucket will support iteration eventually
27+
def test_saas_bucket_cannot_be_iterated(secrets: Secrets, setup_itde):
28+
bucket = open_bucketfs_connection(secrets)
29+
with pytest.raises(TypeError, match="not iterable"):
30+
list(bucket)

0 commit comments

Comments
 (0)