- In
pytest_twisted.py
- Write an
init_foo_reactor()
function - Add
'foo': init_foo_reactor,
toreactor_installers
where the key will be the string to be passed such as--reactor=foo
.
- Write an
- In
testing/test_basic.py
- Add
test_blockon_in_hook_with_foo()
withskip_if_reactor_not('foo')
as the first line - Add
test_wrong_reactor_with_foo()
withskip_if_reactor_not('foo')
as the first line
- Add
- In
tox.ini
- Adjust
envlist
to include thefooreactor
factor for the appropriate versions of Python - Add conditional
deps
for the new reactor such asfoo: foobar
to the appropriate test environments - Add
fooreactor: pytest --reactor=foo
to the commands list
- Adjust
- In
.travis.yml
- Consider any extra system packages which may be required
- In
appveyor.yml
- Add the new reactor environment to the
TOXENV
for each relevant Python
- Add the new reactor environment to the
- Reference reactor additions: