Skip to content

Refactor : update validate functions with custom exceptions#380

Open
Tit-Co wants to merge 31 commits intoOpenClassrooms-Student-Center:masterfrom
Tit-Co:refactor/update-validate-functions-with-custom-exceptions
Open

Refactor : update validate functions with custom exceptions#380
Tit-Co wants to merge 31 commits intoOpenClassrooms-Student-Center:masterfrom
Tit-Co:refactor/update-validate-functions-with-custom-exceptions

Conversation

@Tit-Co
Copy link
Copy Markdown

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

Summary

  • The app needs refactor to improve code and tests

Improvement

utils.py

  • use custom exceptions in validate functions

server.py

  • update routes functions to use those exceptions

tests

  • Update tests to use those exceptions

Tit-Co added 30 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
…ould not be able to book more than places available, update unit tests
…, add one more unit test for that improvement, update unit tests
…er, add structure screenshots, update requirements.txt
…date tests to use those exceptions, update readme, add flake8 report
…ate tests after refactor, update readme and screenshots
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