We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c54e5c commit 47e46eeCopy full SHA for 47e46ee
src/commercetools/contrib/pytest.py
@@ -9,6 +9,12 @@
9
from commercetools.testing.server import Server
10
11
12
+@pytest.fixture(autouse=True)
13
+def reset_token_cache():
14
+ from commercetools.utils import DefaultTokenSaver
15
+ DefaultTokenSaver.clear_cache()
16
+
17
18
@pytest.fixture()
19
def commercetools_api():
20
with backend_mocker() as m:
tests/conftest.py
@@ -4,13 +4,6 @@
4
pytest_plugins = ["commercetools.contrib.pytest"]
5
6
7
-@pytest.fixture(autouse=True)
8
-def reset_token_cache():
- from commercetools.utils import DefaultTokenSaver
-
- DefaultTokenSaver.clear_cache()
@pytest.fixture
def client(commercetools_client):
return commercetools_client
0 commit comments