-
Notifications
You must be signed in to change notification settings - Fork 826
forums/tests => use model makers #558
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved these out of __init__.py to their own file
|
Hrm... I think I'll try to work through this later today. This is pretty intense. I didn't think about the peer-review work of changing tests to use fixtures. |
|
Yeah, going forward we might want to do these in more reasonable chunks. Something like ~20 tests a week each or whatever it takes to be done in the quarter. |
apps/forums/tests/test_feeds.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this covers the test right. It seems like the test is checking to see if for a given forum, the threads are sorted by datetime. But if there is only one thread, then it's always sorted.
Seems like we want to create a forum here. Then create a few threads with various datetimes (probably want to specify the datetimes since it's part of the test), then make sure the ThreadsFeed puts them in order correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
definitely, should be more than one thread :-)
|
Yay I finished! I don't even know how many issues there were. I think some of them were benign and some were about the test itself. The latter are worth fixing. The former if you want. |
|
OK, I think that covers it ^^ |
|
I think that looks good to me. r+ |
yay! r?