-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release Version 0.2.2 - Performed a large code structure refactor for massively improved unit testing coverage. - Unit testing coverage increased from ~40% to 92%. - Fixed a few minor edge cases that unit testing has found while performing the refactor. Unit Testing details - Mocks are now used where appropriate to "mimic" outputs from the Reddit API (via PRAW). - Fixtures are now used for some repetitive setup/teardown operations (particularly with the database) - Fixtures can now be imported from conftest.py - Database state is now properly preserved between test runs Other minor details for changes - VSCode settings.json file has been updated for the Python Testing Framework VSCode plugin - All constants were moved from main.py to config/config.py - main.py now has considerably less logic in it (it only contains instantiation logic) - core.py now processes most of the game rule logic, broken down into different functions for testability purposes.
- Loading branch information
William Lam
authored
May 11, 2021
1 parent
5654fae
commit 077e30e
Showing
23 changed files
with
1,146 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"python.formatting.provider": "black" | ||
"python.formatting.provider": "black", | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2.1" | ||
__version__ = "0.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
hon_patch_notes_game_bot/config/community_patch_notes_compilation.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
This thread contains the results of the community-compiled Patch Notes from the main Guessing Game thread. | ||
|
||
- Note that the patch notes published here are subject to change at any time after this game has been set live. However, they are unlikely to change much (if at all). | ||
|
||
**Guesses in this thread will not be responded to by the bot. [Visit the main thread instead!](#main-reddit-thread)** | ||
|
||
Feel free to discuss patch changes here liberally (based on the currently revealed notes)! :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.