This commit is contained in:
Cayo Puigdefabregas 2021-02-03 16:47:24 +01:00
parent 25112f20ea
commit af3f9058af
1 changed files with 12 additions and 11 deletions

View File

@ -150,7 +150,8 @@ class ListMixin(object):
address_name = '%s_name' % random_ascii(10) address_name = '%s_name' % random_ascii(10)
domain_name = '%sdomain.lan' % random_ascii(10) domain_name = '%sdomain.lan' % random_ascii(10)
address_domain = Domain.objects.create(name=domain_name, account=self.account) address_domain = Domain.objects.create(name=domain_name, account=self.account)
self.add(name, password, admin_email, address_name=address_name, address_domain=address_domain) self.add(name, password, admin_email, address_name=address_name,
address_domain=address_domain)
# Mailman doesn't support changing the address, only the domain # Mailman doesn't support changing the address, only the domain
self.validate_add(name, address="%s@%s" % (address_name, address_domain)) self.validate_add(name, address="%s@%s" % (address_name, address_domain))
self.delete(name) self.delete(name)