A simple application for fetching and inserting musicians using Rest API to demonstrate the examples of unit test and integration test.
- Application is developed in Python 3.9
- You can install the packages using the
requirements.txt
file.
pip install -r requirements.txt
The purpose of the application is to show how to develop tests. So, to run the application locally, you need to setup a database instance and implement an endpoint for the external musician client.
pytest test
pytest test/ -k 'test and not integration'
pytest test/ -k 'integration'
FastAPI
anduvicorn
for Rest APIunittest
for assertions and mockstestcontainers
to initialize local-database for integration testsFlask
for MockServerpandas
for all dataframe operationspsycopg2
to create a connection