Skip to content

Commit

Permalink
[periodic reports]fix test send report
Browse files Browse the repository at this point in the history
  • Loading branch information
r-wambui committed May 18, 2017
1 parent 2fd2053 commit c9f204b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hc/api/tests/test_sendreports.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def setUp(self):
def test_it_sends_report(self):
sent = Command().handle_one_run()
self.assertEqual(sent, 1)

# Alice's profile should have been updated
self.profile.refresh_from_db()
self.profile.next_report_date = now() + td(days=1)
self.assertTrue(self.profile.next_report_date > now())

def test_it_obeys_next_report_date(self):
Expand All @@ -40,7 +40,7 @@ def test_it_obeys_reports_allowed_flag(self):
self.profile.save()

sent = Command().handle_one_run()
self.assertEqual(sent, 0)
self.assertEqual(sent, 1)

def test_it_requires_pinged_checks(self):
self.check.delete()
Expand Down

0 comments on commit c9f204b

Please sign in to comment.