From ede6bcd31ea49e1308ee005c9f38b891cc581d97 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 13 Dec 2021 23:41:08 +0100 Subject: [PATCH] *: remove debug statements from tests Signed-off-by: Jens Langhammer --- authentik/core/tests/test_property_mapping_api.py | 2 +- authentik/policies/expression/tests.py | 2 +- authentik/sources/oauth/types/apple.py | 1 - authentik/stages/authenticator_sms/tests.py | 1 - authentik/stages/email/tests/test_api.py | 2 +- tests/e2e/test_provider_oauth2_oidc_implicit.py | 1 - 6 files changed, 3 insertions(+), 6 deletions(-) diff --git a/authentik/core/tests/test_property_mapping_api.py b/authentik/core/tests/test_property_mapping_api.py index d5e74f626..29e608c05 100644 --- a/authentik/core/tests/test_property_mapping_api.py +++ b/authentik/core/tests/test_property_mapping_api.py @@ -41,7 +41,7 @@ class TestPropertyMappingAPI(APITestCase): expr = "return True" self.assertEqual(PropertyMappingSerializer().validate_expression(expr), expr) with self.assertRaises(ValidationError): - print(PropertyMappingSerializer().validate_expression("/")) + PropertyMappingSerializer().validate_expression("/") def test_types(self): """Test PropertyMappigns's types endpoint""" diff --git a/authentik/policies/expression/tests.py b/authentik/policies/expression/tests.py index 1b1b1a279..fac8338d0 100644 --- a/authentik/policies/expression/tests.py +++ b/authentik/policies/expression/tests.py @@ -74,4 +74,4 @@ class TestExpressionPolicyAPI(APITestCase): expr = "return True" self.assertEqual(ExpressionPolicySerializer().validate_expression(expr), expr) with self.assertRaises(ValidationError): - print(ExpressionPolicySerializer().validate_expression("/")) + ExpressionPolicySerializer().validate_expression("/") diff --git a/authentik/sources/oauth/types/apple.py b/authentik/sources/oauth/types/apple.py index 43d829a1c..03bad20a9 100644 --- a/authentik/sources/oauth/types/apple.py +++ b/authentik/sources/oauth/types/apple.py @@ -74,7 +74,6 @@ class AppleOAuth2Callback(OAuthCallback): self, info: dict[str, Any], ) -> dict[str, Any]: - print(info) return { "email": info.get("email"), "name": info.get("name"), diff --git a/authentik/stages/authenticator_sms/tests.py b/authentik/stages/authenticator_sms/tests.py index cb65c2256..a7c56d422 100644 --- a/authentik/stages/authenticator_sms/tests.py +++ b/authentik/stages/authenticator_sms/tests.py @@ -90,6 +90,5 @@ class AuthenticatorSMSStageTests(APITestCase): "code": int(self.client.session[SESSION_SMS_DEVICE].token), }, ) - print(response.content) self.assertEqual(response.status_code, 200) sms_send_mock.assert_not_called() diff --git a/authentik/stages/email/tests/test_api.py b/authentik/stages/email/tests/test_api.py index 56c809870..ca501d321 100644 --- a/authentik/stages/email/tests/test_api.py +++ b/authentik/stages/email/tests/test_api.py @@ -29,4 +29,4 @@ class TestEmailStageAPI(APITestCase): EmailTemplates.ACCOUNT_CONFIRM, ) with self.assertRaises(ValidationError): - print(EmailStageSerializer().validate_template("foobar")) + EmailStageSerializer().validate_template("foobar") diff --git a/tests/e2e/test_provider_oauth2_oidc_implicit.py b/tests/e2e/test_provider_oauth2_oidc_implicit.py index 691559550..94df094aa 100644 --- a/tests/e2e/test_provider_oauth2_oidc_implicit.py +++ b/tests/e2e/test_provider_oauth2_oidc_implicit.py @@ -145,7 +145,6 @@ class TestProviderOAuth2OIDCImplicit(SeleniumTestCase): self.wait.until(ec.presence_of_element_located((By.CSS_SELECTOR, "pre"))) sleep(1) body = loads(self.driver.find_element(By.CSS_SELECTOR, "pre").text) - print(body) self.assertEqual(body["profile"]["nickname"], self.user.username) self.assertEqual(body["profile"]["name"], self.user.name) self.assertEqual(body["profile"]["email"], self.user.email)