From 2beeb8cc4c8bda2737fc8c3cd18fa3d0ba459e7d Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Sat, 7 Jun 2025 21:22:59 +0200 Subject: [PATCH] Added debug --- modoboa/core/tests/test_ldap.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/modoboa/core/tests/test_ldap.py b/modoboa/core/tests/test_ldap.py index e1dbe8d42..5953ccdc4 100644 --- a/modoboa/core/tests/test_ldap.py +++ b/modoboa/core/tests/test_ldap.py @@ -9,7 +9,7 @@ from django.utils.functional import cached_property from modoboa.lib import exceptions from modoboa.lib.tests import NO_LDAP, ModoTestCase, ModoAPITestCase -from .. import factories, models +from .. import models @skipIf(NO_LDAP, "No ldap module installed") @@ -139,14 +139,6 @@ class LDAPAuthenticationTestCase(LDAPTestCaseMixin, ModoTestCase): class ProfileTestCase(LDAPTestCaseMixin, ModoAPITestCase): """Profile related tests.""" - @classmethod - def setUpTestData(cls): # NOQA:N802 - """Create test data.""" - super().setUpTestData() - cls.account = factories.UserFactory( - username="user@test.com", groups=("SimpleUsers",) - ) - @override_settings( AUTHENTICATION_BACKENDS=( "modoboa.lib.authbackends.LDAPBackend", @@ -165,5 +157,6 @@ class ProfileTestCase(LDAPTestCaseMixin, ModoAPITestCase): {"password": "test", "new_password": "Toto1234"}, format="json", ) + print(response.json()) self.assertEqual(response.status_code, 200) self.authenticate(username, "Toto1234", False)