File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 88
99
1010@pytest .fixture
11- def standard_session (app_name ):
12- session = StandardSessionManager (app_name )
11+ def standard_session (app_name , client ):
12+ session = StandardSessionManager (app_name , redis_client = client )
1313 yield session
1414 session .clear ()
1515
1616
1717@pytest .fixture
18- def semantic_session (app_name ):
19- session = SemanticSessionManager (app_name )
18+ def semantic_session (app_name , client ):
19+ session = SemanticSessionManager (app_name , redis_client = client )
2020 yield session
2121 session .clear ()
2222 session .delete ()
@@ -28,12 +28,12 @@ def test_specify_redis_client(client):
2828 assert isinstance (session ._index .client , type (client ))
2929
3030
31- def test_specify_redis_url (client ):
31+ def test_specify_redis_url (client , redis_url ):
3232 session = StandardSessionManager (
3333 name = "test_app" ,
3434 session_tag = "abc" ,
3535 user_tag = "123" ,
36- redis_url = "redis://localhost:6379" ,
36+ redis_url = redis_url ,
3737 )
3838 assert isinstance (session ._index .client , type (client ))
3939
You can’t perform that action at this time.
0 commit comments