Skip to content

Commit

Permalink
fix: test results aggregates percent change bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry committed Nov 12, 2024
1 parent 2f4a696 commit 4de1601
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphql_api/types/flake_aggregates/flake_aggregates.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def flake_aggregates_with_percentage(
merged_results = merged_results.with_columns(
pl.all().pct_change().name.suffix("_percent_change")
)
aggregates = merged_results.row(0, named=True)
aggregates = merged_results.row(1, named=True)

Check warning on line 47 in graphql_api/types/flake_aggregates/flake_aggregates.py

View check run for this annotation

Codecov Notifications / codecov/patch

graphql_api/types/flake_aggregates/flake_aggregates.py#L47

Added line #L47 was not covered by tests

return FlakeAggregates(**aggregates)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_results_aggregates_with_percentage(
merged_results = merged_results.with_columns(
pl.all().pct_change().name.suffix("_percent_change")
)
aggregates = merged_results.row(0, named=True)
aggregates = merged_results.row(1, named=True)

Check warning on line 76 in graphql_api/types/test_results_aggregates/test_results_aggregates.py

View check run for this annotation

Codecov Notifications / codecov/patch

graphql_api/types/test_results_aggregates/test_results_aggregates.py#L76

Added line #L76 was not covered by tests

return TestResultsAggregates(**aggregates)

Expand Down

0 comments on commit 4de1601

Please sign in to comment.