Merge lp:~jaboing/canonical-identity-provider/debug_paper_codes into lp:canonical-identity-provider/release
Proposed by
Julien Funk
Status: | Rejected |
---|---|
Rejected by: | Natalia Bidart |
Proposed branch: | lp:~jaboing/canonical-identity-provider/debug_paper_codes |
Merge into: | lp:canonical-identity-provider/release |
Diff against target: |
323 lines (+182/-48) 6 files modified
acceptance/pages.py (+96/-0) acceptance/tests/devices/scripts/test_device_login.py (+79/-46) webui/models.py (+1/-0) webui/templates/account/edit.html (+1/-1) webui/templates/account/suspended.html (+2/-0) webui/templates/ubuntu/registration/twofactor.html (+3/-1) |
To merge this branch: | bzr merge lp:~jaboing/canonical-identity-provider/debug_paper_codes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leo Arias (community) | Needs Fixing | ||
Review via email: mp+165489@code.launchpad.net |
Commit message
Refactored login.py to test_device_
Description of the change
Refactored login.py to test_device_
To post a comment you must log in.
Unmerged revisions
- 881. By Julien Funk
-
resolved conflict with merge
- 880. By Julien Funk
-
Merging with trunk.
- 879. By Julien Funk
-
merging with latest
- 878. By Julien Funk
-
refactored the 2F tests from login.py to use the testcase class format
- 877. By Julien Funk
-
updating my branch with latest from trunk
- 876. By Julien Funk
-
merging after new pull
- 875. By Julien Funk
-
In progress of writing test_device_login with changes to pages.py
<elopio> jfunk: why did you add preferences to go_to_your_account, as it has preferences and other information. twofactor( True) twofactor( always_ required= True) unverified_ account_ access shouldn't be part of the page. launchpad. net/bugs/ 923814>
<elopio> 239␉+# -*- coding: utf-8 -*-
<elopio> ?
<jfunk> elopio, I never added that actually, don't know how or why
<jfunk> sometimes my trackpad does interesting things
<jfunk> I can delete that
<elopio> jfunk: did you merge with trunk?
<jfunk> elopio, yes
<elopio> weird then.
<elopio> jfunk: well, the thing with the encoding is that the pep says it should be added just if required.
<elopio> some people prefer to add it always.
<elopio> so we don't have a real preference on that. It just looked weird on your mp.
<jfunk> yeah agree
<elopio> jfunk: I would rename go_to_edit_
<jfunk> elopio, sure
<jfunk> elopio, the reason why I called it that is because the template is named 'edit.html'
<elopio> jfunk: on TwoFactorVerify, the title is not being used if you define the qa_anchor.
<elopio> jfunk: l. 101 is not aligned. It will fail on the pep8 test.
<jfunk> weird, I checked that out, thanks
<elopio> according to the clean code book, functions that receive booleans are terrible.
<elopio> on python I think they are not so bad, because we have keyword arguments, so I try no to use them a lot but I still find them useful
<elopio> on your branch, a nice example is self._set_
<elopio> it will be more readable if you do self._set_
<elopio> I think attempt_
<elopio> I think it will be only used once, by the test. So I'll move it to the test.
<elopio> and, I would keep the comment about bug #923814
<hal> Bug #923814: "Always require an auth device" doesn't! <http://
<elopio> jfunk: those are all my comments. Tests look really nice. Thanks again.
<elopio> and they will look even nicer tomorrow when I land the fixtures.
<jfunk> elopio, cool! I am going to try hard to get the rest of devices done this week