oslo.service/oslo_service/tests
Eric Fried b85d9353fb Fixture to mock loopingcall wait()
Consumers of loopingcall may wish to exercise their code in test cases
without incurring actual wall clock sleep time in their test runs.
Heretofore, this required digging into the internals of the loopingcall
module and mocking something private (or something hidden by something
private).

This patch exposes a public oslo_service.fixture.SleepFixture for this
purpose. It can be maintained opaquely as internals change without
affecting its consumers.

See [1] for (one example of) the motivation behind this change.

[1] https://review.openstack.org/#/c/615724/

Change-Id: I0089c7778957456db66599abffaaad3a5332243c
2018-11-07 09:34:51 -06:00
..
ssl_cert Fixup certificates and skip failing test 2018-04-10 14:47:19 +00:00
__init__.py doing monkey_patch for unittest. 2015-09-15 11:13:49 +08:00
base.py Fix some reST field lists in docstrings 2017-03-22 13:24:21 +00:00
eventlet_service.py Ensure connection is active in graceful shutdown tests 2018-08-31 17:08:14 +00:00
test_eventlet_backdoor.py Replace 'MagicMock' with 'Mock' 2016-10-11 09:38:45 +08:00
test_fixture.py Fixture to mock loopingcall wait() 2018-11-07 09:34:51 -06:00
test_loopingcall.py Fix stop of loopingcall 2018-10-31 23:19:17 +01:00
test_periodic.py Fix parameters of assertEqual are misplaced 2016-07-20 16:42:28 +08:00
test_service.py Ensure connection is active in graceful shutdown tests 2018-08-31 17:08:14 +00:00
test_sslutils.py Enable py3 mock.patch of RuntimeError 2015-12-09 11:02:47 -05:00
test_systemd.py Fix argument type for _sd_notify() on python3 2016-03-31 10:51:19 -06:00
test_threadgroup.py [ThreadGroup] Don't remove timer when stop timers 2018-05-09 00:54:54 +00:00
test_wsgi.py Remove moxstubout 2018-05-19 14:26:50 +00:00