Nicolas Roche
40287181cc
gitea/passerelle/pipeline/head This commit looks good
Details
|
||
---|---|---|
.. | ||
data | ||
.gitignore | ||
README | ||
__init__.py | ||
conftest.py | ||
test_00_data.py | ||
test_01_misc.py | ||
test_02_family.py | ||
test_03_petite_enfance.py | ||
test_04_scolaire.py | ||
test_05_perisco.py | ||
test_06_loisirs.py | ||
test_07_extrasco.py | ||
test_08_basket.py | ||
test_09_invoice.py |
README
Functional tests for the Toulouse Maelis connector Description =========== This test suite will use the web API of a passerelle Toulouse Maelis connector to link a Publik account and check that the connector is behaving as expected. Usage ===== You will need a running passerelle instance, whith the Toulouse Maelis connector instance configured to connect to a Maelis server. Suppose that the Toulouse Mealis connector instance is listening here : http://127.0.0.1:8000/toulouse-maelis/test As tests will launch connector cron, you shoud need to enter in the python virtual environment of your publik devinst : $ ~/envs/publik-env-py3/bin/activate $ passerelle-manage tenant_command cron -v2 --connector toulouse-maelis daily --connector-slug test --domain 127.0.0.1:8000 Then you would start the test suite with the following command: $ cd functests/toulouse_maelis $ py.test -sx --url=http://127.0.0.1:8000/toulouse-maelis/test "lastname" parameter may be provide to create or update a test family $ py.test -s --url=http://127.0.0.1:8000/toulouse-maelis/test --lastname=foo