We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3041e75 commit 350aedcCopy full SHA for 350aedc
mergin/test/test_client.py
@@ -2328,8 +2328,10 @@ def test_clean_diff_files(mc):
2328
shutil.copy(mp.fpath("inserted_1_A.gpkg"), mp.fpath(f_updated))
2329
mc.push_project(project_dir)
2330
2331
- diff_files = glob.glob("*-diff-*", root_dir=os.path.split(mp.fpath_meta("inserted_1_A.gpkg"))[0])
+ directory = os.path.split(mp.fpath_meta("inserted_1_A.gpkg"))[0]
2332
+ diff_files = [f for f in os.listdir(directory) if "-diff-" in f]
2333
2334
+ # Assert that no matching files are found
2335
assert diff_files == []
2336
2337
0 commit comments