Open jderam opened 2 years ago
Use with pytest.raises()
to test to make sure you get exceptions when you are expecting to.
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.
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.