Nose tests decorators
Nose is a Python framework that makes (unit) testing a bit easier. Nose helps you organize tests. According to the nose
documentation:
Any python source file, directory or package that matches the testMatch regular expression (by default: (?:^|[b_.-])[Tt]est) will be collected as a test.
Nose makes extensive use of decorators. Python decorators are annotations that indicate something about a method or a function. The numpy.testing
module has a number of decorators:
Decorator |
Description |
---|---|
|
This is the filter's deprecation warning when running tests |
|
This raises the |
|
Get Learning NumPy Array now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.