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 past_booking_occurrences_are_cancelled test #6245

Conversation

sandipanpanda
Copy link

Fix past_booking_occurrences_are_cancelled test in indico/modules/rb/operations/bookings_test.py

Fixes: #6210

@ThiefMaster
Copy link
Member

If it was that easy, I'd have done it myself instead of opening an issue. The test is broken, so renaming it just enables it, now you need to actually fix it... :)

@ThiefMaster ThiefMaster marked this pull request as draft March 21, 2024 20:00
@sandipanpanda
Copy link
Author

sandipanpanda commented Mar 21, 2024

Yes, I know. I was testing the changes on the CI. I should have opened as a draft PR.

Fix past_booking_occurrences_are_cancelled test in bookings_test.py
@sandipanpanda sandipanpanda force-pushed the fix-6210-past_booking_occurrences_are_cancelled-test branch from 0c32f9b to cea9094 Compare March 21, 2024 20:31
@ThiefMaster
Copy link
Member

For the request context error you can add @pytest.mark.usefixtures('request_context') to the test case. But from that point on you're at the stage where you'll notice that the actual logic is in that testcase is broken somewhere.

FWIW, I was about that far when I decided to open an issue and continue working on something else... ;)

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.

Fix past_booking_occurrences_are_cancelled test
2 participants