Skip to content

Commit

Permalink
test_event_str_and_repr: use timezone.now for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jul 13, 2018
1 parent f6dfccc commit 0180626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/stripe/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_event_processing_exception_str(self):
self.assertTrue("Event=" in str(e))

def test_event_str_and_repr(self):
created_at = datetime.datetime.utcnow()
created_at = timezone.now()
created_at_iso = created_at.replace(microsecond=0).isoformat()
e = Event(kind="customer.deleted", webhook_message={}, created_at=created_at)
self.assertTrue("customer.deleted" in str(e))
Expand Down

0 comments on commit 0180626

Please sign in to comment.