-
Notifications
You must be signed in to change notification settings - Fork 0
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
certain user.py methods fail when user is first created #5
Comments
I haven't synced my user.py to the repo since it's not working yet. Here it is: |
@mmuddasani Could really use your help on this. Otherwise, I'll open a Stack Overflow post. |
I tried running the tests again and dropping the users collection. Now I'm not getting the error anymore. I was GOING to post the following on Stack Overflow. If the error comes back, we can post it at that time. class that uses pymongo fails first time, succeeds second timeI have a
It depends on
So I've got mongodb running locally on my computer. When I drop the "users" collection from my MongoDB, so as to start with a blank slate, and then run the following test code with
What could possibly cause this? |
I want to wait a month (until June 20) and then try it again, before closing this issue. |
After dropping the users collection on mongo, running test_user.py results in 2-3 errors.
Each error fails the first time it is run, but then SUCCEEDS the second time.
(For example, test_set_prefs() fails to add the prefs
{ 'one': 'a', 'two': 'b' }
to the matt user on its first try. but if you runpy.test
a second time, it succeeds.)This suggests that the failure has something to do with the fact that the user was JUST CREATED in the collection.
Any ideas, @mmuddasani ?
The text was updated successfully, but these errors were encountered: