Skip to content

Conversation

@noel-reeds
Copy link

datetime objects; tic and toc are created in a different timezone from the BaseModel's attribute created_at and updated_at hence a comparison fails.
changing tic and toc to datetime.utcnow() solves that and all the tests pass.

@noel-reeds
Copy link
Author

specifically assertions self.assertTrue(tic <= inst1.created_at <= toc) and self.assertTrue(tic <= inst2.created_at <= toc) fail as a result of the above described

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants