...

/

Integration Tests

Integration Tests

Let’s learn about how to use PostgreSQL as a repository and test it.

At this point, we can create real tests in the test_postgresrepo.py file and replace our test_dummy function. All tests receive the app_configuration, pg_session, and pg_test_data fixtures. The first fixture allows us to initialize the PostgresRepo class with the proper parameters. The second fixture creates the database with our test data. Finally, the third fixture contains the database.

Impact on our test cases

The tests for ...