woob.tools.test
¶
-
class
woob.tools.test.
BackendTest
(*args, **kwargs)¶ Bases:
unittest.case.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
MODULE
= None¶
-
assertNotEmpty
(obj, *args)¶ Assert an object is neither empty in the BaseObject parlance.
obj should not be None, NotLoaded, or NotAvailable.
-
is_backend_configured
()¶ Check if the backend is in the user configuration file
-
login_cb
(backend_name, value)¶
-
run
(result)¶ Call the parent run() for each backend instance. Skip the test if we have no backends.
-
shortDescription
()¶ Generate a description with the backend instance name.
-
-
exception
woob.tools.test.
SkipTest
¶ Bases:
Exception
Raise this exception in a test to skip it.
Usually you can use TestCase.skipTest() or one of the skipping decorators instead of raising this directly.
-
woob.tools.test.
skip_without_config
(*keys)¶ Decorator to skip a test if backend config is missing
- Parameters
keys – if any of these keys is missing in backend config, skip test. Can be empty.