Google calendar test cleanup, avoiding dupe config entry setup (#81256)

This commit is contained in:
Allen Porter 2022-10-30 15:07:10 -07:00 committed by GitHub
parent 03f74b3234
commit ba8fd6b01e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,15 +62,11 @@ TEST_EVENT = {
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
def mock_test_setup( def mock_test_setup(
hass,
test_api_calendar, test_api_calendar,
mock_calendars_list, mock_calendars_list,
config_entry,
): ):
"""Fixture that pulls in the default fixtures for tests in this file.""" """Fixture that sets up the default API responses during integration setup."""
mock_calendars_list({"items": [test_api_calendar]}) mock_calendars_list({"items": [test_api_calendar]})
config_entry.add_to_hass(hass)
return
def get_events_url(entity: str, start: str, end: str) -> str: def get_events_url(entity: str, start: str, end: str) -> str: