1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-01 10:53:06 +00:00
scrapy/conftest.py

17 lines
391 B
Python
Raw Normal View History

import six
import pytest
collect_ignore = ["scrapy/stats.py", "scrapy/project.py"]
if six.PY3:
2015-02-09 10:28:22 +01:00
for line in open('tests/py3-ignores.txt'):
2015-02-10 10:34:44 +01:00
file_path = line.strip()
if len(file_path) > 0 and file_path[0] != '#':
collect_ignore.append(file_path)
@pytest.fixture()
def chdir(tmpdir):
"""Change to pytest-provided temporary directory"""
tmpdir.chdir()