Skip to content

Commit

Permalink
Move scan tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed May 9, 2023
1 parent 97f406e commit a0ca413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ def test_scan_delete_seen_key_while_scanning_should_return_all_keys(r: redis.Red
while cursor != 0:
cursor, data = r.scan(cursor=cursor)
keys.extend(data)

assert len(set(keys)) == len(keys)
assert len(keys) == size
keys = set(keys)
assert len(keys) == size, f"{set(all_keys_dict).difference(keys)} is not empty but should be"
assert key_to_remove in keys

0 comments on commit a0ca413

Please sign in to comment.