File tree 2 files changed +5
-5
lines changed
hypothesis-python/tests/redis
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
9
# obtain one at https://mozilla.org/MPL/2.0/.
10
10
11
+ import uuid
12
+
11
13
import pytest
12
14
from fakeredis import FakeRedis
13
15
@@ -46,10 +48,8 @@ def test_all_methods():
46
48
class DatabaseComparison (RuleBasedStateMachine ):
47
49
def __init__ (self ):
48
50
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 )]
53
53
54
54
keys = Bundle ("keys" )
55
55
values = Bundle ("values" )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ exceptiongroup==1.2.0 ; python_version < "3.11"
26
26
# pytest
27
27
execnet==2.0.2
28
28
# via pytest-xdist
29
- fakeredis==2.21.1
29
+ fakeredis==2.21.2
30
30
# via -r requirements/coverage.in
31
31
iniconfig==2.0.0
32
32
# via pytest
You can’t perform that action at this time.
0 commit comments