Skip to content

Commit

Permalink
remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMaggio committed May 31, 2024
1 parent 92c793f commit cc0dc74
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions api/tests/opentrons/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,29 +328,3 @@ def run(protocol):
context_tracker.store()

verify_metrics_store_file(store.metadata.data_file_location, 1)


@pytest.mark.usefixtures("override_data_store", "monkeypatch_set_store_each_to_true")
def test_track_analysis_with_store_each_run(tmp_path: Path) -> None:
"""Test that the RobotContextTracker tracks analysis and stores each run."""
protocol_source = textwrap.dedent(
"""
requirements = {"apiLevel": "2.15"}
def run(protocol):
pass
"""
)
protocol_source_file = tmp_path / "protocol.py"
protocol_source_file.write_text(protocol_source, encoding="utf-8")
store = context_tracker._store # type: ignore[attr-defined]

verify_metrics_store_file(store.metadata.data_file_location, 0)

_get_analysis_result([protocol_source_file])

verify_metrics_store_file(store.metadata.data_file_location, 1)

_get_analysis_result([protocol_source_file])

verify_metrics_store_file(store.metadata.data_file_location, 2)

0 comments on commit cc0dc74

Please sign in to comment.