-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot run individual tests with nosetests #17
Comments
DDT creates four tests out of one, as you can see in output these are named:
So That said, you should be able to run them individually:
But nose still fails with:
So it may be something related with how nose loads/runs the tests when running an individual method. I'll try to debug and see if something can be done within |
Thank you @txels for the explanation (totally makes sense to me). Since I usually generate random data for my tests, it would be impossible to know ahead of time what the test name would be. I really appreciate anything you can do to help :) |
I've been able to fix this. Turns out there was a mismatch between the new function as attribute in the test class and the function name of said function. Released as Now I can do:
Or even:
But unfortunately |
Though this won't help me with my scenario (where @DaTa uses random values every time), I'm glad you fixed the other use case :) Cheers! |
Seems that you cannot run an individual ddt test via nosetests:
The text was updated successfully, but these errors were encountered: