File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,20 @@ Using the plugin
29
29
The plugin is available after installation and can be disabled using
30
30
``-p no:twisted ``.
31
31
32
+ By default ``twisted.internet.default `` is used to install the reactor.
33
+ This creates the same reactor that ``import twisted.internet.reactor ``
34
+ would. Alternative reactors can be specified using the ``--reactor ``
35
+ option. Presently only ``qt5reactor `` is supported for use with
36
+ ``pyqt5 `` and ``pytest-qt ``.
37
+
38
+ The reactor is automatically created prior to the first test but can
39
+ be explicitly installed earlier by calling
40
+ ``pytest_twisted.init_default_reactor() `` or the corresponding function
41
+ for the desired alternate reactor. Beware that in situations such as
42
+ a ``conftest.py `` file that the name ``pytest_twisted `` may be
43
+ undesirably detected by ``pytest `` as an unknown hook. One alternative
44
+ is to ``import pytest_twisted as pt ``.
45
+
32
46
33
47
inlineCallbacks
34
48
=================
You can’t perform that action at this time.
0 commit comments