show

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

test_show_info

Testing for object wwdtm.show.ShowInfo

tests.show.test_show_info.get_connect_dict()

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

Return type:

Dict[str, Any]

tests.show.test_show_info.test_show_info_retrieve_bluff_info_by_id(show_id)

Testing for wwdtm.show.ShowInfo.retrieve_bluff_info_by_id()

Parameters:

show_id (int) – Show ID to test retrieving show Bluff the Listener information

tests.show.test_show_info.test_show_info_retrieve_core_info_by_id(show_id)

Testing for wwdtm.show.ShowInfo.retrieve_core_info_by_id()

Parameters:

show_id (int) – Show ID to test retrieving show core information

tests.show.test_show_info.test_show_info_retrieve_guest_info_by_id(show_id)

Testing for wwdtm.show.ShowInfo.retrieve_guest_info_by_id()

Parameters:

show_id (int) – Show ID to test retrieving show guest information

tests.show.test_show_info.test_show_info_retrieve_panelist_info_by_id(show_id, include_decimal_scores)

Testing for wwdtm.show.ShowInfo.retrieve_panelist_info_by_id()

Parameters:
  • show_id (int) – Show ID to test retrieving show panelist information

  • include_decimal_scores (bool) – Flag set to include decimal score columns and values

test_show_info_multiple

Testing for object wwdtm.show.ShowInfo

tests.show.test_show_info_multiple.get_connect_dict()

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

Return type:

Dict[str, Any]

tests.show.test_show_info_multiple.test_show_info_retrieve_bluff_info_all(show_id)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_bluff_info_all()

Parameters:

show_id (int) – Show ID to test retrieving show Bluff the Listener information from all shows retrieved

tests.show.test_show_info_multiple.test_show_info_retrieve_bluff_info_by_ids(show_ids)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_bluff_info_by_ids()

Parameters:

show_ids (List[int]) – List of show IDs to test retrieving show Bluff the Listener information

tests.show.test_show_info_multiple.test_show_info_retrieve_core_info_all(show_id)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_core_info_all()

Parameters:

show_id (int) – Show ID to test retrieving show core information from all shows retrieved

tests.show.test_show_info_multiple.test_show_info_retrieve_core_info_by_ids(show_ids)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_core_info_by_ids()

Parameters:
  • show_id – Show ID to test retrieving show core information

  • show_ids (List[int]) –

tests.show.test_show_info_multiple.test_show_info_retrieve_guest_info_all(show_id)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_guest_info_all()

Parameters:

show_id (int) – Show ID to test retrieving show guest information for all shows retrieved

tests.show.test_show_info_multiple.test_show_info_retrieve_guest_info_by_ids(show_ids)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_guest_info_by_ids()

Parameters:

show_ids (List[int]) – List of show IDs to test retrieving show guest information

tests.show.test_show_info_multiple.test_show_info_retrieve_panelist_info_all(show_id, include_decimal_scores)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_panelist_info_all()

Parameters:
  • show_id (int) – Show ID to test retrieving show panelist information for all shows retrieved

  • include_decimal_scores (bool) – Flag set to include decimal score columns and values

tests.show.test_show_info_multiple.test_show_info_retrieve_panelist_info_by_ids(show_ids, include_decimal_scores)

Testing for wwdtm.show.ShowInfoMultiple.retrieve_panelist_info_by_ids()

Parameters:
  • show_ids (List[int]) – List of show IDs to test retrieving show panelist information

  • include_decimal_scores (bool) – Flag set to include decimal score columns and values

test_show_show

Testing for object wwdtm.show.Show

tests.show.test_show_show.get_connect_dict()

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

Return type:

Dict[str, Any]

tests.show.test_show_show.test_show_retrieve_all()

Testing for wwdtm.show.Show.retrieve_all()

tests.show.test_show_show.test_show_retrieve_all_dates()

Testing for wwdtm.show.Show.retrieve_all_dates()

tests.show.test_show_show.test_show_retrieve_all_dates_tuple()

Testing for wwdtm.show.Show.retrieve_all_dates_tuple()

