1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-14 02:59:11 +00:00
scrapy/conftest.py
2019-09-13 14:32:05 -03:00

22 lines
419 B
Python

import six
import pytest
collect_ignore = [
# not a test, but looks like a test
"scrapy/utils/testsite.py",
]
if six.PY3:
for line in open('tests/py3-ignores.txt'):
file_path = line.strip()
if file_path and file_path[0] != '#':
collect_ignore.append(file_path)
@pytest.fixture()
def chdir(tmpdir):
"""Change to pytest-provided temporary directory"""
tmpdir.chdir()