There are a few custom decorators available for the pywikibot test suite.
$ git grep -h '^\w*@[^:]*' tests | cut -d '(' -f 1 | sort -u @add_full_name @add_metaclass @deprecate_arg @deprecated @deprecated_args @echo off @mock.patch @noop @patch @remove_last_args @require_modules @unittest.skipIf @unittest.skipUnless
They should be documented in tests/README.rst .