mirror of https://github.com/scrapy/scrapy.git
test abs path outside project as well
This commit is contained in:
parent
9c90d9515a
commit
2d932c173c
|
|
@ -26,6 +26,7 @@ def inside_a_project():
|
|||
class ProjectUtilsTest(unittest.TestCase):
|
||||
def test_data_path_outside_project(self):
|
||||
self.assertEquals('.scrapy/somepath', data_path('somepath'))
|
||||
self.assertEquals('/absolute/path', data_path('/absolute/path'))
|
||||
|
||||
def test_data_path_inside_project(self):
|
||||
with inside_a_project() as proj_path:
|
||||
|
|
|
|||
Loading…
Reference in New Issue