Skip to content

Commit

Permalink
tests: Catch NoTimestamps, not AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Nov 2, 2024
1 parent ff3dcc9 commit 534d6d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kcidb/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2077,9 +2077,9 @@ def test_dump_limits(empty_database):
assert client.dump() == io_schema.new()
else:
now = datetime.datetime.now(datetime.timezone.utc)
with pytest.raises(AssertionError):
with pytest.raises(kcidb.db.misc.NoTimestamps):
client.dump(after=now)
with pytest.raises(AssertionError):
with pytest.raises(kcidb.db.misc.NoTimestamps):
client.dump(until=now)
with pytest.raises(AssertionError):
with pytest.raises(kcidb.db.misc.NoTimestamps):
client.dump(after=now, until=now)

0 comments on commit 534d6d6

Please sign in to comment.