From: Timo S. <li...@zm...> - 2012-05-18 07:38:28
|
Hi, David and Hector cleaned up some deprecated Python unit test methods (http://docs.python.org/library/unittest.html#deprecated-aliases) in the Plone code recently. This brought me to the idea to show/list these deprecated methods with Jenkins. Here is the result: https://jenkins.plone.org/view/Plone%20Core/view/Plone%204.2/job/plone-4.2-code-analysis/300/tasksResult/new/ https://jenkins.plone.org/view/Plone%20Core/view/Plone%204.2/job/plone-4.2-code-analysis/300/tasksResult/? The blue bar shows the deprecated unit test methods. If you click on the "types" tab, you can see how many deprecated methods exactly we currently have in the Plone core code: assertEquals 3788 assert_ 1811 failIf 1444 failIfAlmostEqual 2 failIfEqual 91 failUnless 4392 failUnlessAlmostEqual 2 failUnlessEqual 754 failUnlessRaises 32 Maybe this helps if people want to clean up things. Oh, and btw, we have around 40.000 Pep8 violations if someone has spare time ;) https://jenkins.plone.org/view/Plone%20Core/view/Plone%204.2/job/plone-4.2-code-analysis/300/violations/? Cheers, timo |