Skip to content

ne-cdietsch/test-ncpa-api-endpoints

Repository files navigation

test-ncpa-api-endpoints

Python tests to check the API endpoints are working as expected on NCPA clients

How to run the tests

cd test-ncpa-api-endpoints/

Setup the python venv (only needs to be done the first time to set everything up)

./setup_venv.sh

Activate the venv (needs to be run everytime you wish to run the tests)

source test_ncpa_venv/bin/activate

Edit the config file to set the url and token for your client

vim ncpa_config.py

Run all tests without logging

pytest

Run all tests with logging

pytest --log-cli-level=INFO

Run specific test

pytest --log-cli-level=INFO test_ncpa_connection.py

Deactivate venv when done

deactivate

About

Python tests to check the API endpoints are working as expected on NCPA clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published