Skip to content

Commit

Permalink
use assert False to reach coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
madwort committed Apr 3, 2024
1 parent 92e146f commit 18ae2d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airlock/views/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ def request_view(request, request_id: str, path: str = ""):
if existing_review:
if existing_review.status == FileReviewStatus.APPROVED:
file_approve_url = None
else:
elif existing_review.status == FileReviewStatus.REJECTED:
file_reject_url = None
else:
assert False, "Invalid FileReviewStatus value"

context = {
"workspace": bll.get_workspace(release_request.workspace, request.user),
Expand Down

0 comments on commit 18ae2d6

Please sign in to comment.