tests(dashboard): [#306] added test coverage for the metric detail route - #310
Merged
Merged
Conversation
ApusBerliozi
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #306
Changes
TestSessionMetricDetailPagetotests/unit/dashboard/test_api.py, covering thesession_metric_detailroute added in the prior sub-issue.test_returns_200_for_known_metric), and the embedded metrics JSON blob is scoped to just that metric's points rather than the full unfiltered list (test_content_includes_correct_point_values), plus a breadcrumb-link check back to the parent session (test_content_includes_breadcrumb_to_session).test_returns_404_for_unknown_metric,test_returns_404_for_unknown_session,test_returns_404_for_unknown_project,test_returns_404_for_metric_on_session_with_no_metrics)./connect(test_requires_authentication), consistent with the parent session route's existing behavior.test_session_page_links_to_metric_detail), and a regression check that a session with no<metric>data at all still renders those links without erroring (test_session_page_without_metrics_does_not_break).Notes
fenn/reproducibility.pyto pass ruff format check.