Skip to content

Module not found scrapytests

Hi, I just cloned your repo with the same files/folders structure provided but when I ran the test you provide I got:

ModuleNotFoundError: No module named 'tests.scrapytests'

even though the scrapytest file is in the tests folder

    ├── example_project
    │   ├── example
    │   │   ├── __init__.py
    │   │   ├── items.py
    │   │   ├── middlewares.py
    │   │   ├── pipelines.py
    │   │   ├── settings.py
    │   │   └── spiders
    │   │       ├── __init__.py
    │   │       └── hackernews.py
    │   ├── readme.md
    │   ├── scrapy.cfg
    │   ├── setup.py
    │   └── tests
    │       ├── README.md
    │       ├── __init__.py
    │       ├── items.py
    │       ├── scrapytests.py
    │       ├── spiders.py
    │       └── stats.py

I was running with $ scrapy-test command from example_project folder.