A simple FastAPI to mock the CIR service required by eq-runner.
- Python installed using Pyenv. Version is specified in
.python-version
file. - Poetry Package Manager
To install dependencies using poetry, run the following command:
poetry install
To run the FastAPI application locally using uvicorn
, use the following command:
make run
The application will be accessible at http://localhost:5004
.
You can also containerize the application using Docker.
- Build the Docker image:
docker build -t eq-runner-mock-cir .
- Run the Docker container:
docker run -d -p 5004:5004 eq-runner-mock-cir
The FastAPI app will be available at http://localhost:5004
.
To format the code using black, run the following command:
make format
To lint the code using black, run the following command:
make lint
To load in the schemas from eq-questionnaire-schemas
and the test schemas from eq-questionnaire-runner
run the following command:
make load-schemas
To run the unit tests, first load schemas as the test require them, then run the following command:
make test