Skip to content

Commit

Permalink
Add explanation for why test might fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Reillyhewitson committed Nov 16, 2022
1 parent e3e2005 commit 2eb6e11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/datagateway_api/db/endpoints/test_update_by_id_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def test_valid_update_with_id(

response_json = test_response.json

print(response_json["endDate"])
# The DB returns times with timezone indicators,
# but does not accept them being created.
# This strips the timezone indicators out so that the results can be compared.
Expand Down Expand Up @@ -55,7 +54,11 @@ def test_invalid_update_with_id(
json=invalid_update_json,
)

print(test_response.json)
print(
"If this test is failing "
"you may need to set sql_mode to "
"STRICT_ALL_TABLES"
)

# If this test is failing
# you may need to set sql_mode to
Expand Down

0 comments on commit 2eb6e11

Please sign in to comment.