Skip to content

Commit

Permalink
more time precision/upper bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
hpk42 authored and missytake committed Nov 30, 2022
1 parent 03329b9 commit 0d2e348
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def test_users_to_warn(conn, monkeypatch):
weekuser = conn.add_email_account(weektoken)
dayuser = conn.add_email_account(daytoken)

def futuredate(code, basedate=int(time.time())):
basedate = int(time.time()) + 1

def futuredate(code):
return basedate + parse_expiry_code(code)

# test day user warning
Expand Down

0 comments on commit 0d2e348

Please sign in to comment.