Skip to content

Commit f83bd45

Browse files
committed
cleanup
1 parent 4d923d1 commit f83bd45

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

server/mergin/tests/test_private_project_api.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -424,32 +424,11 @@ def test_admin_project_list(client):
424424
assert len(resp.json["items"]) == 14
425425

426426

427-
# test_download_proj_data = [
428-
# # project archive does not exist yet -> 202
429-
# (0, None, 202),
430-
# # specified version does not exist -> 404
431-
# (0, "v100", 404),
432-
# # zip is ready to download
433-
# (1, None, 200),
434-
# ]
435-
#
436-
#
437-
# @pytest.mark.parametrize(
438-
# "zipfile,version,exp_resp", test_download_proj_data
439-
# )
440-
# @patch("mergin.sync.tasks.create_project_version_zip.delay")
441427
def test_download_project(
442-
# mock_create_zip,
443428
client,
444-
# zipfile,
445-
# partial,
446-
# expired,
447-
# version,
448-
# exp_resp,
449-
# exp_call,
450429
diff_project,
451430
):
452-
"""Test download endpoint responses and celery task calling"""
431+
"""Test download endpoint responses"""
453432
resp = client.head(
454433
url_for(
455434
"/app.mergin_sync_private_api_controller_download_project",
@@ -530,7 +509,7 @@ def test_prepare_archive(
530509
exp_call,
531510
diff_project,
532511
):
533-
"""Test download endpoint responses and celery task calling"""
512+
"""Test prepare archive endpoint responses and celery task calling"""
534513
# prepare initial state according to testcase
535514
project_version = diff_project.get_latest_version()
536515
if zipfile:

0 commit comments

Comments
 (0)