Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 730 Bytes

README-dev.md

File metadata and controls

41 lines (31 loc) · 730 Bytes

Dev setup for the actinia-python-client library development

Setup virtural env

python3 -m venv env
source env/bin/activate

With deactivate you can exit the virtual env

Install actinia for development

make installdev

Test with Python3:

from actinia import Actinia
test = Actinia()

Run tests

docker-compose -f "docker/docker-compose-test.yml" up -d --build

make test
# or
make devtest

docker-compose -f "docker/docker-compose-test.yml" down

To run only a few tests you can mark the tests for development with @pytest.mark.dev and add import pytest to the .py file/s with the tests you want to run. Then run

make devtest

(This fails if no test is marked!)