*: remove debug statements from tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-13 23:41:08 +01:00
parent 728c8e994d
commit ede6bcd31e
6 changed files with 3 additions and 6 deletions

View file

@ -41,7 +41,7 @@ class TestPropertyMappingAPI(APITestCase):
expr = "return True" expr = "return True"
self.assertEqual(PropertyMappingSerializer().validate_expression(expr), expr) self.assertEqual(PropertyMappingSerializer().validate_expression(expr), expr)
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
print(PropertyMappingSerializer().validate_expression("/")) PropertyMappingSerializer().validate_expression("/")
def test_types(self): def test_types(self):
"""Test PropertyMappigns's types endpoint""" """Test PropertyMappigns's types endpoint"""

View file

@ -74,4 +74,4 @@ class TestExpressionPolicyAPI(APITestCase):
expr = "return True" expr = "return True"
self.assertEqual(ExpressionPolicySerializer().validate_expression(expr), expr) self.assertEqual(ExpressionPolicySerializer().validate_expression(expr), expr)
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
print(ExpressionPolicySerializer().validate_expression("/")) ExpressionPolicySerializer().validate_expression("/")

View file

@ -74,7 +74,6 @@ class AppleOAuth2Callback(OAuthCallback):
self, self,
info: dict[str, Any], info: dict[str, Any],
) -> dict[str, Any]: ) -> dict[str, Any]:
print(info)
return { return {
"email": info.get("email"), "email": info.get("email"),
"name": info.get("name"), "name": info.get("name"),

View file

@ -90,6 +90,5 @@ class AuthenticatorSMSStageTests(APITestCase):
"code": int(self.client.session[SESSION_SMS_DEVICE].token), "code": int(self.client.session[SESSION_SMS_DEVICE].token),
}, },
) )
print(response.content)
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
sms_send_mock.assert_not_called() sms_send_mock.assert_not_called()

View file

@ -29,4 +29,4 @@ class TestEmailStageAPI(APITestCase):
EmailTemplates.ACCOUNT_CONFIRM, EmailTemplates.ACCOUNT_CONFIRM,
) )
with self.assertRaises(ValidationError): with self.assertRaises(ValidationError):
print(EmailStageSerializer().validate_template("foobar")) EmailStageSerializer().validate_template("foobar")

View file

@ -145,7 +145,6 @@ class TestProviderOAuth2OIDCImplicit(SeleniumTestCase):
self.wait.until(ec.presence_of_element_located((By.CSS_SELECTOR, "pre"))) self.wait.until(ec.presence_of_element_located((By.CSS_SELECTOR, "pre")))
sleep(1) sleep(1)
body = loads(self.driver.find_element(By.CSS_SELECTOR, "pre").text) 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"]["nickname"], self.user.username)
self.assertEqual(body["profile"]["name"], self.user.name) self.assertEqual(body["profile"]["name"], self.user.name)
self.assertEqual(body["profile"]["email"], self.user.email) self.assertEqual(body["profile"]["email"], self.user.email)