5 Commits

Author SHA1 Message Date
Xevion
b311700356 Expanded database testing
- Tested Submission.count descriptor
- Tested Submission.clear_other_votes
- Expanded Submission.advance testing to include exceptions, Submission
.active, Submission.completed and Submission.voting
- Changed db model __repr__ implementations to use f-strings
- Fixed Submission.update force kwarg not implemented.
- Small formatting changes, new TODO, noinspection on protected access
- Votes setter now removes duplicate keys (maintains order)
- Removed 'aiosqlite' from Pipfile general package requirements
2021-02-19 03:29:53 -06:00
Xevion
8d8fe83b5f Proper basic tests for db.Submission methods
Testing for Submission.increment, Submission.decrement with exceptions
Randomized database generation fixture with query test
2021-02-17 03:38:04 -06:00
Xevion
9e889d8c8c fix poor test formatting, use inheritted TestDatabase class instead for generating guild/period/submission on the fly (working basic tests), update .gitignore for Pipenv lockfile 2021-02-13 09:30:27 -06:00
Xevion
7fb9f961b5 first overhaul of tests with new class/sessionmaker;engine/fixture setup 2021-02-13 08:30:13 -06:00
Xevion
ea825b9a30 switch to pipfile, new tests 2021-02-12 23:19:35 -06:00