python -m venv env
source env/bin/activate
poetry install
python run.py
deactivatebuild the container
docker build -t pcdcanalysistools:test .add the container in the revproxy conf and in the docker-compose.yml file
Auto-documentation is set up using Sphinx. To build it, run
cd docs
make htmlwhich by default will output the index.html page to
docs/build/html/index.html.
OpenAPI documentation available here.
The YAML file comtaining the OpenAPI documentation is in the openapi folder;
see the README in that folder for more details.
python -m venv env source env/bin/activate poetry install
create .env file: Full_DATA_PATH = 'test_data\data.json' SHORT_DATA_PATH = 'test_data\data_short.json' NO_DATA_PATH = 'test_data\no_data.json' DATA_PATH = 'test_data\data_short_stats.json' Short_DATA_SURVIVAL_PATH = 'test_data\data_short_survival.json' Short_DATA_STATS_PATH = 'test_data\data_short_stats.json' SHORT_DATA_EXTERNAL_PATH = 'test_data\data_external.json' Short_DATA_TABLEONE_PATH = 'test_data\data_short_tableone.json' MOCK_DATA = 'True'
if MOCK_DATA does not equal true then data will come from guppy data otherwise data will come from mock data from json files
pytest tests\endpoint.py