websauna.tests.devop.test_database_sanity_check module¶
Tests for checking database sanity checks functions correctly.
-
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.