jderam / hyperborea3

An app for creating characters for the Hyperborea RPG
MIT License
3 stars 0 forks source link

Make another pass over tests #99

Open jderam opened 2 years ago

jderam commented 2 years ago

try to get tests coverage to 100%. Clean up structure of tests (see @pytest.mark.parametrize() as one example of how we can have a better structure.

jderam commented 2 years ago

Use with pytest.raises() to test to make sure you get exceptions when you are expecting to.

jderam commented 2 years ago

Use a fixture to create a db connection. Create tests that test data in sqlite3 db is as expected, to help prevent merging bad db updates.