Menu

#1125 assert_ style expressions appear as undefined

open
Editor (491)
5
2010-04-15
2010-04-15
No

I'm pretty new to Python and the project I work on uses the nose unit test framework.

Our tests make extensive use of various assert_xxx statements (assert_true(), assert_false(), assert_equal(), etc.) but unfortunately, none of those statements are recognized as valid by the pydev editor, so they are all marked as undefined (red underline).

This reduces readability greatly and severely limits the usefulness of the built-in syntax checker.

From what I can tell, the assert_xxx statements are being dynamically generated in the nose.tools at runtime (in so much as I currently understand Python syntax) as pep8-compliant synonyms for their equivalent unittest counterparts (assertTrue, assertFalse, assertEqual, etc.)

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.