Ignore files with import errors on pytest test discover

This commit is contained in:
Julia Medina 2014-04-04 16:55:35 -03:00
parent 560a84657c
commit 81187feaac
1 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,12 @@
import pytest
from twisted.python import log
from scrapy import optional_features
collect_ignore = ["stats.py"]
if 'django' not in optional_features:
collect_ignore.append("tests/test_djangoitem/models.py")
class LogObservers:
"""Class for keeping track of log observers across test modules"""