Skip to content

Improve download endpoint#497

Merged
MarcelGeo merged 4 commits intodevelopfrom
fix_download_project_archive
Aug 18, 2025
Merged

Improve download endpoint#497
MarcelGeo merged 4 commits intodevelopfrom
fix_download_project_archive

Conversation

@harminius
Copy link
Contributor

Fixes https://github.com/MerginMaps/server-private/issues/3061 https://github.com/MerginMaps/server-private/issues/3060

  • head request cannot create new celery job
  • flask does not remove partial zip
  • celery cares of cleaning up abandoned zip partials

- head request cannot create new celery job
- flask does not remove partial zip
- celery care of cleaning up abandoned zip partials
assert resp.status_code == expected
assert mock_create_zip.called if expected == 202 else not mock_create_zip.called
if not version and expected != 200:
finally:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to do test cleanups at the beginning

  • you have results from failed tests
  • you are sure to have a clean state for new test

@coveralls
Copy link

coveralls commented Aug 15, 2025

Pull Request Test Coverage Report for Build 16990906892

Details

  • 73 of 73 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 94.316%

Totals Coverage Status
Change from base Build 16931850101: 0.04%
Covered Lines: 7534
Relevant Lines: 7988

💛 - Coveralls

@MarcelGeo MarcelGeo merged commit 1642bfc into develop Aug 18, 2025
4 checks passed
@MarcelGeo MarcelGeo deleted the fix_download_project_archive branch August 18, 2025 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants