toulouse-maelis: expand functests instructions in README (#72718)
This commit is contained in:
parent
61b3adf618
commit
76fd2fa979
|
@ -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
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue