Skip to content

Commit

Permalink
don't depend on seconds in tests writing to JSON files, r=rhelmer
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Jul 6, 2012
1 parent 9158300 commit 9053dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socorro/unittest/cron/test_crontabber.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def fmt(d):
one_week = today + datetime.timedelta(days=7)
self.assertTrue(today.strftime('%Y-%m-%d')
in information['last_run'])
self.assertTrue(today.strftime('%H:%M:%S')
self.assertTrue(today.strftime('%H:%M')
in information['last_run'])
self.assertTrue(one_week.strftime('%Y-%m-%d')
in information['next_run'])
Expand Down Expand Up @@ -293,7 +293,7 @@ def test_run_into_error_first_time(self):
one_week = today + datetime.timedelta(days=7)
self.assertTrue(today.strftime('%Y-%m-%d')
in information['last_run'])
self.assertTrue(today.strftime('%H:%M:%S')
self.assertTrue(today.strftime('%H:%M')
in information['last_run'])
self.assertTrue(one_week.strftime('%Y-%m-%d')
in information['next_run'])
Expand Down

0 comments on commit 9053dcf

Please sign in to comment.