Skip to content

Commit 5c8216c

Browse files
committed
Simplify assertion message formatting in test_main_with_timedelta
1 parent 8dfce03 commit 5c8216c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/unit/test_nxcals_mqt_extraction.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ def test_main_with_timedelta(tmp_path, beam: int):
154154
time_diff = abs((extraction_time - expected_time).total_seconds())
155155

156156
# Should be close to 1 day ago, allow 5 minute tolerance
157-
assert time_diff < 300, (
158-
f"Extraction time should be ~1 day ago, but diff is {time_diff} seconds"
159-
)
157+
assert time_diff < 300, f"Extraction time should be ~1 day ago, but diff is {time_diff} seconds"
160158

161159

162160
@pytest.mark.cern_network

0 commit comments

Comments
 (0)