Fix test
This commit is contained in:
parent
d18c30b481
commit
9b23082a78
@ -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 abs(time_diff - test_delta) < timedelta(minutes=1)
|
||||
assert time_diff < (test_delta + timedelta(minutes=1))
|
||||
|
||||
|
||||
@pytest.mark.online
|
||||
|
Loading…
Reference in New Issue
Block a user