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

make datetime objs timezone-aware and UTC default #256

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a398883
schedule: make datetime objs timezone-aware and UTC default
sarnold Nov 9, 2018
76483ce
Update utc class and add tests for the new code
sarnold Nov 13, 2018
f602fc0
schedule/__init__.py: make datetime objs timezone-aware and UTC default
sarnold Nov 16, 2018
935cf31
schedule/__init__.py: add class-level self.logging, update log calls
sarnold Nov 14, 2018
f48d1b8
schedule: add tag param for run_all and extra logging
sarnold Nov 14, 2018
4fceba0
schedule/__init__.py: rebase of add-properties on 0.5.0 plus patches
sarnold Nov 15, 2018
a66ad04
schedule/parent_logger.py: add class logging snippet
sarnold Nov 16, 2018
95d72c0
Post-rebase clenaups for flake8/pep8 and allow lines up to 95 chars
sarnold Nov 16, 2018
36db905
schedule/__init__.py: fix crufty datetime argument
sarnold Nov 16, 2018
14b51a3
__init__.py: simplify new properties, tested with get_job_info(tag)
sarnold Nov 21, 2018
09fd83d
test_schedule.py: use the custom utc argument for datetime() test
sarnold Nov 21, 2018
eb1deec
.travis.yml: disable coveralls post-build step
sarnold Nov 21, 2018
bed3f5a
Merge pull request #1 from sarnold/testing-051_pre
sarnold Nov 21, 2018
764b49f
Merge branch 'master' into utc-time
sarnold Nov 6, 2019
d0a2a9b
schedule/__init__.py: make datetime objs timezone-aware and UTC default
sarnold Nov 16, 2018
40391c6
Post-rebase clenaups for flake8/pep8 and allow lines up to 95 chars
sarnold Nov 16, 2018
6857a87
Merge pull request #1 from sarnold/testing-051_pre
sarnold Nov 21, 2018
b2714ea
test_schedule.py: fix UTC string expected result for python 2 vs 3
sarnold Nov 14, 2019
fa01b4b
test_schedule.py: (really) fix test for UTC time strings
sarnold Nov 14, 2019
88f5932
hacky test updates, make logfile path an argument for setup_logging()
sarnold Nov 22, 2018
40fcc3f
test_schedule.py: more test coverage, small wrinkle in utc tests
sarnold Nov 23, 2018
8e26274
test_schedule.py: add last new test for run_all(tag)
sarnold Nov 23, 2018
5f73a9b
.travis.yml: set TZ env variable (fix for test_time() failure)
sarnold Nov 23, 2018
4fc2813
.travis.yml: okay, let's see what travis says the date is...
sarnold Nov 23, 2018
5de0f5f
test_schedule.py: fix mock date for assert comparison
sarnold Nov 23, 2018
af02ea9
test_schedule.py: get rid of timezone change in logging test_time()
sarnold Nov 23, 2018
5da832d
test_schedule.py: try something really simple for travis
sarnold Nov 23, 2018
6b5cd8d
test_schedule.py: one more silly travis test of time_test()
sarnold Nov 23, 2018
471a169
test_schedule.py: try an even simpler test in travis...
sarnold Nov 23, 2018
85b6cef
test_schedule.py: yet another silly travis test
sarnold Nov 23, 2018
1759225
test_schedule.py,travis.yml: revert, try another silly timezone setting
sarnold Nov 23, 2018
ecf4766
test_schedule.py: remove problematic tests we don't need anyway
sarnold Nov 23, 2018
d84b3bb
schedule/__init__.py: minor fixes and test updates
sarnold Nov 24, 2018
be40e3f
test_schedule.py: remove spurious comment
sarnold Nov 25, 2018
50c15c4
test_schedule.py: pluck fix for UTC string comparison from utc branch
sarnold Nov 14, 2019
651e0ed
test_schedule.py: fix silly left-over merge cruft
sarnold Nov 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into utc-time
sarnold committed Nov 14, 2019
commit 764b49f9ee40f651444001e956b56b3dca06808b
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -10,3 +10,9 @@ python:
install: pip install tox-travis coveralls
script:
- tox
after_success:
- coveralls
matrix:
allow_failures:
- python: "3.8-dev"
- python: "nightly"
2 changes: 1 addition & 1 deletion test_schedule.py
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ def today(cls):
@classmethod
def now(cls, tz=None):
return cls(self.year, self.month, self.day,
self.hour, self.minute).replace(tzinfo=tz)
self.hour, self.minute, self.second).replace(tzinfo=tz)

self.original_datetime = datetime.datetime
datetime.datetime = MockDate
You are viewing a condensed version of this merge commit. You can view the full changes here.