Skip to content

Commit

Permalink
fix lint and tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu committed Feb 11, 2024
1 parent 051fc8a commit 2752cd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion authentik/enterprise/providers/rac/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ def mapping_evaluator(mappings: QuerySet):
return settings

def __str__(self):
return f"RAC Connection token {self.session.user} to {self.endpoint.provider.name}/{self.endpoint.name}"
return (
f"RAC Connection token {self.session.user} to "
f"{self.endpoint.provider.name}/{self.endpoint.name}"
)

class Meta:
verbose_name = _("RAC Connection token")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def test_list(self):
"authorization_flow": None,
"property_mappings": [],
"connection_expiry": "hours=8",
"delete_token_on_disconnect": False,
"component": "ak-provider-rac-form",
"assigned_application_slug": self.app.slug,
"assigned_application_name": self.app.name,
Expand Down Expand Up @@ -124,6 +125,7 @@ def test_list_superuser_full_list(self):
"assigned_application_slug": self.app.slug,
"assigned_application_name": self.app.name,
"connection_expiry": "hours=8",
"delete_token_on_disconnect": False,
"verbose_name": "RAC Provider",
"verbose_name_plural": "RAC Providers",
"meta_model_name": "authentik_providers_rac.racprovider",
Expand Down Expand Up @@ -152,6 +154,7 @@ def test_list_superuser_full_list(self):
"assigned_application_slug": self.app.slug,
"assigned_application_name": self.app.name,
"connection_expiry": "hours=8",
"delete_token_on_disconnect": False,
"verbose_name": "RAC Provider",
"verbose_name_plural": "RAC Providers",
"meta_model_name": "authentik_providers_rac.racprovider",
Expand Down

0 comments on commit 2752cd8

Please sign in to comment.