| 1 | import pytestscip-python python pytest 9.0.3 pytest/__init__: |
| 2 | import unittestscip-python python python-stdlib 3.11 unittest/__init__: |
| 3 | |
| 4 | from betamaxscip-python python betamax 0.9.0 betamax/__init__: import Betamax, cassette |
| 5 | from requestsscip-python python requests 2.32.5 requests/__init__: import Sessionscip-python python betamax 0.9.0 `requests.sessions`/Session# |
| 6 | |
| 7 | |
| 8 | class TestCassetteRecordModescip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#(unittestscip-python python python-stdlib 3.11 unittest/__init__:.TestCasescip-python python betamax 0.9.0 `unittest.case`/TestCase#): |
| 9 | def setUpscip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#setUp().(selfscip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#setUp().(self)): |
| 10 | with Betamax.configure() as config: |
| 11 | config.default_cassette_options['record_mode'] = 'none' |
| 12 | |
| 13 | def tearDownscip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#tearDown().(selfscip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#tearDown().(self)): |
| 14 | with Betamax.configure() as config: |
| 15 | config.default_cassette_options['record_mode'] = 'once' |
| 16 | |
| 17 | def test_record_mode_is_nonescip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#test_record_mode_is_none().(selfscip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#test_record_mode_is_none().(self)): |
| 18 | s = Sessionscip-python python betamax 0.9.0 `requests.sessions`/Session#() |
| 19 | with pytestscip-python python pytest 9.0.3 pytest/__init__:.raises(ValueErrorscip-python python python-stdlib 3.11 builtins/ValueError#): |
| 20 | with Betamax(s) as recorder: |
| 21 | recorder.use_cassette('regression_record_mode') |
| 22 | assert recorder.current_cassette is None |
| 23 | |
| 24 | def test_class_variables_retain_their_valuescip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#test_class_variables_retain_their_value().(selfscip-python python betamax 0.9.0 `tests.regression.test_cassettes_retain_global_configuration`/TestCassetteRecordMode#test_class_variables_retain_their_value().(self)): |
| 25 | opts = cassette.Cassette.default_cassette_options |
| 26 | assert opts['record_mode'] == 'none' |