Reformat for black linter

This commit is contained in:
Antonin Reitz 2019-11-27 12:01:52 +01:00
parent 27c7a47c46
commit c3d6e2b144
2 changed files with 4 additions and 3 deletions

View file

@ -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):

View file

@ -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