Setup virtural env
python3 -m venv env
source env/bin/activate
With deactivate
you can exit the virtual env
make installdev
Test with Python3:
from actinia import Actinia
test = Actinia()
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!)