September 6, 2020
Advanced fixtures with pytest
Other pytest articles:
Why testing is important
Types of tests
Test driven Development
Hello, World!
Selecting tests with pytest
Testing HTTP client with pytest
Testing database with pytest
Advanced fixtures with pytest
Pytest plugins
Now letās create another test - it will test integration between our 2 components that talk to external systems - API and database cache. Letās test that when we query a number twice - we call API only once that the result is saved to the database and fetched from it on the second call.
Read more