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

Allow fractions in helper assert_metric helper #2633

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented Sep 30, 2024

The assert_metric helper only parses integers right now, even though the metrics could be fractions.
This is required once the registrations rates are exposed as a metric, hence this PR to fix it.

The `assert_metric` helper only parses integers right now, even though
the metrics could be fractions.
This is required once the registrations rates are exposed as a metric,
hence this PR to fix it.
Copy link
Collaborator

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Do we have tests for this helper? Could we add some test cases with fractions?

@frederikrothenberger
Copy link
Member Author

Thanks!

Do we have tests for this helper? Could we add some test cases with fractions?

We will use this in a test in the upcoming registration rate tracking. This is how I found that we don't support it in the first place. 😉

@frederikrothenberger frederikrothenberger added this pull request to the merge queue Sep 30, 2024
Merged via the queue into main with commit 0a9cd08 Sep 30, 2024
66 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/metric-fractions branch September 30, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants