Skip to content

Commit

Permalink
Test that supporting files are not released
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Mar 18, 2024
1 parent f77463a commit 3861137
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/unit/test_business_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ def test_provider_request_release_files(mock_old_api):
)
relpath = Path("test/file.txt")
factories.write_request_file(release_request, "group", relpath, "test")
# Add a supporting file, which should NOT be released
supporting_relpath = Path("test/supporting_file.txt")
factories.write_request_file(
release_request,
"group",
supporting_relpath,
"test",
filetype=RequestFileType.SUPPORTING,
)
factories.bll.set_status(release_request, Status.APPROVED, checker)

abspath = release_request.abspath("group" / relpath)
Expand Down

0 comments on commit 3861137

Please sign in to comment.