host¶
This module provides functions used to by pytest
to run tests against
the following objects:
test_host_appearances¶
Testing for object: wwdtm.host.HostAppearances
- tests.host.test_host_appearances.get_connect_dict()¶
Read in database connection settings and return values as a dictionary.
- tests.host.test_host_appearances.test_host_appearances_retrieve_appearances_by_id(host_id)¶
Testing for
wwdtm.host.HostAppearances.retrieve_appearances_by_id()
- Parameters:
host_id (
int
) – Host ID to test retrieving host appearances
- tests.host.test_host_appearances.test_host_appearances_retrieve_appearances_by_slug(host_slug)¶
Testing for
wwdtm.host.HostAppearances.retrieve_appearances_by_slug()
- Parameters:
host_slug (
str
) – Host slug string to test retrieving host appearances
test_host_host¶
Testing for object: wwdtm.host.Host
- tests.host.test_host_host.get_connect_dict()¶
Read in database connection settings and return values as a dictionary.
- tests.host.test_host_host.test_host_retrieve_all()¶
Testing for
wwdtm.host.Host.retrieve_all()
- tests.host.test_host_host.test_host_retrieve_all_details()¶
Testing for
wwdtm.host.Host.retrieve_all_details()
- tests.host.test_host_host.test_host_retrieve_all_ids()¶
Testing for
wwdtm.host.Host.retrieve_all_ids()
- tests.host.test_host_host.test_host_retrieve_all_slugs()¶
Testing for
wwdtm.host.Host.retrieve_all_slugs()
- tests.host.test_host_host.test_host_retrieve_by_id(host_id)¶
Testing for
wwdtm.host.Host.retrieve_by_id()
- Parameters:
host_id (
int
) – Host ID to test retrieving host information
- tests.host.test_host_host.test_host_retrieve_by_slug(host_slug)¶
Testing for
wwdtm.host.Host.retrieve_by_slug()
- Parameters:
host_slug (
str
) – Host slug string to test retrieving host information
- tests.host.test_host_host.test_host_retrieve_details_by_id(host_id)¶
Testing for
wwdtm.host.Host.retrieve_details_by_id()
- Parameters:
host_id (
int
) – Host ID to test retrieving host details
- tests.host.test_host_host.test_host_retrieve_details_by_slug(host_slug)¶
Testing for
wwdtm.host.Host.retrieve_details_by_slug()
- Parameters:
host_slug (
str
) – Host slug string to test retrieving host details
test_host_utility¶
Testing for object: wwdtm.host.HostUtility
- tests.host.test_host_utility.get_connect_dict()¶
Read in database connection settings and return values as a dictionary.
- tests.host.test_host_utility.test_host_utility_convert_id_to_slug(host_id)¶
Testing for
wwdtm.host.HostUtility.convert_id_to_slug()
- Parameters:
host_id (
int
) – Host ID to test converting into host slug string
- tests.host.test_host_utility.test_host_utility_convert_invalid_id_to_slug(host_id)¶
Negative testing for
wwdtm.host.HostUtility.convert_id_to_slug()
- Parameters:
host_id (
int
) – Host ID to test failing to convert into host slug string
- tests.host.test_host_utility.test_host_utility_convert_invalid_slug_to_id(host_slug)¶
Negative testing for
wwdtm.host.HostUtility.convert_slug_to_id()
- Parameters:
host_slug (
str
) – Host slug string to test failing to convert into host ID
- tests.host.test_host_utility.test_host_utility_convert_slug_to_id(host_slug)¶
Testing for
wwdtm.host.HostUtility.convert_slug_to_id()
- Parameters:
host_slug (
str
) – Host slug string to test converting into host ID
- tests.host.test_host_utility.test_host_utility_id_exists(host_id)¶
Testing for
wwdtm.host.HostUtility.id_exists()
- Parameters:
host_id (
int
) – Host ID to test if a host exists
- tests.host.test_host_utility.test_host_utility_id_not_exists(host_id)¶
Negative testing for
wwdtm.host.HostUtility.id_exists()
- Parameters:
host_id (
int
) – Host ID to test if a host does not exist
- tests.host.test_host_utility.test_host_utility_slug_exists(host_slug)¶
Testing for
wwdtm.host.HostUtility.slug_exists()
- Parameters:
host_slug (
str
) – Host slug string to test if a host exists
- tests.host.test_host_utility.test_host_utility_slug_not_exists(host_slug)¶
Negative testing for
wwdtm.host.HostUtility.slug_exists()
- Parameters:
host_slug (
str
) – Host slug string to test if a host does not exist