You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a way to specify where to create the tests https://scrapy-poet.readthedocs.io/en/stable/testing.html#configuring-the-test-location, but actual paths may look like this: some_project/tests/fixtures/some_project.page_objects.homedepot.com.products.HomedepotComProductPage/test-1 which is way too long and it would be nice to shorten it down to just some_project/tests/fixtures/homedepot.com.products.HomedepotComProductPage/test-1 or even to some_project/tests/fixtures/HomedepotComProductPage/test-1.
So it'd be nice to have a way to control the name of the folder where tests are created at.
The text was updated successfully, but these errors were encountered:
kmike
transferred this issue from scrapinghub/scrapy-poet
Sep 8, 2023
I've moved the issue from scrapy-poet issue tracker to web-poet, because web-poet is responsible for this part of the code.
The implementation would require some refactoring / rethinking, because currently the folder name is used as the type name; it's not a cosmetic change:
There's a way to specify where to create the tests https://scrapy-poet.readthedocs.io/en/stable/testing.html#configuring-the-test-location, but actual paths may look like this:
some_project/tests/fixtures/some_project.page_objects.homedepot.com.products.HomedepotComProductPage/test-1
which is way too long and it would be nice to shorten it down to justsome_project/tests/fixtures/homedepot.com.products.HomedepotComProductPage/test-1
or even tosome_project/tests/fixtures/HomedepotComProductPage/test-1
.So it'd be nice to have a way to control the name of the folder where tests are created at.
The text was updated successfully, but these errors were encountered: