From 7d15a6b7b53cd6e5db33e9c84235acfc1ca0a807 Mon Sep 17 00:00:00 2001 From: "marcel.kocisek" Date: Fri, 12 Sep 2025 10:25:56 +0200 Subject: [PATCH] Close connection to make runnable test in new python and skip test for chunks cache on v1 supported server --- mergin/test/test_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mergin/test/test_client.py b/mergin/test/test_client.py index fdd988a..d366b25 100644 --- a/mergin/test/test_client.py +++ b/mergin/test/test_client.py @@ -1364,6 +1364,7 @@ def _create_test_table(db_file): cursor.execute("CREATE TABLE test (fid SERIAL, txt TEXT);") cursor.execute("INSERT INTO test VALUES (123, 'hello');") cursor.execute("COMMIT;") + con.close() def _create_spatial_table(db_file): @@ -3069,6 +3070,8 @@ def test_validate_auth(mc: MerginClient): def test_uploaded_chunks_cache(mc): """Create a new project, download it, add a file and then do sync - it should not fail""" + if not mc.server_features().get("v2_push_enabled"): + pytest.skip("Server does not support v2 push") test_project = "test_uploaded_chunks_cache" project = API_USER + "/" + test_project project_dir = os.path.join(TMP_DIR, test_project) # primary project dir for updates