passerelle/functests/toulouse_maelis
Nicolas Roche 40287181cc
gitea/passerelle/pipeline/head This commit looks good Details
toulouse-maelis: [functests] update only doctor (#2770)
2023-09-15 17:59:57 +02:00
..
data toulouse-maelis: [functests] update only doctor (#2770) 2023-09-15 17:59:57 +02:00
.gitignore toulouse-maelis: add functional tests (#71647) 2022-11-30 10:07:15 +01:00
README toulouse-maelis: expand functests instructions in README (#72718) 2022-12-23 16:03:01 +01:00
__init__.py toulouse-maelis: add functional tests (#71647) 2022-11-30 10:07:15 +01:00
conftest.py toulouse-maelis: [functests] update vaccins referential (#79979) 2023-07-28 18:25:27 +02:00
test_00_data.py misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:08:30 +02:00
test_01_misc.py misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:08:30 +02:00
test_02_family.py toulouse-maelis: [functests] update only doctor (#2770) 2023-09-15 17:59:57 +02:00
test_03_petite_enfance.py toulouse-maelis: [functests] book providing APE indicators (#79484) 2023-07-07 14:09:46 +02:00
test_04_scolaire.py toulouse-maelis: [functests] improve tests on scolaire (#77634) 2023-06-23 15:15:56 +02:00
test_05_perisco.py misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:08:30 +02:00
test_06_loisirs.py toulouse-maelis: [functests] adding tests on capacities (#77634) 2023-06-23 15:15:56 +02:00
test_07_extrasco.py toulouse-maelis: [functests] adding tests on capacities (#77634) 2023-06-23 15:15:56 +02:00
test_08_basket.py toulouse-maelis: [functests] update invoice test on extrasco (#77634) 2023-06-23 15:15:56 +02:00
test_09_invoice.py toulouse-maelis: [functests] update invoice test on extrasco (#77634) 2023-06-23 15:15:56 +02:00

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