Browse Source

fix(api): remove dead code

Nils Wisiol 5 years ago
parent
commit
339c19a219
2 changed files with 2 additions and 3 deletions
  1. 0 1
      api/desecapi/signals.py
  2. 2 2
      api/desecapi/tests/test_user_management.py

+ 0 - 1
api/desecapi/signals.py

@@ -1,4 +1,3 @@
-from django.core.mail import EmailMessage
 from django.db.models.signals import post_save
 from django.dispatch import receiver
 

+ 2 - 2
api/desecapi/tests/test_user_management.py

@@ -384,7 +384,7 @@ class UserManagementTestCase(DesecTestCase, PublicSuffixMockMixin):
         return email, password
 
     def _test_registration_with_domain(self, email=None, password=None, domain=None, expect_failure_response=None,
-                                       tampered_domain=None, local=False):
+                                       tampered_domain=None):
         domain = domain or self.random_domain_name()
 
         email, password, response = self.register_user(email, password, domain=domain)
@@ -497,7 +497,7 @@ class NoUserAccountTestCase(UserLifeCycleTestCase):
             self._test_registration_with_domain(domain='co.uk', expect_failure_response=self.assertRegistrationFailureDomainUnavailableResponse)
         local_public_suffix = random.sample(self.AUTO_DELEGATION_DOMAINS, 1)[0]
         with self.get_psl_context_manager(local_public_suffix):
-            self._test_registration_with_domain(domain=self.random_domain_name(suffix=local_public_suffix), local=True)
+            self._test_registration_with_domain(domain=self.random_domain_name(suffix=local_public_suffix))
 
     def test_registration_with_tampered_domain(self):
         PublicSuffixMockMixin.setUpMockPatch(self)