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

[#2606] Refactor flakey test, use more general assertions #1293

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

pi-sigma
Copy link
Contributor

@pi-sigma pi-sigma commented Jul 3, 2024

  • The test asserted equality of expected + actual list, which is not guaranteed (presumably this is due to parallel tests; it doesn't seem to occur when tests run sequentially)
  • Needed are only the weaker assertions about content being/not being included in the form options

Taiga: https://taiga.maykinmedia.nl/project/open-inwoner/issue/2602

    - the test asserted equality of expected + actual list, which
      is not guaranteed (presumably this is due to parallel tests; it
      doesn't seem to occur when tests run sequentially)
    - what is needed are only the weaker assertions about content
      being/not being included in the form options
@pi-sigma pi-sigma force-pushed the issue/2606-flakey-test branch from e31ac97 to 119c653 Compare July 3, 2024 13:57
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 44.22%. Comparing base (abc196e) to head (119c653).

Files Patch % Lines
src/open_inwoner/questionnaire/tests/test_admin.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1293      +/-   ##
===========================================
- Coverage    44.23%   44.22%   -0.01%     
===========================================
  Files          973      973              
  Lines        35625    35627       +2     
===========================================
  Hits         15757    15757              
- Misses       19868    19870       +2     

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

@pi-sigma pi-sigma requested a review from swrichards July 3, 2024 14:30
@pi-sigma pi-sigma marked this pull request as ready for review July 3, 2024 14:30
@alextreme alextreme merged commit 937e687 into develop Jul 8, 2024
17 checks passed
@alextreme alextreme deleted the issue/2606-flakey-test branch July 8, 2024 12:34
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.

4 participants