websauna.tests.devop.test_database_sanity_check module

Tests for checking database sanity checks functions correctly.

websauna.tests.devop.test_database_sanity_check.gen_declarative()[source]
websauna.tests.devop.test_database_sanity_check.gen_non_declarative_table()[source]
websauna.tests.devop.test_database_sanity_check.gen_relation_models()[source]
websauna.tests.devop.test_database_sanity_check.gen_test_model()[source]
websauna.tests.devop.test_database_sanity_check.setup_module(self)[source]
websauna.tests.devop.test_database_sanity_check.test_sanity_column_missing(ini_settings, dbsession)[source]

See check fails when there is a missing table

websauna.tests.devop.test_database_sanity_check.test_sanity_fail_if_table_definition_is_missing(ini_settings, dbsession)[source]

See database sanity check raises a RuntimeError if table definition is missing.

websauna.tests.devop.test_database_sanity_check.test_sanity_pass(ini_settings, dbsession)[source]

See database sanity check completes when tables and columns are created.

websauna.tests.devop.test_database_sanity_check.test_sanity_pass_declarative(ini_settings, dbsession)[source]

See database sanity check understands about relationships and don’t deem them as missing column.

websauna.tests.devop.test_database_sanity_check.test_sanity_pass_relationship(ini_settings, dbsession)[source]

See database sanity check understands about relationships and don’t deem them as missing column.

websauna.tests.devop.test_database_sanity_check.test_sanity_pass_with_non_declarative_objects(ini_settings, dbsession)[source]

See database sanity check does not complain about non declarative objects.

websauna.tests.devop.test_database_sanity_check.test_sanity_table_missing(ini_settings, dbsession)[source]

See check fails when there is a missing table