Why does py.test mark all definitions as "missing"?
The coverage report is correct because all of these lines are imported before the test begins.
I am sure that all these lines are processed in my unit tests, and lines 19 and 31-35 confirm this.
All objects of the first class are evaluated at loading, including import, globals, function definitions with their arguments and class definitions with their methods, attributes and arguments.
Lines 19 and 31-35 are processed as part of the unit test, but this does not mean that the rest.
source share