forked from pool/python-schedule
- version update to 1.1.0 1.1.0 (2021-04-09) ++++++++++++++++++ - Added @repeat() decorator. See #148. Thanks @rhagenaars! - Added execute .until(). See #195. Thanks @fredthomsen! - Added job retrieval filtered by tags using get_jobs('tag'). See #419. Thanks @skenvy! - Added type annotations. See #427. Thanks @martinthoma! - Bugfix: str() of job when there is no __name__. See #430. Thanks @biggerfisch! - Improved error messages. See #280, #439. Thanks @connorskees and @sosolidkk! - Improved logging. See #193. Thanks @zcking! - Documentation improvements and fix typos. See #424, #435, #436, #453, #437, #448. Thanks @ebllg! 1.0.0 (2021-01-20) ++++++++++++++++++ Depending on your configuration, the following bugfixes might change schedule's behaviour: - Fix: idle_seconds crashes when no jobs are scheduled. See #401. Thanks @yoonghm! - Fix: day.at('HH:MM:SS') where HMS=now+10s doesn't run today. See #331. Thanks @qmorek! - Fix: hour.at('MM:SS'), the seconds are set to 00. See #290. Thanks @eladbi! - Fix: Long-running jobs skip a day when they finish in the next day #404. Thanks @4379711! Other changes: - Dropped Python 2.7 and 3.5 support, added 3.8 and 3.9 support. See #409 - Fix RecursionError when the job is passed to the do function as an arg. See #190. Thanks @connorskees! - Fix DeprecationWarning of 'collections'. See #296. Thanks @gaguirregabiria! - Replaced Travis with Github Actions for automated testing - Revamp and extend documentation. See #395 - Improved tests. Thanks @connorskees and @Jamim! - Changed log messages to DEBUG level. Thanks @aisk! - added patches fix https://github.com/dbader/schedule/issues/484 + python-schedule-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/917521 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-schedule?expand=0&rev=10
18 lines
582 B
Diff
18 lines
582 B
Diff
Index: schedule-1.1.0/test_schedule.py
|
|
===================================================================
|
|
--- schedule-1.1.0.orig/test_schedule.py 2021-03-07 11:49:24.000000000 +0100
|
|
+++ schedule-1.1.0/test_schedule.py 2021-09-08 10:48:44.066906764 +0200
|
|
@@ -1,8 +1,11 @@
|
|
"""Unit tests for schedule.py"""
|
|
import datetime
|
|
import functools
|
|
-import mock
|
|
import unittest
|
|
+try:
|
|
+ import unittest.mock as mock
|
|
+except ImportError:
|
|
+ import mock
|
|
|
|
# Silence "missing docstring", "method could be a function",
|
|
# "class already defined", and "too many public methods" messages:
|