Skip to content

Commit d11919f

Browse files
committed
Update fakeredis
1 parent 5c57fe0 commit d11919f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hypothesis-python/tests/redis/test_redis_exampledatabase.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
99
# obtain one at https://mozilla.org/MPL/2.0/.
1010

11+
import uuid
12+
1113
import pytest
1214
from fakeredis import FakeRedis
1315

@@ -46,10 +48,8 @@ def test_all_methods():
4648
class DatabaseComparison(RuleBasedStateMachine):
4749
def __init__(self):
4850
super().__init__()
49-
self.dbs = [
50-
InMemoryExampleDatabase(),
51-
RedisExampleDatabase(FakeRedis()),
52-
]
51+
server = FakeRedis(host=uuid.uuid4().hex) # Different (fake) server each time
52+
self.dbs = [InMemoryExampleDatabase(), RedisExampleDatabase(server)]
5353

5454
keys = Bundle("keys")
5555
values = Bundle("values")

requirements/coverage.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exceptiongroup==1.2.0 ; python_version < "3.11"
2626
# pytest
2727
execnet==2.0.2
2828
# via pytest-xdist
29-
fakeredis==2.21.1
29+
fakeredis==2.21.2
3030
# via -r requirements/coverage.in
3131
iniconfig==2.0.0
3232
# via pytest

0 commit comments

Comments
 (0)