From faf0820f60e594b755aad7b9ce786d2b9e6a72af Mon Sep 17 00:00:00 2001 From: Aaron Steers Date: Sat, 20 Jul 2024 22:46:30 -0700 Subject: [PATCH] remove unused test fixtures --- .../integration_tests/test_all_cache_types.py | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/tests/integration_tests/test_all_cache_types.py b/tests/integration_tests/test_all_cache_types.py index 2201562a..9585b141 100644 --- a/tests/integration_tests/test_all_cache_types.py +++ b/tests/integration_tests/test_all_cache_types.py @@ -57,11 +57,6 @@ def add_venv_bin_to_path(monkeypatch): monkeypatch.setenv("PATH", new_path) -@pytest.fixture -def progress() -> ReadProgress: - return ReadProgress() - - @pytest.fixture(scope="function") # Each test gets a fresh source-faker instance. def source_faker_seed_a() -> ab.Source: """Fixture to return a source-faker connector instance.""" @@ -129,23 +124,6 @@ def test_pokeapi_read( assert len(list(result.cache.streams["pokemon"])) == 1 -@pytest.fixture(scope="function") -def progress_mock( - mocker: pytest.MockerFixture, - progress: ReadProgress, -) -> ReadProgress: - """Fixture to return a mocked version of progress.progress.""" - # Mock the progress object. - mocker.spy(progress, "reset") - mocker.spy(progress, "log_records_read") - mocker.spy(progress, "log_batch_written") - mocker.spy(progress, "log_batches_finalizing") - mocker.spy(progress, "log_batches_finalized") - mocker.spy(progress, "log_stream_finalized") - mocker.spy(progress, "log_success") - return progress - - # Uncomment this line if you want to see performance trace logs. # You can render perf traces using the viztracer CLI or the VS Code VizTracer Extension. @pytest.mark.requires_creds