passerelle/functests/toulouse_maelis
Nicolas Roche 50c725d393
gitea/passerelle/pipeline/head This commit looks good Details
toulouse-maelis: add natures subscribed to read-family response (#75549)
2023-03-29 18:34:26 +02:00
..
data toulouse-maelis: adapt functests with last changes (#74645) 2023-03-24 14:42:57 +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: add natures subscribed to read-family response (#75549) 2023-03-29 18:34:26 +02:00
read_family.py Revert "toulouse-maelis: [tools] add raw SOAP scripts (#75927) 2023-03-28 15:42:30 +02:00
test_data.py toulouse-maelis: adapt functests with last changes (#74645) 2023-03-24 14:42:57 +01:00
test_family.py toulouse-maelis: adapt functests with last changes (#74645) 2023-03-24 14:42:57 +01:00
test_invoice.py toulouse-maelis: adapt functests with last changes (#74645) 2023-03-24 14:42:57 +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