Skip to content

Fix issue #5 : club should not be able to book places in past competitions#362

Open
Tit-Co wants to merge 9 commits intoOpenClassrooms-Student-Center:masterfrom
Tit-Co:bug/club-should-not-be-able-to-book-places-past-competitions
Open

Fix issue #5 : club should not be able to book places in past competitions#362
Tit-Co wants to merge 9 commits intoOpenClassrooms-Student-Center:masterfrom
Tit-Co:bug/club-should-not-be-able-to-book-places-past-competitions

Conversation

@Tit-Co
Copy link

@Tit-Co Tit-Co commented Mar 13, 2026

Summary

  • The club should not be able to book places in past competitions.

Fixed bug

server.py

  • Checked the date of the competition for which the user was trying to book places and compared it to the current date.
  • Returns the welcome template with an error message if the condition fails.

Index Template

  • Used flash messages in index template to inform user.

Unit tests

  • Updated unit tests for this new bug fix.

Tit-Co added 9 commits March 9, 2026 18:08
…ase places with not enough points, update unit tests
…ld not be able to book more than 12 places per competition, update unit tests
…ate not reflected, update unit tests with mocks
…d not be able to book more than 12 places per competition, update tests
…aces in past competitions should not be possible, add two more unit tests for that bug fix
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.

1 participant