October 2018
Beginner to intermediate
466 pages
12h 2m
English
Sometimes, a test is known to fail, but we don't want the test suite to report the failure. This may be because a broken or unfinished feature has tests written, but we aren't currently focusing on improving it. More often, it happens because a feature is only available on a certain platform, Python version, or for advanced versions of a specific library. Python provides us with a few decorators to mark tests as expected to fail or to be skipped under known conditions.
These decorators are as follows:
These are applied using the Python decorator syntax. The first one accepts no arguments, and simply tells the test runner not to record ...