Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(api, performance-metrics): clean up performance-metrics tracking #15289

Merged
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unnecessary test
  • Loading branch information
DerekMaggio committed May 31, 2024
commit cc0dc744549b901ca7913ac371fd9ba97762a47f
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)
Loading