Skip to content

testing base model - test_base_model.py line 85 - 93 - #3754

Open
noel-reeds wants to merge 26 commits into
alexaorrico:masterfrom
noel-reeds:master
Open

testing base model - test_base_model.py line 85 - 93#3754
noel-reeds wants to merge 26 commits into
alexaorrico:masterfrom
noel-reeds:master

Conversation

@noel-reeds

Copy link
Copy Markdown

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
Copy Markdown
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