Skip to content

Commit

Permalink
improve coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu committed Jul 13, 2024
1 parent cc32f3e commit 2d359eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions authentik/stages/user_login/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ def test_expiry_remember(self):
session[SESSION_KEY_PLAN] = plan
session.save()

response = self.client.get(

Check warning on line 132 in authentik/stages/user_login/tests.py

View check run for this annotation

Codecov / codecov/patch

authentik/stages/user_login/tests.py#L132

Added line #L132 was not covered by tests
reverse("authentik_api:flow-executor", kwargs={"flow_slug": self.flow.slug}),
)
self.assertStageResponse(response, component="ak-stage-user-login")

Check warning on line 135 in authentik/stages/user_login/tests.py

View check run for this annotation

Codecov / codecov/patch

authentik/stages/user_login/tests.py#L135

Added line #L135 was not covered by tests

response = self.client.post(
reverse("authentik_api:flow-executor", kwargs={"flow_slug": self.flow.slug}),
data={"remember_me": True},
Expand Down

0 comments on commit 2d359eb

Please sign in to comment.