Merge lp:~elopio/u1-test-utils/refactor_api into lp:u1-test-utils
Proposed by
Leo Arias
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Ricardo Kirkner | ||||
Approved revision: | 66 | ||||
Merged at revision: | 65 | ||||
Proposed branch: | lp:~elopio/u1-test-utils/refactor_api | ||||
Merge into: | lp:u1-test-utils | ||||
Diff against target: |
312 lines (+74/-65) 7 files modified
u1testutils/pay/__init__.py (+1/-1) u1testutils/pay/api.py (+2/-3) u1testutils/pay/selftests/unit/test_pay_api_client.py (+7/-7) u1testutils/sso/api.py (+33/-28) u1testutils/sso/data.py (+5/-4) u1testutils/sso/selftests/unit/test_data.py (+5/-5) u1testutils/sso/selftests/unit/test_sso_api_client.py (+21/-17) |
||||
To merge this branch: | bzr merge lp:~elopio/u1-test-utils/refactor_api | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ricardo Kirkner (community) | Approve | ||
Review via email: mp+163246@code.launchpad.net |
Commit message
Renamed the api helpers and refactored the SSO one to receive a server url.
Description of the change
When running SSO tests against staging or production, the django open_id server variable is set to local.
This refactor makes the SSO API helper look more like the pay one, and allows to pass an arbitrary server on its constructors.
Here I also renamed the helpers from client to api, as suggested by Ricardo.
To post a comment you must log in.
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 61 tests in 150.203s
OK
Totals: ran(61), skipped(0), errors(0), failures(0)