Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mergin/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down
Loading