We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d823a17 commit 40ad62bCopy full SHA for 40ad62b
tests/test_database.py
@@ -160,6 +160,12 @@ def test_load_all_users(example_database: Database):
160
assert len(loaded_users) == 1 + previous_number_of_users_in_database
161
assert any(dataclasses_are_equal(u, user) for u in loaded_users)
162
163
+ example_database.delete_user(user.id, on_conflict=OnConflictOpts.ERROR)
164
+
165
+ loaded_users = example_database.load_all_users()
166
+ assert len(loaded_users) == previous_number_of_users_in_database
167
+ assert not any(dataclasses_are_equal(u, user) for u in loaded_users)
168
169
def test_load_session_from_file(example_session : Session, example_database : Database):
170
171
# Test that Session loaded via Session.from_file is correct
0 commit comments