Reformat for black linter
This commit is contained in:
parent
27c7a47c46
commit
c3d6e2b144
2 changed files with 4 additions and 3 deletions
|
@ -168,8 +168,9 @@ class GenericLoginViewTests(TestCase):
|
|||
r = self.client.post(self.url)
|
||||
|
||||
self.assertRedirects(
|
||||
r, "https://cas.eleves.ens.fr/logout?service=http%3A%2F%2Ftestserver%2Fk-fet%2Flogin%2Fgeneric",
|
||||
fetch_redirect_response=False
|
||||
r,
|
||||
"https://cas.eleves.ens.fr/logout?service=http%3A%2F%2Ftestserver%2Fk-fet%2Flogin%2Fgeneric",
|
||||
fetch_redirect_response=False,
|
||||
)
|
||||
|
||||
def test_notoken_not_team(self):
|
||||
|
|
|
@ -72,7 +72,7 @@ class GenericLoginView(View):
|
|||
# which is why the CAS logout URL with callback is constructed ad hoc,
|
||||
# without relying on Django redirection to Django CAS.
|
||||
|
||||
generic_login_url = request.build_absolute_uri() # preserves next parameter
|
||||
generic_login_url = request.build_absolute_uri() # preserves next parameter
|
||||
generic_login_qd = QueryDict(mutable=True)
|
||||
generic_login_qd["service"] = generic_login_url
|
||||
|
||||
|
|
Loading…
Reference in a new issue