We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import pytest_twisted as pt
1 parent 7d5c168 commit 58f028aCopy full SHA for 58f028a
testing/test_basic.py
@@ -133,19 +133,19 @@ def test_succeed():
133
def test_pytest_from_reactor_thread(testdir):
134
testdir.makepyfile("""
135
import pytest
136
- import pytest_twisted as pt
+ import pytest_twisted
137
from twisted.internet import reactor, defer
138
139
@pytest.fixture
140
def fix():
141
d = defer.Deferred()
142
reactor.callLater(0.01, d.callback, 42)
143
- return pt.blockon(d)
+ return pytest_twisted.blockon(d)
144
145
def test_simple(fix):
146
assert fix == 42
147
148
- @pt.inlineCallbacks
+ @pytest_twisted.inlineCallbacks
149
def test_fail():
150
151
reactor.callLater(0.01, d.callback, 1)
0 commit comments