Skip to content

Commit

Permalink
Fix deprecation warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
millerdev committed Feb 19, 2025
1 parent c7cedba commit 1b34f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def test_exact(self):
class DateObj(JsonObject):
date = DateTimeProperty(exact=True)
import datetime
date = datetime.datetime.utcnow()
date = datetime.datetime.now(datetime.UTC).replace(tzinfo=None)
date_obj = DateObj(date=date)
self.assertEqual(date_obj.date, date)
self.assertEqual(date_obj.to_json()['date'], date.isoformat() + 'Z')
Expand Down

0 comments on commit 1b34f53

Please sign in to comment.