Skip to content

Commit

Permalink
f string
Browse files Browse the repository at this point in the history
  • Loading branch information
eleanorjboyd committed May 13, 2024
1 parent 1168dbe commit 2dd7b79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_files/tests/pytestadapter/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ def test_pytest_collect(file, expected_const):
if actual_list is not None:
actual_item = actual_list.pop(0)
assert all(item in actual_item.keys() for item in ("status", "cwd", "error"))
assert actual_item.get("status") == "success", (
"Status is not 'success', error is: " + actual_item.get("error")
)
assert (
actual_item.get("status") == "success"
), f"Status is not 'success', error is: {actual_item.get('error')}"
assert actual_item.get("cwd") == os.fspath(helpers.TEST_DATA_PATH)
assert is_same_tree(
actual_item.get("tests"), expected_const
Expand Down

0 comments on commit 2dd7b79

Please sign in to comment.