This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Simon Fagerholm
Recipients Simon Fagerholm
Date 2018-12-30.09:32:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546162337.0.0.646769357962.issue35617@roundup.psfhosted.org>
In-reply-to
Content
When "python -m unittest discover" is run in a folder that is an implicit namespace package with the structure as below, no tests are discovered.
The condition that the tests must be importable from the top level directory is fulfilled and has been tested by importing the tests from the top level.

I did some investigating and have a PR underway that seems to fix it

Example project structure is:
.
├── requirements.txt
├── main.py
├── tests
    ├── unit
    │   └── test_thing1.py
    └── integration.py
        └── test_integration_thing1.py
History
Date User Action Args
2018-12-30 09:32:20Simon Fagerholmsetrecipients: + Simon Fagerholm
2018-12-30 09:32:17Simon Fagerholmsetmessageid: <1546162337.0.0.646769357962.issue35617@roundup.psfhosted.org>
2018-12-30 09:32:16Simon Fagerholmlinkissue35617 messages
2018-12-30 09:32:16Simon Fagerholmcreate