- In
pytest_twisted.py- Write an
init_foo_reactor()function - Add
'foo': init_foo_reactor,toreactor_installerswhere 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
envlistto include thefooreactorfactor for the appropriate versions of Python - Add conditional
depsfor the new reactor such asfoo: foobarto the appropriate test environments - Add
fooreactor: pytest --reactor=footo the commands list
- Adjust
- In
.github/workflows/ci.yml- Consider any extra system packages which may be required
- Reference reactor additions: