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

Fix tests on master #64

Merged
merged 1 commit into from Feb 5, 2019
Merged

Fix tests on master #64

merged 1 commit into from Feb 5, 2019

Conversation

mgedmin
Copy link
Member

@mgedmin mgedmin commented Feb 5, 2019

browser.cookies.change() helpfully makes the cookie disappear if you set
an expirationd date in the past.

We had a narrative test that tried to use a fixed future date (2019
January 1st) that is no longer a future date.

Now in a regular unit test I could do things like datetime.date.today()
and write a test that will never expire. But this is a doctest so I'll
just shift all the dates 10 years into the future and leave the problem
for some unlucky future person down the road.

Fixes #62.

browser.cookies.change() helpfully makes the cookie disappear if you set
an expirationd date in the past.

We had a narrative test that tried to use a fixed future date (2019
January 1st) that is no longer a future date.

Now in a regular unit test I could do things like datetime.date.today()
and write a test that will never expire.  But this is a doctest so I'll
just shift all the dates 10 years into the future and leave the problem
for some unlucky future person down the road.

Fixes #62.
Copy link
Member

@jamadden jamadden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgedmin mgedmin merged commit 11d7b0e into master Feb 5, 2019
@mgedmin mgedmin deleted the fix-tests branch February 5, 2019 16:31
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.

Tests are broken on master
2 participants