guest

This module provides functions used to by pytest to run tests against the following objects:

test_guest_appearances

Testing for object: wwdtm.guest.GuestAppearances

tests.guest.test_guest_appearances.get_connect_dict()

Read in database connection settings and return values as a dictionary.

Return type

Dict[str, Any]

Returns

A dictionary containing database connection settings for use by mysql.connector

tests.guest.test_guest_appearances.test_guest_appearances_retrieve_appearances_by_id(guest_id)

Testing for wwdtm.guest.Appearances.retrieve_appearances_by_id()

Parameters

guest_id (int) – Guest ID to test retrieving guest appearances

tests.guest.test_guest_appearances.test_guest_appearances_retrieve_appearances_by_slug(guest_slug)

Testing for wwdtm.guest.Appearances.retrieve_appearances_by_slug()

Parameters

guest_slug (str) – Guest slug string to test retrieving guest appearances

test_guest_guest

Testing for object: wwdtm.guest.Guest

tests.guest.test_guest_guest.get_connect_dict()

Read in database connection settings and return values as a dictionary.

Return type

Dict[str, Any]

Returns

A dictionary containing database connection settings for use by mysql.connector

tests.guest.test_guest_guest.test_guest_guest_retrieve_details_by_slug(guest_slug)

Testing for wwdtm.guest.Guest.retrieve_details_by_slug()

Parameters

guest_slug (str) – Guest slug string to test retrieving guest details

tests.guest.test_guest_guest.test_guest_retrieve_all()

Testing for wwdtm.guest.Guest.retrieve_all()

tests.guest.test_guest_guest.test_guest_retrieve_all_details()

Testing for wwdtm.guest.Guest.retrieve_all_details()

tests.guest.test_guest_guest.test_guest_retrieve_all_ids()

Testing for wwdtm.guest.Guest.retrieve_all_ids()

tests.guest.test_guest_guest.test_guest_retrieve_all_slugs()

Testing for wwdtm.guest.Guest.retrieve_all_slugs()

tests.guest.test_guest_guest.test_guest_retrieve_by_id(guest_id)

Testing for wwdtm.guest.Guest.retrieve_by_id()

Parameters

guest_id (int) – Guest ID to test retrieving guest information

tests.guest.test_guest_guest.test_guest_retrieve_by_slug(guest_slug)

Testing for wwdtm.guest.Guest.retrieve_by_slug()

Parameters

guest_slug (str) – Guest slug string to test retrieving guest information

tests.guest.test_guest_guest.test_guest_retrieve_details_by_id(guest_id)

Testing for wwdtm.guest.Guest.retrieve_details_by_id()

Parameters

guest_id (int) – Guest ID to test retrieving guest details

test_guest_utility

Testing for object: wdtm.guest.GuestUtility

tests.guest.test_guest_utility.get_connect_dict()

Read in database connection settings and return values as a dictionary.

Return type

Dict[str, Any]

Returns

A dictionary containing database connection settings for use by mysql.connector

tests.guest.test_guest_utility.test_guest_utility_convert_id_to_slug(guest_id)

Testing for wwdtm.guest.GuestUtility.convert_id_to_slug()

Parameters

guest_id (int) – Guest ID to test converting into guest slug string

tests.guest.test_guest_utility.test_guest_utility_convert_invalid_id_to_slug(guest_id)

Negative testing for wwdtm.guest.GuestUtility.convert_id_to_slug()

Parameters

guest_id (int) – Guest ID to test failing to convert into guest slug string

tests.guest.test_guest_utility.test_guest_utility_convert_invalid_slug_to_id(guest_slug)

Negative testing for wwdtm.guest.GuestUtility.convert_slug_to_id()

Parameters

guest_slug (str) – Guest slug string to test failing to convert into guest ID

tests.guest.test_guest_utility.test_guest_utility_convert_slug_to_id(guest_slug)

Testing for wwdtm.guest.GuestUtility.convert_slug_to_id()

Parameters

guest_slug (str) – Guest slug string to test converting into guest ID

tests.guest.test_guest_utility.test_guest_utility_id_exists(guest_id)

Testing for wwdtm.guest.GuestUtility.id_exists()

Parameters

guest_id (int) – Guest ID to test if a guest exists

tests.guest.test_guest_utility.test_guest_utility_id_not_exists(guest_id)

Negative testing for wwdtm.guest.GuestUtility.id_exists()

Parameters

guest_id (int) – Guest ID to test if a guest does not exist

tests.guest.test_guest_utility.test_guest_utility_slug_exists(guest_slug)

Testing for wwdtm.guest.GuestUtility.slug_exists()

Parameters

guest_slug (str) – Guest slug string to test if a guest exists

tests.guest.test_guest_utility.test_guest_utility_slug_not_exists(guest_slug)

Negative testing for wwdtm.guest.GuestUtility.slug_exists()

Parameters

guest_slug (str) – Guest slug string to test if a guest does not exist