mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
fixed unit tests
This commit is contained in:
parent
6ece85796c
commit
a9d57cda07
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ from registrar.models import (
|
|||
DraftDomain,
|
||||
DomainInvitation,
|
||||
Contact,
|
||||
PublicContact,
|
||||
Website,
|
||||
UserDomainRole,
|
||||
User,
|
||||
|
@ -1113,6 +1114,7 @@ class TestWithDomainPermissions(TestWithUser):
|
|||
if hasattr(self.domain, "contacts"):
|
||||
self.domain.contacts.all().delete()
|
||||
DomainApplication.objects.all().delete()
|
||||
PublicContact.objects.all().delete()
|
||||
Domain.objects.all().delete()
|
||||
UserDomainRole.objects.all().delete()
|
||||
except ValueError: # pass if already deleted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue