Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: test_create_dip.py test may fail because of DST #59

Open
jrwdunham opened this issue Apr 23, 2018 · 0 comments
Open

Problem: test_create_dip.py test may fail because of DST #59

jrwdunham opened this issue Apr 23, 2018 · 0 comments
Assignees

Comments

@jrwdunham
Copy link
Contributor

I'm getting a failure at https://github.com/artefactual/automation-tools/blob/master/tests/test_create_dip.py#L143 when I run test_create_dip_success locally:

>               assert aip_lastmodified - 1 <= lastmodified <= aip_lastmodified + 1
E               AssertionError: assert 1510853052 <= (1510849451 + 1)

This looks like a (DST) timezone issue because the dates are off by 1 hour (plus the expected 1 second):

  • 1510849451 is 2017-11-16 08:24:11
  • 1510853052 is 2017-11-16 09:24:12
@jrwdunham jrwdunham self-assigned this Apr 23, 2018
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

No branches or pull requests

1 participant