|
|
@ -29,7 +29,7 @@ class MyChecksTestCase(BaseTestCase): |
|
|
|
self.assertContains(r, "icon-up") |
|
|
|
|
|
|
|
# Mobile |
|
|
|
self.assertContains(r, "label-success") |
|
|
|
self.assertContains(r, "label-up") |
|
|
|
|
|
|
|
def test_it_shows_red_check(self): |
|
|
|
self.check.last_ping = timezone.now() - td(days=3) |
|
|
@ -43,7 +43,7 @@ class MyChecksTestCase(BaseTestCase): |
|
|
|
self.assertContains(r, "icon-down") |
|
|
|
|
|
|
|
# Mobile |
|
|
|
self.assertContains(r, "label-danger") |
|
|
|
self.assertContains(r, "label-down") |
|
|
|
|
|
|
|
def test_it_shows_amber_check(self): |
|
|
|
self.check.last_ping = timezone.now() - td(days=1, minutes=30) |
|
|
@ -57,7 +57,7 @@ class MyChecksTestCase(BaseTestCase): |
|
|
|
self.assertContains(r, "icon-grace") |
|
|
|
|
|
|
|
# Mobile |
|
|
|
self.assertContains(r, "label-warning") |
|
|
|
self.assertContains(r, "label-grace") |
|
|
|
|
|
|
|
def test_it_hides_add_check_button(self): |
|
|
|
self.profile.check_limit = 0 |
|
|
|