home
·
contact
·
privacy
projects
/
plomtask
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e14580b
)
Minor refactoring.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 28 Apr 2024 21:20:42 +0000
(23:20 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 28 Apr 2024 21:20:42 +0000
(23:20 +0200)
tests/utils.py
patch
|
blob
|
history
diff --git
a/tests/utils.py
b/tests/utils.py
index 2a919a31dbb057f4db558861d2fafe8277db5521..34f429e9d1fcc6355cdb9d7eae8f60c9e125b2d5 100644
(file)
--- a/
tests/utils.py
+++ b/
tests/utils.py
@@
-70,9
+70,9
@@
class TestCaseWithServer(TestCaseWithDB):
'Content-Length': str(len(encoded_form_data))}
self.conn.request('POST', target,
body=encoded_form_data, headers=headers)
- if redirect_location == '':
- redirect_location = target
if 302 == expected_code:
+ if redirect_location == '':
+ redirect_location = target
self.check_redirect(redirect_location)
else:
self.assertEqual(self.conn.getresponse().status, expected_code)