weboob.tools.test

class weboob.tools.test.BackendTest(*args, **kwargs)

Bases: unittest.case.TestCase

MODULE = None
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 weboob.tools.test.SkipTest

Bases: exceptions.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.

weboob.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.