1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 03:43:58 +00:00
scrapy/tests/__init__.py
2014-07-30 19:45:08 -03:00

19 lines
429 B
Python

"""
tests: this package contains all Scrapy unittests
To run all Scrapy unittests go to Scrapy main dir and type:
bin/runtests.sh
If you're in windows use runtests.bat instead.
"""
import os
tests_datadir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'sample_data')
def get_testdata(*paths):
"""Return test data"""
path = os.path.join(tests_datadir, *paths)
return open(path, 'rb').read()