Skip to content

Commit 86c40c6

Browse files
committed
Fix tests for older version
1 parent a018e97 commit 86c40c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mergin/test/test_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2266,8 +2266,11 @@ def test_clean_diff_files(mc):
22662266
shutil.copy(mp.fpath("inserted_1_A.gpkg"), mp.fpath(f_updated))
22672267
mc.push_project(project_dir)
22682268

2269-
diff_files = glob.glob("*-diff-*", root_dir=os.path.split(mp.fpath_meta("inserted_1_A.gpkg"))[0])
2269+
# Get the directory path
2270+
directory = os.path.split(mp.fpath_meta("inserted_1_A.gpkg"))[0]
2271+
diff_files = [f for f in os.listdir(directory) if "-diff-" in f]
22702272

2273+
# Assert that no matching files are found
22712274
assert diff_files == []
22722275

22732276

0 commit comments

Comments
 (0)