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()

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.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()

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.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

test_location_utility

Testing for object: wwdtm.location.LocationUtility

tests.location.test_location_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.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() 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() with city and state names

Parameters
  • city (str) – City to include in the slug string

  • state (str) – State to include in the slug string

tests.location.test_location_utility.test_location_utility_slugify_location_full(location_id, venue, city, state)

Testing for wwdtm.location.LocationUtility.slugify_location() with location ID, venue, city and state names

Parameters
  • location_id (int) – Location ID to include in the slug string

  • venue (str) – Venue name to include in the slug string

  • city (str) – City to include in the slug string

  • state (str) – State to include in the slug string

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

Parameters
  • location_id (int) – Location ID to include in the slug string

  • venue (str) – Venue name to include in the slug string

tests.location.test_location_utility.test_location_utility_slugify_location_venue_city_state(venue, city, state)

Testing for wwdtm.location.LocationUtility.slugify_location()

Parameters
  • venue (str) – Venue name to include in the slug string

  • city (str) – City to include in the slug string

  • state (str) – State to include in the slug string