chapps.tests.test_sqla_adapter.test_sqla_adapter module
Tests of CHAPPS SQLAlchemy adapters module
- class chapps.tests.test_sqla_adapter.test_sqla_adapter.Test_SQLAPolicyConfigAdapter[source]
Bases:
object
- class chapps.tests.test_sqla_adapter.test_sqla_adapter.Test_SQLAQuotaAdapter[source]
Bases:
object
- test_initialize_tables_default(sqla_oqp_adapter_fixture, database_fixture)[source]
Verify that MDBQA’s table initialization works properly
- class chapps.tests.test_sqla_adapter.test_sqla_adapter.Test_SQLASenderDomainAuthAdapter[source]
Bases:
object
- test_initialize_tables(sqla_sda_adapter_fixture, database_fixture)[source]
Verify that MDBSDAA’s table initialization works properly
- test_check_domain_for_user(sqla_sda_adapter_fixture, populated_database_fixture)[source]
GIVEN a user has an entry in the database WHEN that user tries to send an email for a domain they are linked to THEN return a True result
- class chapps.tests.test_sqla_adapter.test_sqla_adapter.Test_SQLAInboundFlagsAdapter[source]
Bases:
object
- test_greylisting_flag_set(sqla_if_adapter_fixture, populated_database_fixture_with_extras, greylisting_domain)[source]
- GIVEN
a domain has the greylisting option set
- WHEN
asked whether the domain enforces greylisting
- THEN
the adapter should return True
- test_greylisting_flag_unset(sqla_if_adapter_fixture, populated_database_fixture_with_extras, no_options_domain)[source]
- GIVEN
a domain does not have greylisting enabled
- WHEN
asked whether the domain enforces greylisting
- THEN
the adapter should return False