passerelle/functests/toulouse_maelis
Nicolas Roche 1d86c0ac65
gitea-wip/passerelle/pipeline/pr-main This commit looks good Details
gitea/passerelle/pipeline/head Something is wrong with the build of this commit Details
toulouse-maelis: update soap error in functests (#73411)
2023-02-08 08:40:24 +01:00
..
data toulouse-maelis: adapt functest with new referential values (#74187) 2023-02-06 16:17:49 +01: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: use integer err code in functests (#74187) 2023-02-06 16:17:49 +01:00
read_family.py toulouse-maelis: update target in read_family script (#72352) 2022-12-23 11:07:17 +01:00
test_data.py toulouse-maelis: add document referential (#72532) 2022-12-23 11:15:11 +01:00
test_family.py toulouse-maelis: update soap error in functests (#73411) 2023-02-08 08:40:24 +01:00
test_invoice.py toulouse-maelis: pass get-direct-debit order parameters in QS (#72563) 2022-12-23 10:32:09 +01:00
test_misc.py toulouse-maelis: update soap error in functests (#73411) 2023-02-08 08:40:24 +01: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