mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 13:34:10 +02:00
fix a test
This commit is contained in:
parent
3f79b562bd
commit
2e841711e1
2 changed files with 2 additions and 2 deletions
|
@ -1154,7 +1154,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
Returns True if expired, False otherwise.
|
Returns True if expired, False otherwise.
|
||||||
"""
|
"""
|
||||||
if self.expiration_date is None:
|
if self.expiration_date is None:
|
||||||
return True
|
return self.state != self.State.DELETED
|
||||||
now = timezone.now().date()
|
now = timezone.now().date()
|
||||||
return self.expiration_date < now
|
return self.expiration_date < now
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,7 @@ class HomeTests(TestWithUser):
|
||||||
self.assertContains(response, "You don't have any registered domains.")
|
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?")
|
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):
|
def test_state_help_text(self):
|
||||||
"""Tests if each domain state has help text"""
|
"""Tests if each domain state has help text"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue