Skip to content

Commit

Permalink
Merge pull request #16 from kipe/v1.0.0
Browse files Browse the repository at this point in the history
V1.0.0
  • Loading branch information
kipe authored Sep 28, 2018
2 parents b2de662 + 34f5ee0 commit bb5c133
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python:
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
- "pypy"
install:
- pip install -r test-requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='pycron',
version='0.80.0',
version='1.0.0',
description='Simple cron-like parser, which determines if current datetime matches conditions.',
author='Kimmo Huoman',
author_email='[email protected]',
Expand Down
6 changes: 6 additions & 0 deletions tests/test_day_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def run(now):
assert pycron.is_now('* * * * fri-wed', now) is False
assert pycron.is_now('* * * * friday-wednesday', now) is False

# Test day matching for dividers
assert pycron.is_now('* * * * monday-sunday/3', now) is False
assert pycron.is_now('* * * * mon-sun/3', now) is False
assert pycron.is_now('* * * * tuesday-sunday/2', now) is False
assert pycron.is_now('* * * * tue-sun/2', now) is False

now = datetime(2015, 6, 18, 16, 7)
run(now)
run(now.replace(tzinfo=utc))
Expand Down
2 changes: 2 additions & 0 deletions tests/test_minute.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def run(now):

# Issue 14
assert pycron.is_now('1-59/2 * * * *', now) is True
assert pycron.is_now('1-59/4 * * * *', now) is True
assert pycron.is_now('1-59/8 * * * *', now) is True

now = datetime(2015, 6, 18, 0, 9)
run(now)
Expand Down

0 comments on commit bb5c133

Please sign in to comment.