Hello,

I wrote a Pylint plugin to detect less than optimal usage of unittest
assertions, for example writing self.assertEqual(x, None) instead of
self.assertIsNone(x) or using deprecated aliases. It's published in
PyPI under the name pylint-unittest and is also available on GitHub
here:

https://github.com/federicobond/pylint-unittest

I would love to hear your feedback on it. Also, it took me longer than
I expected to put together the necessary boilerplate for doing
test-driven development on this plugin, so I hope it can serve as a
good base for others too. I feel that the way pylint-django tests are
structured is too awkward for newcomers.

Thank you!

Federico
_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to