Skip to content

Commit aeea6fc

Browse files
authored
Install the Twisted reactor explicitly in tests. (#94)
1 parent dffc968 commit aeea6fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ def set_jobkeyenvironment(monkeypatch):
3333
monkeypatch.setenv('SCRAPY_JOB', '1/2/3')
3434
monkeypatch.setenv('SHUB_JOBAUTH', TEST_AUTH)
3535
monkeypatch.setenv('SHUB_STORAGE', 'storage-url')
36+
37+
38+
# install the reactor explicitly, as Scrapy including scrapy.utils.test.get_crawler() assumes it's installed
39+
from twisted.internet import reactor

0 commit comments

Comments
 (0)