File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
colbert/tests/integration_tests
langchain/tests/integration_tests
llamaindex/tests/integration_tests Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
from typing import Iterator
2
2
3
3
import pytest
4
- from _pytest .fixtures import FixtureRequest
5
4
from cassandra .cluster import Session
6
5
from ragstack_tests_utils import AstraDBTestStore , LocalCassandraTestStore
7
6
@@ -20,7 +19,7 @@ def astra_db() -> AstraDBTestStore:
20
19
21
20
22
21
@pytest .fixture ()
23
- def session (request : FixtureRequest ) -> Session :
22
+ def session (request : pytest . FixtureRequest ) -> Session :
24
23
test_store = request .getfixturevalue (request .param )
25
24
session = test_store .create_cassandra_session ()
26
25
session .default_timeout = 180
Original file line number Diff line number Diff line change 1
1
from typing import Iterator
2
2
3
3
import pytest
4
- from _pytest .fixtures import FixtureRequest
5
4
from cassandra .cluster import Session
6
5
from dotenv import load_dotenv
7
6
from ragstack_tests_utils import AstraDBTestStore , LocalCassandraTestStore
@@ -22,13 +21,13 @@ def astra_db() -> AstraDBTestStore:
22
21
return AstraDBTestStore ()
23
22
24
23
25
- def get_session (request : FixtureRequest ) -> Session :
24
+ def get_session (request : pytest . FixtureRequest ) -> Session :
26
25
test_store = request .getfixturevalue (request .param )
27
26
session = test_store .create_cassandra_session ()
28
27
session .default_timeout = 180
29
28
return session
30
29
31
30
32
31
@pytest .fixture ()
33
- def session (request : FixtureRequest ) -> Session :
32
+ def session (request : pytest . FixtureRequest ) -> Session :
34
33
return get_session (request )
Original file line number Diff line number Diff line change 1
1
from typing import Iterator
2
2
3
3
import pytest
4
- from _pytest .fixtures import FixtureRequest
5
4
from cassandra .cluster import Session
6
5
from ragstack_tests_utils import AstraDBTestStore , LocalCassandraTestStore
7
6
@@ -20,7 +19,7 @@ def astra_db() -> AstraDBTestStore:
20
19
21
20
22
21
@pytest .fixture ()
23
- def session (request : FixtureRequest ) -> Session :
22
+ def session (request : pytest . FixtureRequest ) -> Session :
24
23
test_store = request .getfixturevalue (request .param )
25
24
session = test_store .create_cassandra_session ()
26
25
session .default_timeout = 180
You can’t perform that action at this time.
0 commit comments