3 Proven Ways To Test Your Flask Applications With Pytest
As an application developer, delivering a functional, well-tested app is a top priority.
Most apps use external dependencies, like a data storage layer — database or file-based storage.
How do you make sure your app behaves the way it’s supposed to — even for edge cases? Well, you write tests.
But the next question is how do you test these database interactions?
Do you use a test database or an in-memory one? Should you use a flat-file instead to keep things light?
Or should you mock the database queries?