location¶
This module provides functions used to by pytest to run tests against
the following objects:
test_location_recordings¶
Testing for object: wwdtm.location.LocationRecordings.
- tests.location.test_location_recordings.get_connect_dict()¶
Retrieves database connection settings.
- tests.location.test_location_recordings.test_location_recordings_retrieve_recordings_by_id(location_id)¶
Testing for
wwdtm.location.LocationRecordings.retrieve_recordings_by_id().- Parameters:
location_id (int) -- Location ID to test retrieving location recordings
- tests.location.test_location_recordings.test_location_recordings_retrieve_recordings_by_slug(location_slug)¶
Testing for
wwdtm.location.LocationRecordings.retrieve_recordings_by_slug().- Parameters:
location_slug (str) -- Location slug string to test retrieving location recordings
test_location_location¶
Testing for object: wwdtm.location.Location.
- tests.location.test_location_location.get_connect_dict()¶
Retrieves database connection settings.
- tests.location.test_location_location.test_location_retrieve_all()¶
Testing for
wwdtm.location.Location.retrieve_all().
- tests.location.test_location_location.test_location_retrieve_all_details()¶
Testing for
wwdtm.location.Location.retrieve_all_details().
- tests.location.test_location_location.test_location_retrieve_all_ids()¶
Testing for
wwdtm.location.Location.retrieve_all_ids().
- tests.location.test_location_location.test_location_retrieve_all_slugs()¶
Testing for
wwdtm.location.Location.retrieve_all_slugs().
- tests.location.test_location_location.test_location_retrieve_by_id(location_id)¶
Testing for
wwdtm.location.Location.retrieve_by_id().- Parameters:
location_id (int) -- Location ID to test retrieving location information
- tests.location.test_location_location.test_location_retrieve_by_slug(location_slug)¶
Testing for
wwdtm.location.Location.retrieve_by_slug().- Parameters:
location_slug (str) -- Location slug string to test retrieving location information
- tests.location.test_location_location.test_location_retrieve_details_by_id(location_id)¶
Testing for
wwdtm.location.location.retrieve_details_by_id().- Parameters:
location_id (int) -- Location ID to test retrieving location details
- tests.location.test_location_location.test_location_retrieve_details_by_slug(location_slug)¶
Testing for
wwdtm.location.Location.retrieve_details_by_slug().- Parameters:
location_slug (str) -- Location slug string to test retrieving location details
- tests.location.test_location_location.test_location_retrieve_postal_abbreviations()¶
Testing for
wwdtm.location.Location.retrieve_postal_abbreviations().
- tests.location.test_location_location.test_location_retrieve_postal_abbreviations_list()¶
Testing for
wwdtm.location.Location.retrieve_postal_abbreviations_list().
- tests.location.test_location_location.test_location_retrieve_postal_details_by_abbreviation(abbreviation)¶
Testing for
wwdtm.location.Location.retrieve_postal_details_by_abbreviation().- Parameters:
abbreviation (str)
- tests.location.test_location_location.test_location_retrieve_random()¶
Testing for
wwdtm.location.Location.retrieve_random().- Return type:
None
- tests.location.test_location_location.test_location_retrieve_random_details()¶
Testing for
wwdtm.host.Location.retrieve_random_details().- Return type:
None
- tests.location.test_location_location.test_location_retrieve_random_id()¶
Testing for :py:meth`wwdtm.location.Location.retrieve_random_id`.
- Return type:
None
- tests.location.test_location_location.test_location_retrieve_random_slug()¶
Testing for :py:meth`wwdtm.location.Location.retrieve_random_slug`.
- Return type:
None
test_location_utility¶
Testing for object: wwdtm.location.LocationUtility.
- tests.location.test_location_utility.get_connect_dict()¶
Retrieves database connection settings.
- tests.location.test_location_utility.test_location_utility_convert_id_to_slug(location_id)¶
Testing for
wwdtm.location.LocationUtility.convert_id_to_slug().- Parameters:
location_id (int) -- Location ID to test converting into location slug string
- tests.location.test_location_utility.test_location_utility_convert_invalid_id_to_slug(location_id)¶
Negative testing for
wwdtm.location.LocationUtility.convert_id_to_slug().- Parameters:
location_id (int) -- Location ID to test failing to convert into location slug string
- tests.location.test_location_utility.test_location_utility_convert_invalid_slug_to_id(location_slug)¶
Negative testing for
wwdtm.location.LocationUtility.convert_slug_to_id().- Parameters:
location_slug (str) -- Location slug string to test failing to convert into location ID
- tests.location.test_location_utility.test_location_utility_convert_slug_to_id(location_slug)¶
Testing for
wwdtm.location.LocationUtility.convert_slug_to_id().- Parameters:
location_slug (str) -- Location slug string to test converting into location ID
- tests.location.test_location_utility.test_location_utility_id_exists(location_id)¶
Testing for
wwdtm.location.LocationUtility.id_exists().- Parameters:
location_id (int) -- Location ID to test if a location exists
- tests.location.test_location_utility.test_location_utility_id_not_exists(location_id)¶
Negative testing for
wwdtm.location.LocationUtility.id_exists().- Parameters:
location_id (int) -- Location ID to test if a location does not exist
- tests.location.test_location_utility.test_location_utility_slug_exists(location_slug)¶
Testing for
wwdtm.location.LocationUtility.slug_exists().- Parameters:
location_slug (str) -- Location slug string to test if a location exists
- tests.location.test_location_utility.test_location_utility_slug_not_exists(location_slug)¶
Testing for
wwdtm.location.LocationUtility.slug_exists()with venue name.- Parameters:
location_slug (str) -- Location slug string to test if a location does not exists
- tests.location.test_location_utility.test_location_utility_slugify_location_city(city)¶
Negative testing for
wwdtm.location.LocationUtility.slugify_location().Testing with city name.
- Parameters:
city (str) -- City to include in the slug string
- tests.location.test_location_utility.test_location_utility_slugify_location_city_state(city, state)¶
Negative testing for
wwdtm.location.LocationUtility.slugify_location().Testing with city and state names.
- tests.location.test_location_utility.test_location_utility_slugify_location_full(location_id, venue, city, state)¶
Testing for
wwdtm.location.LocationUtility.slugify_location().Testing with location ID, venue, city and state names.
- tests.location.test_location_utility.test_location_utility_slugify_location_id(location_id)¶
Testing for
wwdtm.location.LocationUtility.slugify_location()with venue, city and state names.- Parameters:
location_id (int) -- Location ID to include in the slug string
- tests.location.test_location_utility.test_location_utility_slugify_location_venue(location_id, venue)¶
Testing for
wwdtm.location.LocationUtility.slugify_location()with venue name.
- tests.location.test_location_utility.test_location_utility_slugify_location_venue_city_state(venue, city, state)¶
Testing for
wwdtm.location.LocationUtility.slugify_location().