Skip to content

Commit

Permalink
[uss_qualifier/flight_planning] Fix check details generation (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmis authored Mar 19, 2024
1 parent f5b7079 commit 5ebbaab
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,11 @@ def submit_flight(
scenario.record_query(query)
check_details = (
f'{flight_planner.participant_id} indicated {result} rather than the expected {" or ".join([f"({expected_result[0]}, {expected_result[1]})" for expected_result in expected_results])}'
+ f' with notes "{resp.notes}"'
if "notes" in resp and resp.notes
else " with no notes"
+ (
f' with notes "{resp.notes}"'
if "notes" in resp and resp.notes
else " with no notes"
)
)

for unexpected_result, failed_test_check in failed_checks.items():
Expand Down

0 comments on commit 5ebbaab

Please sign in to comment.