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 a018e97 commit 86c40c6Copy full SHA for 86c40c6
mergin/test/test_client.py
@@ -2266,8 +2266,11 @@ def test_clean_diff_files(mc):
2266
shutil.copy(mp.fpath("inserted_1_A.gpkg"), mp.fpath(f_updated))
2267
mc.push_project(project_dir)
2268
2269
- diff_files = glob.glob("*-diff-*", root_dir=os.path.split(mp.fpath_meta("inserted_1_A.gpkg"))[0])
+ # 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]
2272
2273
+ # Assert that no matching files are found
2274
assert diff_files == []
2275
2276
0 commit comments