@@ -20,49 +20,49 @@ def api_timeout():
2020 return float (os .getenv ("MPT_API_TIMEOUT" , "60.0" ))
2121
2222
23- @pytest .fixture (scope = "session " )
23+ @pytest .fixture (scope = "module " )
2424def mpt_vendor (base_url , api_timeout ):
2525 return MPTClient .from_config (
2626 api_token = os .getenv ("MPT_API_TOKEN_VENDOR" ), base_url = base_url , timeout = api_timeout
2727 ) # type: ignore
2828
2929
30- @pytest .fixture (scope = "session " )
30+ @pytest .fixture (scope = "module " )
3131def async_mpt_vendor (base_url , api_timeout ):
3232 return AsyncMPTClient .from_config (
3333 api_token = os .getenv ("MPT_API_TOKEN_VENDOR" ), base_url = base_url , timeout = api_timeout
3434 ) # type: ignore
3535
3636
37- @pytest .fixture (scope = "session " )
37+ @pytest .fixture (scope = "module " )
3838def mpt_ops (base_url , api_timeout ):
3939 return MPTClient .from_config (
4040 api_token = os .getenv ("MPT_API_TOKEN_OPERATIONS" ), base_url = base_url , timeout = api_timeout
4141 ) # type: ignore
4242
4343
44- @pytest .fixture (scope = "session " )
44+ @pytest .fixture (scope = "module " )
4545def async_mpt_ops (base_url , api_timeout ):
4646 return AsyncMPTClient .from_config (
4747 api_token = os .getenv ("MPT_API_TOKEN_OPERATIONS" ), base_url = base_url , timeout = api_timeout
4848 ) # type: ignore
4949
5050
51- @pytest .fixture (scope = "session " )
51+ @pytest .fixture (scope = "module " )
5252def mpt_client (base_url , api_timeout ):
5353 return MPTClient .from_config (
5454 api_token = os .getenv ("MPT_API_TOKEN_CLIENT" ), base_url = base_url , timeout = api_timeout
5555 ) # type: ignore
5656
5757
58- @pytest .fixture (scope = "session " )
58+ @pytest .fixture (scope = "module " )
5959def async_mpt_client (base_url , api_timeout ):
6060 return AsyncMPTClient .from_config (
6161 api_token = os .getenv ("MPT_API_TOKEN_CLIENT" ), base_url = base_url , timeout = api_timeout
6262 ) # type: ignore
6363
6464
65- @pytest .fixture (scope = "session " )
65+ @pytest .fixture (scope = "module " )
6666def rp_logger ():
6767 logger = logging .getLogger (__name__ )
6868 logger .setLevel (logging .DEBUG )
0 commit comments