Closed kloczek closed 2 months ago
Seeing the same issue when running betamax tests inside Yocto Project images. Anyone have any insight?
The tests should probably use pytest-httpbin
instead of relying on httpbin.org
which has been sold and re-sold several times
See also #184.
Just normal build, install and test cycle used on building package from non-root account:
self =
tests/integration/test_record_modes.py:43: AssertionError _ TestRecordNewEpisodes.test_records_new_events_with_existingcassette
self =
tests/integration/test_record_modes.py:77: AssertionError _ TestRecordAll.test_records_new_interactions __
self =
tests/integration/test_record_modes.py:114: AssertionError ___ TestRecordAll.test_replaces_old_interactions ___
self =
tests/integration/test_recordmodes.py:129: AssertionError ____ TestPyTestFixture.test_adds_stop_as_a_finalizer __ Fixture "betamaxrecorder" called directly. Fixtures are not meant to be called directly, but are created automatically when test functions request them as parameters. See https://docs.pytest.org/en/stable/fixture.html for more information about fixtures, and https://docs.pytest.org/en/stable/deprecations.html#calling-fixtures-directly about how to update your code. ____ TestPyTestFixture.test_auto_starts_the_recorder __ Fixture "betamax_recorder" called directly. Fixtures are not meant to be called directly, but are created automatically when test functions request them as parameters. See https://docs.pytest.org/en/stable/fixture.html for more information about fixtures, and https://docs.pytest.org/en/stable/deprecations.html#calling-fixtures-directly about how to update your code. ============================================================================= warnings summary ============================================================================= tests/integration/test_fixtures.py::TestPyTestParametrizedFixtures::test_pytest_fixture[https://httpbin.org/get] tests/integration/test_fixtures.py::test_pytest_parametrize_with_filesystem_problematic_chars[aaa\bbb] tests/integration/test_fixtures.py::test_pytest_parametrize_with_filesystem_problematic_chars[ccc:ddd] tests/integration/test_fixtures.py::test_pytest_parametrize_with_filesystem_problematic_chars[eee*fff] /home/tkloczko/rpmbuild/BUILDROOT/python-betamax-0.8.1-14.fc35.x86_64/usr/lib/python3.8/site-packages/betamax/fixtures/pytest.py:128: DeprecationWarning: betamax_parametrized_recorder and betamax_parametrized_session will be removed in betamax 1.0. Their behavior will be the default. warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/warnings.html ========================================================================= short test summary info ========================================================================== FAILED tests/integration/test_record_modes.py::TestRecordOnce::test_replays_response_from_cassette - AssertionError: assert b'{\n "args"...org/get"\n}\n' == b'{\n "arg... FAILED tests/integration/test_record_modes.py::TestRecordNewEpisodes::test_records_new_events_with_existing_cassette - AssertionError: assert 2 == 4 FAILED tests/integration/test_record_modes.py::TestRecordAll::test_records_new_interactions - AssertionError: assert 3 == 5 FAILED tests/integration/test_record_modes.py::TestRecordAll::test_replaces_old_interactions - AssertionError: assert 3 == 5 FAILED tests/unit/test_fixtures.py::TestPyTestFixture::test_adds_stop_as_a_finalizer FAILED tests/unit/test_fixtures.py::TestPyTestFixture::test_auto_starts_the_recorder 6 failed, 131 passed, 4 warnings in 11.16s