toulouse-maelis: expand functests instructions in README (#72718)
gitea-wip/passerelle/pipeline/pr-main This commit looks good Details
gitea-wip/passerelle/pipeline/head Build started... Details
gitea/passerelle/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Nicolas Roche 2022-12-23 09:01:16 +01:00
parent 61b3adf618
commit 76fd2fa979
2 changed files with 14 additions and 1 deletions

View File

@ -17,6 +17,17 @@ 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:
$ py.test -sx --url=http://127.0.0.1:8000/toulouse-maelis/test test_toulouse_maelis.py
$ 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

View File

@ -316,6 +316,8 @@ def remove_id_on_child(conn, child):
remove_extra_indicators(conn, child['indicatorList'], 'child-indicator')
child['indicatorList'].sort(key=lambda x: x['code'])
del child['indicators'] # order may change
child['subscribeSchoolList'] = [] # not managed by test yet
child['subscribeActivityList'] = [] # not managed by test yet
def remove_id_on_rlg(conn, rlg):