fix a test

This commit is contained in:
matthewswspence 2024-12-05 11:30:16 -06:00
parent 3f79b562bd
commit 2e841711e1
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
2 changed files with 2 additions and 2 deletions

View file

@ -1154,7 +1154,7 @@ class Domain(TimeStampedModel, DomainHelper):
Returns True if expired, False otherwise.
"""
if self.expiration_date is None:
return True
return self.state != self.State.DELETED
now = timezone.now().date()
return self.expiration_date < now

View file

@ -169,7 +169,7 @@ class HomeTests(TestWithUser):
self.assertContains(response, "You don't have any registered domains.")
self.assertContains(response, "Why don't I see my domain when I sign in to the registrar?")
# @less_console_noise_decorator
@less_console_noise_decorator
def test_state_help_text(self):
"""Tests if each domain state has help text"""