Skip to content

Commit

Permalink
fix:flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Jan 30, 2024
1 parent 876c39d commit e247e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion fakeredis/stack/_topk_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import heapq
import random
import time
from collections import Counter
from typing import Any, List, Optional, Tuple

from fakeredis import _msgs as msgs
Expand Down
3 changes: 2 additions & 1 deletion test/test_stack/test_topk.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@

topk_tests = pytest.importorskip("probables")


def test_topk_incrby(r: redis.Redis):
assert r.topk().reserve("topk", 3, 10, 3, 1)
assert [None, None, None] == r.topk().incrby(
"topk", ["bar", "baz", "42"], [3, 6, 2]
)
assert [None, "bar"] == r.topk().incrby("topk", ["42", "xyzzy"], [8, 4])
with pytest.deprecated_call():
assert [3, 6, 10, 4, 0] == r.topk().count(
assert [3, 6, 10, 4, 0] == r.tofixpk().count(
"topk", "bar", "baz", "42", "xyzzy", 4
)

Expand Down

0 comments on commit e247e16

Please sign in to comment.