removed redundant call to get_data, because we have checked this condition in the previous line

This commit is contained in:
kievzenit 2025-08-11 17:34:30 +03:00
parent 2e69a8e38a
commit 1305318e1a

View file

@ -29,7 +29,6 @@ async def test_update_not_existing_data_with_empty_dictionary(
storage_key: StorageKey,
):
assert await pymongo_storage._collection.find_one({}) is None
assert await pymongo_storage.get_data(key=storage_key) == {}
assert await pymongo_storage.update_data(key=storage_key, data={}) == {}
assert await pymongo_storage._collection.find_one({}) is None