Skip to content

Commit

Permalink
remove unused test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Jul 21, 2024
1 parent 55b9062 commit faf0820
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/integration_tests/test_all_cache_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit faf0820

Please sign in to comment.