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
Removed unused __str__() methods in tests models. #12305
Conversation
7f4a6ca
to
8892c80
Compare
How did you find these? Ran the test suite with coverage? I see our Jenkins coverage report doesn't cover the tests. |
It was a bit by coincident: I opened a models file in PyCharm, and the |
@atombrella I found some of them. it is possible to push to your branch? |
8892c80
to
1267bb5
Compare
I pushed few more. |
1267bb5
to
26ba434
Compare
... and 7 more. 457 |
@hramezani Thank you, please just list them here. I think that's a better approach. @felixxm Please remember to add yourself in It seems that Do you use something like |
Yes, I do. Here is the diff file. It will remove 25 of them. |
I used |
0fd0bea
to
89f57f4
Compare
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
89f57f4
to
6461583
Compare
I added few more. I think it's a good start that it's worth to merge. We removed 50 methods. |
Maybe there are more of such things in the test suite. Perhaps we can leave this PR to look for more, instead of merging immediately.