stages/invitation: fix linting

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-03 10:08:50 +02:00
parent 5ea9601062
commit 2507c0eec9
2 changed files with 2 additions and 4 deletions

View File

@ -130,9 +130,7 @@ class TestUserLoginStage(TestCase):
"""Test with invitation, check data in session""" """Test with invitation, check data in session"""
data = {"foo": "bar"} data = {"foo": "bar"}
invite = Invitation.objects.create( invite = Invitation.objects.create(
created_by=get_anonymous_user(), created_by=get_anonymous_user(), fixed_data=data, single_use=True
fixed_data=data,
single_use=True
) )
plan = FlowPlan( plan = FlowPlan(

View File

@ -32,7 +32,7 @@ from authentik.core.api.users import UserSerializer
from authentik.core.models import User from authentik.core.models import User
from authentik.managed.manager import ObjectManager from authentik.managed.manager import ObjectManager
RETRIES = int(environ.get("RETRIES", "3")) RETRIES = int(environ.get("RETRIES", "5"))
# pylint: disable=invalid-name # pylint: disable=invalid-name
def USER() -> User: # noqa def USER() -> User: # noqa