]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Fix test_login in test_user_browser.py
authorDaniel Axtens <dja@axtens.net>
Tue, 9 Aug 2016 04:27:37 +0000 (14:27 +1000)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sat, 20 Aug 2016 18:18:42 +0000 (19:18 +0100)
commit41a6e7a9f3dc73ca67a5c3cc1faaf6feeddf72ef
treeb62e984f23d5166343fe7719f8ab47ed82577506
parent231966452f22dd344eabdd4f0722ce5463d1469a
Fix test_login in test_user_browser.py

It tried to use the pbkdf2 hash as the password. Use the username instead, as that
is what create_user sets.

Then it compared the test user username to testuser, rather than the username, which
is dynamically generated. Compare to the generated username.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Stephen Finucane <stephenfinucane@hotmail.com>
patchwork/tests/test_user_browser.py