-
Notifications
You must be signed in to change notification settings - Fork 80
Speedup metadata tests #1033
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
Speedup metadata tests #1033
Conversation
…for it. (It is already tested on the QiitaObject tests)
… the base class. No need to test
👍 if tests pass |
class TestPrepSample(TestCase): | ||
"""Tests the PrepSample class""" | ||
|
||
class SetUpTestPrepSample(TestCase): |
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.
Very minor but it took me a little while to realize that SetUpTestPrepSample was a base class for TestPrepSample, maybe it would be better to change the name to be BaseTestPrepSample?
👍 looks really good. Thanks for adding such nice description to the PR, as a reviewer it makes it a lot easier to know upfront what are the specifics that you'll be looking at. |
Done, thanks! Yeah, I think if we are all starting doing this, specially in "complex" PR, it will facilitate the reviewer work. |
👍, excellent, ready to be merged as soon as tests complete. |
Fixes one item from #1029
Splits the metadata template tests between DB read only tests and DB read write tests (so it saves time since it does not have to rebuild the database in each test).
I just wanted to move tests around, but I fixed a couple of small issues:
Since this is a performance PR, some times:
Now:
Before:
Any future PR on the metadata template depends on this one, since this reduces developer time (less time on tests, more time coding), so a fast review/merge is appreciated.