Add some wiggle room to test results

This commit is contained in:
Serene-Arc 2023-01-05 20:01:00 +10:00
parent 74fb9e0ad7
commit 37dd7f11a8

View File

@ -254,7 +254,7 @@ def test_get_subreddit_time_verification(
for r in results:
result_time = datetime.fromtimestamp(r.created_utc)
time_diff = nowtime - result_time
assert time_diff < test_delta
assert abs(time_diff - test_delta) < timedelta(seconds=1)
@pytest.mark.online