~yerinalexey/pcrond

0bb49123156d48fb238264fe61c20106ee58c891 — Luca Vercelli 2 years ago dc84a0c
clean code
4 files changed, 5 insertions(+), 4 deletions(-)

M README.rst
R scripts/{pcrond => pcrond.py}
M test_scheduler.py
M tests/crontab.txt
M README.rst => README.rst +1 -1
@@ 33,7 33,7 @@ Usage
.. code-block:: bash

    $ ./setup.py install --prefix=~/.local
    $ pcrond path/to/my/crontab/file
    $ pcrond.py path/to/my/crontab/file
    
(this assumes that ``~/.local/bin`` is in the PATH)


R scripts/pcrond => scripts/pcrond.py +0 -0
M test_scheduler.py => test_scheduler.py +2 -1
@@ 109,8 109,9 @@ class SchedulerTests(unittest.TestCase):

    def test_load_crontab(self):
        import os
        scheduler.load_crontab_file(os.path.join("tests","crontab.txt"))
        scheduler.load_crontab_file(os.path.join("tests", "crontab.txt"))
        assert len(scheduler.jobs) == 3


if __name__ == '__main__':
    unittest.main()

M tests/crontab.txt => tests/crontab.txt +2 -2
@@ 1,3 1,3 @@
30 4 * * mon echo goofy
30 5 * * mon echo donald duck
30 6 * * mon 2020 echo mickey mouse
30 5-6 * * mon echo donald duck
30 * */3 * mon 2020 echo mickey mouse