Getting started
Installation
To install the advancedtools package, you can run:pip install caosadvancedtools
Additional dependencies
To test using tox, you also need to install tox:pip install tox
To install dependencies used by optional functionality, the following pip extras keywords are defined:
testfor testing with pytestdocfor building the documentationdevfor code formattingh5for the h5-crawlerallto install all optional dependencies
These extras can be installed using: pip install .[KEYWORD]
A current list of the dependencies installed with this program as well as those installed with
the keywords can be found in setup.pys setup_package() method, in the metadata dictionary
entries install_requires and extras_require.
Run Unit Tests
All tests:
toxOne specific test with tox:
tox -- unittests/test_myusecase.py -k expressionUsing only pytest:
pytest unittestsor for running only one testpytest unittests/test_myusecase.py -k expression
Run Integration Tests Locally
Start LinkAhead using the profile in
integrationtests/test_profile/profile.yamlChange directory to
integrationtests/.Run
test.sh. Note that this may modify content of theintegrationtest/extroot/directory.Alternatively, run single tests:
pyest integrationtest/test_foo.py
Code Formatting
make style
Documentation
We use sphinx to create the documentation. Docstrings in the code should comply with the Googly style (see link below).
Build documentation in build/ with make doc.