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 4a842dc commit 5f3bebeCopy full SHA for 5f3bebe
tests/hubstorage/conftest.py
@@ -43,6 +43,17 @@ def deserialize(self, cassette_string):
43
my_vcr.serializer = 'gz'
44
45
46
+def pytest_addoption(parser):
47
+ parser.addoption(
48
+ "--update-cassettes", action="store_true", default=False,
49
+ help="make tests with real services instead of vcr cassettes")
50
+
51
52
+def pytest_generate_tests(metafunc):
53
+ if metafunc.config.option.update_cassettes:
54
+ my_vcr.record_mode = 'all'
55
56
57
@pytest.fixture(scope='session')
58
def hsclient():
59
return HubstorageClient(auth=TEST_AUTH, endpoint=TEST_ENDPOINT)
0 commit comments