Skip to content

Commit dea510c

Browse files
pre-commit-ci[bot]nijel
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7e3e909 commit dea510c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

social_core/backends/cas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def auth_allowed(self, response, details):
6969
if not allow_groups:
7070
return True
7171

72-
groups = response.get('groups', [])
72+
groups = response.get("groups", [])
7373
for group in groups:
7474
if group in allow_groups:
7575
return True

social_core/tests/backends/test_cas.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ def extra_settings(self):
4747
settings.update(
4848
{
4949
f"SOCIAL_AUTH_{self.name}_OIDC_ENDPOINT": f"{ROOT_URL}oidc",
50-
f"SOCIAL_AUTH_{self.name}_ALLOW_GROUPS": ["users",],
51-
f"SOCIAL_AUTH_{self.name}_WHITELISTED_DOMAINS": ["example.net",]
50+
f"SOCIAL_AUTH_{self.name}_ALLOW_GROUPS": [
51+
"users",
52+
],
53+
f"SOCIAL_AUTH_{self.name}_WHITELISTED_DOMAINS": [
54+
"example.net",
55+
],
5256
}
5357
)
5458
return settings

0 commit comments

Comments
 (0)