tests.basepage module#
BasePage tests subclasses.
- class tests.basepage.ABCTestCaseMeta(name, bases, namespace, /, **kwargs)[source]#
Bases:
ABCMeta,MetaTestCaseClassEnable abstract methods in TestCase-based base classes.
Added in version 10.3.
Create the new class.
Changed in version 9.3: raises AttributeError instead of AssertionError for duplicated hostname, raises Exception instead of AssertionError for missing or wrong “net” attribute with hostnames.
- Raises:
AttributeError – hostname already found
Exception – Test classes using “pwb” must set “site” or test classes without a “site” configured must set “net” or test method must accept either 1 or 2 arguments or “net” must be True with hostnames defined.
- class tests.basepage.BasePageLoadRevisionsCachingTestBase(*args, **kwargs)[source]#
Bases:
BasePageTestBaseTest site.loadrevisions() caching.
This test class monkey patches site.loadrevisions, which will cause the pickling tests in site_tests and page_tests to fail, if it is done on the same site as those tests use (the default site).
- abstract_class = True#
- cached = False#
- custom_text = 'foobar'#
- class tests.basepage.BasePageMethodsTestBase(*args, **kwargs)[source]#
Bases:
BasePageTestBaseTest base methods.
- abstract_class = True#