-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
'TestCase' object has no attribute 'timestamp' #39
Comments
Having the same issue, although i had this running before. |
I am trying to reproduce the issue. But facing no error so far in the timestamp. @MarkusH any suggestions what you were trying to run exactly. I am also trying to run it from tests dir |
I checked again and I am getting the error when NOT in the test dir, but it seems fine in the test dir. |
@streamnsight would you mind providing the steps you are following?. |
This has been happening to me as well. When I run the "cricket-unittest" command from the main batavia directory I get the timestamp issue. Then, when I tried to run it from the tests directory I get: File "/Users/robertcarney/PythonWorkspace/pybee/env/lib/python3.5/site-packages/cricket/model.py", line 381, in _purge Looking through the cricket source code, this seems accurate: the TestMethod class really does have no attribute '_purge', it looks like they're expecting a TestModule but getting a TestMethod instance. Any ideas? |
@robcarney I'm getting the exact same thing. Did you make any progress with this? @khushbuparakh I can't speak for the others, but I'm following the steps outlined here (on a Windows machine) |
things worked fine for me when I ran cricket from the root of my repo. |
For each sub-directory of From the guide linked above:
Running |
Nothing yet, I've just been running the test script like you said. I'll troubleshoot more later. Out of curiosity, what python version are you using in your virtual environment @Alexlloyd1 ? |
@robcarney 3.4.3, and you? |
@robcarney @Alexlloyd1 I've had the same issue on Pythons 3.4, 3.5, and 3.6. I think the issue is located in |
@robcarney @Alexlloyd1 Found it; looks like it was a Batavia bug after all. In Anyway that's the bug. EDIT: I should've said that's a bug. Referring to the error that occurs when running
If you run from that same directory
you'll see that the import paths it is returning are very divergent from those that it returns when run in the root directory. I have not yet determined why this is or how exactly it breaks cricket. |
@jmsdvl Interesting, I'll take a look later. But good catch, thanks for looking into it |
Ok here's what's happening with the error when running in the test directory.
More precisely, it includes strings like:
And then I think there's two problems here:
|
On current Django master (django/django@1918882) I get a failure when running
cricket-unittest
from inside thetests
directory:The text was updated successfully, but these errors were encountered: