module documentation

Testing extensions.

this module is designed to work as a testing-framework-agnostic library, created so that multiple test frameworks can be supported at once (mostly so that we can migrate to new ones). The current target is pytest.

Variable assertions Undocumented
Variable bootstrapped​_as​_sqlalchemy Undocumented
Variable config Undocumented
Variable engines Undocumented
Variable exclude​_tags Undocumented
Variable exclusions Undocumented
Variable file​_config Undocumented
Variable fixtures Undocumented
Variable include​_tags Undocumented
Variable log Undocumented
Variable logging Undocumented
Variable options Undocumented
Variable post​_configure Undocumented
Variable pre​_configure Undocumented
Variable profiling Undocumented
Variable provision Undocumented
Variable py3k Undocumented
Variable requirements Undocumented
Variable testing Undocumented
Variable util Undocumented
Variable warnings Undocumented
Class ​Fixture​Functions Undocumented
Function ​_do​_skips Undocumented
Function ​_engine​_uri Undocumented
Function ​_exclude​_tag Undocumented
Function ​_include​_tag Undocumented
Function ​_init​_symbols Undocumented
Function ​_list​_dbs Undocumented
Function ​_log Undocumented
Function ​_monkeypatch​_cdecimal Undocumented
Function ​_possible​_configs​_for​_cls Undocumented
Function ​_post​_setup​_options Undocumented
Function ​_prep​_testing​_database Undocumented
Function ​_requirements Undocumented
Function ​_requirements​_opt Undocumented
Function ​_restore​_engine Undocumented
Function ​_reverse​_topological Undocumented
Function ​_set​_disable​_asyncio Undocumented
Function ​_set​_nomemory Undocumented
Function ​_set​_notimingintensive Undocumented
Function ​_setup​_config Undocumented
Function ​_setup​_engine Undocumented
Function ​_setup​_options Undocumented
Function ​_setup​_profiling Undocumented
Function ​_setup​_requirements Undocumented
Function after​_test Undocumented
Function after​_test​_fixtures Undocumented
Function before​_test Undocumented
Function configure​_follower Configure required state for a follower.
Function final​_process​_cleanup Undocumented
Function generate​_sub​_tests Undocumented
Function memoize​_important​_follower​_config Store important configuration we will need to send to a follower.
Function post Undocumented
Function post​_begin things to set up later, once we know coverage is running.
Function pre Undocumented
Function pre​_begin things to set up early, before coverage might be setup.
Function read​_config Undocumented
Function restore​_important​_follower​_config Restore important configuration needed by a follower.
Function set​_coverage​_flag Undocumented
Function set​_fixture​_functions Undocumented
Function setup​_options Undocumented
Function start​_test​_class​_outside​_fixtures Undocumented
Function stop​_test​_class Undocumented
Function stop​_test​_class​_outside​_fixtures Undocumented
Function want​_class Undocumented
Function want​_method Undocumented
Variable ​_fixture​_fn​_class Undocumented
assertions =

Undocumented

bootstrapped_as_sqlalchemy: bool =

Undocumented

config =

Undocumented

engines =

Undocumented

exclude_tags: set =

Undocumented

exclusions =

Undocumented

file_config =

Undocumented

fixtures =

Undocumented

include_tags: set =

Undocumented

log =

Undocumented

logging =

Undocumented

options =

Undocumented

post_configure: list =

Undocumented

pre_configure: list =

Undocumented

profiling =

Undocumented

provision =

Undocumented

py3k =

Undocumented

requirements =

Undocumented

testing =

Undocumented

util =

Undocumented

warnings =

Undocumented

def _do_skips(cls):

Undocumented

@post
def _engine_uri(options, file_config):

Undocumented

def _exclude_tag(opt_str, value, parser):

Undocumented

def _include_tag(opt_str, value, parser):

Undocumented

@post
def _init_symbols(options, file_config):

Undocumented

def _list_dbs(*args):

Undocumented

def _log(opt_str, value, parser):

Undocumented

@pre
def _monkeypatch_cdecimal(options, file_config):

Undocumented

def _possible_configs_for_cls(cls, reasons=None, sparse=False):

Undocumented

@post
def _post_setup_options(opt, file_config):

Undocumented

@post
def _prep_testing_database(options, file_config):

Undocumented

@post
def _requirements(options, file_config):

Undocumented

def _requirements_opt(opt_str, value, parser):

Undocumented

def _restore_engine():

Undocumented

@post
def _reverse_topological(options, file_config):

Undocumented

@post
def _set_disable_asyncio(opt, file_config):

Undocumented

@pre
def _set_nomemory(opt, file_config):

Undocumented

@pre
def _set_notimingintensive(opt, file_config):

Undocumented

def _setup_config(config_obj, ctx):

Undocumented

def _setup_engine(cls):

Undocumented

@pre
def _setup_options(opt, file_config):

Undocumented

@post
def _setup_profiling(options, file_config):

Undocumented

def _setup_requirements(argument):

Undocumented

def after_test(test):

Undocumented

def after_test_fixtures(test):

Undocumented

def before_test(test, test_module_name, test_class, test_name):

Undocumented

def configure_follower(follower_ident):

Configure required state for a follower.

This invokes in the parent process and typically includes database creation.

def final_process_cleanup():

Undocumented

def generate_sub_tests(cls, module):

Undocumented

def memoize_important_follower_config(dict_):

Store important configuration we will need to send to a follower.

This invokes in the parent process after normal config is set up.

This is necessary as pytest seems to not be using forking, so we start with nothing in memory, but it isn't running our argparse callables, so we have to just copy all of that over.

def post(fn):

Undocumented

def post_begin():
things to set up later, once we know coverage is running.
def pre(fn):

Undocumented

def pre_begin(opt):
things to set up early, before coverage might be setup.
def read_config():

Undocumented

def restore_important_follower_config(dict_):

Restore important configuration needed by a follower.

This invokes in the follower process.

def set_coverage_flag(value):

Undocumented

def set_fixture_functions(fixture_fn_class):

Undocumented

def setup_options(make_option):

Undocumented

def start_test_class_outside_fixtures(cls):

Undocumented

def stop_test_class(cls):

Undocumented

def stop_test_class_outside_fixtures(cls):

Undocumented

def want_class(name, cls):

Undocumented

def want_method(cls, fn):

Undocumented

_fixture_fn_class =

Undocumented