Stefan4472 / Stefans-Blog

Personal blogging platform built in Python
MIT License
0 stars 0 forks source link

Unit testing with mocked app database #101

Open Stefan4472 opened 1 year ago

Stefan4472 commented 1 year ago

In d14bd24 I figured out how to write a flask unit test which mocks the underlying database.

In recent times I wrote a bunch of API unit tests, but this is the first time I'm doing a more direct unit test. It's great--we need more of these!

Setting this as a 0.3 project because I expect another round of significant API and functionality changes, so it doesn't make much sense to write the tests until then.