Merge lp:~elopio/u1-test-utils/payclient_data_objects into lp:u1-test-utils
Proposed by
Leo Arias
Status: | Merged |
---|---|
Approved by: | Leo Arias |
Approved revision: | 47 |
Merged at revision: | 43 |
Proposed branch: | lp:~elopio/u1-test-utils/payclient_data_objects |
Merge into: | lp:u1-test-utils |
Diff against target: |
143 lines (+27/-61) 4 files modified
requirements.txt (+1/-1) u1testutils/pay/client.py (+2/-18) u1testutils/pay/data.py (+21/-25) u1testutils/pay/selftests/unit/test_pay_api_client.py (+3/-17) |
To merge this branch: | bzr merge lp:~elopio/u1-test-utils/payclient_data_objects |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Matias Bordese (community) | Approve | ||
Review via email: mp+157435@code.launchpad.net |
Commit message
Updated the payclient helpers to use the new data object factory method of CreditCardRequest. Also removed the duplicated bits of data objects.
To post a comment you must log in.
<pindonga> elopio, on the second mp: l. 8: this should be the result of landing the previous branch, not your own :) code=self. _get_country_ code(country)
<pindonga> elopio, l. 84: why redefine __init__ ? why not instead call super() and just add the extra pieces you need?
<pindonga> and I think that's sit
<elopio> pindonga: l. 8, yes, I left it in case you wanted to run the tests. I have it as work in progress to make sure I'll change it before landing.
<elopio> l. 84, I changed the country_code to a lazy property. So the super __init__ will fail if it tries to set it. I don't know a better solution. ideas?
<pindonga> elopio, you could just call super.__init__ passing country_
<pindonga> no need to have the lazy property at all
<elopio> pindonga: that makes more sense, right. I'll change it.