tests.show.test_show_show.test_show_retrieve_all_details(include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_all_details()

Parameters:

include_decimal_scores (bool) – Flag set to include decimal score columns and values

tests.show.test_show_show.test_show_retrieve_all_ids()

Testing for wwdtm.show.Show.retrieve_all_ids()

tests.show.test_show_show.test_show_retrieve_all_show_years_months()

Testing for wwdtm.show.Show.retrieve_all_show_years_months()

tests.show.test_show_show.test_show_retrieve_all_show_years_months_tuple()

Testing for wwdtm.show.Show.retrieve_all_shows_years_months_tuple()

tests.show.test_show_show.test_show_retrieve_by_date(year, month, day)

Testing for wwdtm.show.Show.retrieve_by_date()

Parameters:
  • year (int) – Four digit year to test retrieving a show’s information

  • month (int) – One or two digit month to test retrieving a show’s information

  • day (int) – One or two digit day to test retrieving a show’s information

tests.show.test_show_show.test_show_retrieve_by_date_string(date)

Testing for wwdtm.show.Show.retrieve_by_date_string()

Parameters:

date (str) – Show date string in YYYY-MM-DD format to test retrieving a show’s information

tests.show.test_show_show.test_show_retrieve_by_id(show_id)

Testing for wwdtm.show.Show.retrieve_by_id()

Parameters:

show_id (int) – Show ID to test retrieving show information

tests.show.test_show_show.test_show_retrieve_by_month_day(month, day)

Testing for wwdtm.show.Show.retrieve_by_month_day()

Parameters:
  • month (int) – One or two digit month to test retrieving show details

  • day (int) – One or two digit day to test retrieving show details

tests.show.test_show_show.test_show_retrieve_by_year(year)

Testing for wwdtm.show.Show.retrieve_by_year()

Parameters:

year (int) – Four digit year to test retrieving show information

tests.show.test_show_show.test_show_retrieve_by_year_month(year, month)

Testing for wwdtm.show.Show.retrieve_by_year_month()

Parameters:
  • year (int) – Four digit year to test retrieving show information

  • month (int) – One or two digit month to test retrieving show information

tests.show.test_show_show.test_show_retrieve_details_by_date(year, month, day, include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_details_by_date()

Parameters:
  • year (int) – Four digit year to test retrieving show details

  • month (int) – One or two digit month to test retrieving show details

  • day (int) – One or two digit day to test retrieving show details

  • include_decimal_scores (bool) – Flag set to include decimal score columns and values

tests.show.test_show_show.test_show_retrieve_details_by_date_string(date, include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_details_by_date_string()

Parameters:
  • date (str) – Show date string in YYYY-MM-DD format to test retrieving show details

  • include_decimal_scores (bool) – Flag set to include decimal score columns and values

tests.show.test_show_show.test_show_retrieve_details_by_date_string_decimal(date)

Testing for wwdtm.show.Show.retrieve_details_by_date_string() with decimal scores

Parameters:
  • date (str) – Show date string in YYYY-MM-DD format to test retrieving show details

  • include_decimal_scores – Flag set to include decimal score columns and values

tests.show.test_show_show.test_show_retrieve_details_by_id(show_id, include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_details_by_id()

Parameters:
  • show_id (int) – Show ID to test retrieving show details

  • include_decimal_scores (bool) – Flag set to include decimal score columns and values

tests.show.test_show_show.test_show_retrieve_details_by_month_day(month, day, include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_details_by_month_day()

Parameters:
  • month (int) – One or two digit month to test retrieving show details

  • day (int) – One or two digit day to test retrieving show details

  • include_decimal_scores (bool) – Flag set to include decimal score columns and values

tests.show.test_show_show.test_show_retrieve_details_by_year(year, include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_details_by_year()

Parameters:
  • year (int) – Four digit year to test retrieving show details

  • include_decimal_scores (bool) –

tests.show.test_show_show.test_show_retrieve_details_by_year_month(year, month, include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_details_by_year_month()

Parameters:
  • year (int) – Four digit year to test retrieving show details

  • month (int) – One or two digit year to test retrieving show details

  • include_decimal_scores (bool) –

tests.show.test_show_show.test_show_retrieve_months_by_year(year)

Testing for wwdtm.show.Show.retrieve_months_by_year()

Parameters:

year (int) – Four digit year to test retrieving a list of months

tests.show.test_show_show.test_show_retrieve_recent()

Testing for wwdtm.show.Show.retrieve_recent()

tests.show.test_show_show.test_show_retrieve_recent_details(include_decimal_scores)

Testing for wwdtm.show.Show.retrieve_recent_details()

Parameters:

include_decimal_scores (bool) –

tests.show.test_show_show.test_show_retrieve_scores_by_year(year, use_decimal_scores)

Testing for wwdtm.show.Show.retrieve_scores_by_year()

Parameters:
  • year (int) – Four digit year to test retrieving scores for a show year

  • use_decimal_scores (bool) – Flag set to use decimal score columns and values

tests.show.test_show_show.test_show_retrieve_years()

Testing for wwdtm.show.Show.retrieve_years()

test_show_utility

Testing for object wwdtm.show.ShowUtility

tests.show.test_show_utility.get_connect_dict()

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

Return type:

Dict[str, Any]

tests.show.test_show_utility.test_show_utility_convert_date_to_id(year, month, day)

Testing for wwdtm.show.ShowUtility.convert_date_to_id()

Parameters:
  • year (int) – Four digit year to test converting into show ID

  • month (int) – One or two digit month to test converting into show ID

  • day (int) – One or two digit day to test converting into show ID

tests.show.test_show_utility.test_show_utility_convert_id_to_date(show_id)

Testing for wwdtm.show.ShowUtility.convert_id_to_date()

Parameters:

show_id (int) – Show ID to test converting into show date

tests.show.test_show_utility.test_show_utility_convert_invalid_date_to_id(year, month, day)

Negative testing for wwdtm.show.ShowUtility.convert_date_to_id()

Parameters:
  • year (int) – Four digit year to test failing to convert into show ID

  • month (int) – One or two digit month to test failing to convert into show ID

  • day (int) – One or two digit day to test failing to convert into show ID

tests.show.test_show_utility.test_show_utility_convert_invalid_id_to_date(show_id)

Negative testing for wwdtm.show.ShowUtility.convert_id_to_date()

Parameters:

show_id (int) – Show ID to test failing to convert into show date

tests.show.test_show_utility.test_show_utility_date_exists(year, month, day)

Testing for wwdtm.show.ShowUtility.date_exists()

Parameters:
  • year (int) – Four digit year to test if a show exists

  • month (int) – One or two digit month to test if a show exists

  • day (int) – One or two digit day to test if a show exists

tests.show.test_show_utility.test_show_utility_date_not_exists(year, month, day)

Negative testing for wwdtm.show.ShowUtility.date_exists()

Parameters:
  • year (int) – Four digit year to test if a show does not exist

  • month (int) – One or two digit month to test if a show does not exist

  • day (int) – One or two digit day to test if a show does not exist

tests.show.test_show_utility.test_show_utility_id_exists(show_id)

Testing for wwdtm.show.ShowUtility.id_exists()

Parameters:

show_id (int) – Show ID to test if a show exists

tests.show.test_show_utility.test_show_utility_id_not_exists(show_id)

Negative testing for wwdtm.show.ShowUtility.id_exists()

Parameters:

show_id (int) – Show ID to test if a show does not exist