diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2015-10-01 18:16:26 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2015-10-01 18:43:36 +0300 |
commit | 294432fb55146fb9f71872b39ca79f2465da75dd (patch) | |
tree | d09d789d2b94bfbca58b417d5477fa3775a407f4 | |
parent | 9dae3bac24ff4830557a66bd0795762b8f9fa581 (diff) | |
download | apscheduler-294432fb55146fb9f71872b39ca79f2465da75dd.tar.gz |
Fixed minor issues with tests
-rw-r--r-- | tests/test_schedulers.py | 4 | ||||
-rw-r--r-- | tests/test_util.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_schedulers.py b/tests/test_schedulers.py index ee75ad6..0b59626 100644 --- a/tests/test_schedulers.py +++ b/tests/test_schedulers.py @@ -207,7 +207,7 @@ class TestBaseScheduler(object): assert 'default' in scheduler._executors assert 'default' in scheduler._jobstores - scheduler._real_add_job.assert_called_once(job, 'store1', False) + scheduler._real_add_job.assert_called_once_with(job, 'store1', False, False) assert scheduler._pending_jobs == [] assert scheduler._dispatch_event.call_count == 3 @@ -380,7 +380,7 @@ class TestBaseScheduler(object): job._modify.assert_called_once_with(misfire_grace_time=5, max_instances=2, next_run_time=datetime(2014, 10, 17)) if not pending: - jobstore.update_job.assert_called_once(job) + jobstore.update_job.assert_called_once_with(job) assert scheduler._dispatch_event.call_count == 1 event = scheduler._dispatch_event.call_args[0][0] diff --git a/tests/test_util.py b/tests/test_util.py index 6908bc3..066ad2a 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -226,7 +226,7 @@ def test_maybe_ref(input, expected): @pytest.mark.parametrize('input,expected', [ (b'T\xc3\xa9st'.decode('utf-8'), 'T\\xe9st' if six.PY2 else 'Tést'), (1, 1) -]) +], ids=['string', 'int']) @maxpython(3) def test_repr_escape_py2(input, expected): assert repr_escape(input) == expected |