Closed birdsarah closed 11 years ago
That's indeed odd, hmm. Wait, wouldn't you have to run ./manage.py test project.tests.appA.test_for_stuff
? At least that's how I understand the directory structure you wrote above.
Can you try with the recently released 1.0 version? That should fix the problem.
Hi,
I'm so sorry for the delay in responding, you're right about my dotted path being wrong above, but my bad on the typo, the bug seems to remain.
I've created an example repo so you can easily see the issue.
https://github.com/birdsarah/django-discover-runner-test
Tracking down the issue a bit, it seems to come from: https://github.com/jezdez/django-discover-runner/blob/master/discover_runner/runner.py#L73
Would love to help further if I can.
(I really hope I'm not doing something epically stupid and I apologize in advance if I am.)
(First-up, many thanks for this excellent tool).
Here's my basic setup (all tests in one directory with sub directories for each apps tests:
I was writing a new test file, and I had an import error (I'd written
from appA import X
, instead offrom appA.models import X
)When I ran the test by running:
I got the following error:
I was a little confused by this because I thoguht it was trying to tell me my test_for_stuff file wasn't there.
I would have expected an ImportError.