File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
logger = logging .getLogger (__name__ )
9
9
10
10
11
- @pytest .fixture ( scope = "session" )
12
- def base_client (tmpdir_factory ):
11
+ @pytest .fixture
12
+ def base_client (mocked_metadata , tmpdir_factory ):
13
13
"""Session-wide test client."""
14
14
temp_directory = tmpdir_factory .mktemp ("base_client" ).mkdir ("logs" ).strpath
15
15
client = ohsome .OhsomeClient (log_dir = temp_directory )
16
16
assert client .metadata # call metadata once to ensure it is cached
17
17
yield client
18
18
19
19
20
- @pytest .fixture ( scope = "session" )
21
- def base_client_without_log ():
20
+ @pytest .fixture
21
+ def base_client_without_log (mocked_metadata ):
22
22
"""Session-wide test client."""
23
23
client = ohsome .OhsomeClient (log = False )
24
24
assert client .metadata # call metadata once to ensure it is cached
25
25
yield client
26
26
27
27
28
- @pytest .fixture ( scope = "session" )
28
+ @pytest .fixture
29
29
def custom_client_with_wrong_url (tmpdir_factory ):
30
30
"""Session-wide test client."""
31
31
temp_directory = tmpdir_factory .mktemp ("base_client" ).mkdir ("logs" ).strpath
You can’t perform that action at this time.
0 commit comments