Skip to content

Commit 8496c9f

Browse files
committed
fix calling of raw diff with file
1 parent afcf76d commit 8496c9f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

-96 KB
Binary file not shown.

server/mergin/tests/test_public_api_v2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ def test_project_version_delta_changes(client, diff_project: Project):
766766

767767
# check if checkpoint will be there
768768
response = client.get(
769-
f"v2/projects/{diff_project.id}/raw/diff/{delta[0].diffs[0].id}"
769+
f"v2/projects/{diff_project.id}/raw/diff?file={delta[0].diffs[0].id}"
770770
)
771771
assert response.status_code == 200
772772

@@ -1367,7 +1367,9 @@ def test_project_pull_diffs(client, diff_project):
13671367
second_diff = delta[0]["diffs"][1]
13681368
assert first_diff["id"] == current_diffs[0].path
13691369
assert second_diff["id"] == current_diffs[1].path
1370-
response = client.get(f"v2/projects/{diff_project.id}/raw/diff/{first_diff['id']}")
1370+
response = client.get(
1371+
f"v2/projects/{diff_project.id}/raw/diff?file={first_diff['id']}"
1372+
)
13711373
assert response.status_code == 200
13721374

13731375

0 commit comments

Comments
 (0)