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

Add tests for the start game function #268

Merged
merged 4 commits into from
Oct 1, 2023
Merged

Conversation

iamlogand
Copy link
Owner

@iamlogand iamlogand commented Sep 29, 2023

Add Django tests for the start game function in the backend and refactor the function to better comply with the single responsibility principle from SOLID - mostly by extraction.

Improve the start game test by making it check that one Temporary Rome Consul has been assigned.
Improve the start game test to cover a wider range of scenarios and refactor the start game function to comply better with the single responsibility principle.
@iamlogand iamlogand changed the title Add tests for the backend Add tests for the start game function Oct 1, 2023
@iamlogand iamlogand added this to the 0.2 milestone Oct 1, 2023
@iamlogand iamlogand added testing Automated test coverage refactoring Restructure the code without changing functionality labels Oct 1, 2023
@iamlogand iamlogand marked this pull request as ready for review October 1, 2023 10:28
@iamlogand iamlogand merged commit 12b230d into main Oct 1, 2023
1 check passed
@iamlogand iamlogand deleted the feature/game-test-coverage branch October 1, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Restructure the code without changing functionality testing Automated test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant