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

Fix test_search_users #287

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Fix test_search_users #287

merged 1 commit into from
Nov 9, 2023

Conversation

Pokegali
Copy link
Contributor

@Pokegali Pokegali commented Nov 7, 2023

Description

Fixed test_users::test_search_users.
When there were more than 10 users in the students group, it would fail because it would try to compare all of the users from the group to the users returned by an endpoint that is limited to return up to 10 users only.
I've modified the test so that instead of a strict equality, it is now an inequality, meaning that the students returned by /users/search must be present in the group, but we don't need all of them

Checklist

  • All tests passing

Copy link

codecov bot commented Nov 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b7f1ed1) 60.14% compared to head (fdf57c2) 60.14%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #287   +/-   ##
=======================================
  Coverage   60.14%   60.14%           
=======================================
  Files          77       77           
  Lines        5397     5397           
=======================================
  Hits         3246     3246           
  Misses       2151     2151           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Pokegali Pokegali force-pushed the fix-test-search-users branch from 652c02d to fdf57c2 Compare November 9, 2023 12:24
@armanddidierjean armanddidierjean added the bug Something isn't working label Nov 9, 2023
@armanddidierjean armanddidierjean merged commit c1d2168 into main Nov 9, 2023
7 checks passed
@armanddidierjean armanddidierjean deleted the fix-test-search-users branch November 9, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants