Skip to content

Commit

Permalink
wip: investigate integration test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Khoyo committed Nov 22, 2024
1 parent 57c96f7 commit fb7d1fa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
from tests.utils.timetable import create_scenario


def raise_for_status_logging_body(response: requests.Response):
try:
return response.raise_for_status()
except requests.exceptions.HTTPError as e:
print(response.text)
raise e


requests.Response.raise_for_status = raise_for_status_logging_body


def _load_generated_infra(name: str) -> int:
infra_path = Path(__file__).parent / f"data/infras/{name}/infra.json"
with infra_path.open() as json_infra:
Expand Down

0 comments on commit fb7d1fa

Please sign in to comment.