From 66a1e5c2c1c811d345073ec81f85377262ad2601 Mon Sep 17 00:00:00 2001 From: Scott Giminiani Date: Fri, 7 Jul 2023 00:43:46 -0400 Subject: [PATCH] Remove copy/pasted references to GMail in YouTube integration tests (#96048) These were likely used as an example when writing the tests for this component and we missed renaming them. A few unused vars with references to GMail were also removed. --- tests/components/youtube/conftest.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/components/youtube/conftest.py b/tests/components/youtube/conftest.py index 6513c359a7c..d87a3c07679 100644 --- a/tests/components/youtube/conftest.py +++ b/tests/components/youtube/conftest.py @@ -1,4 +1,4 @@ -"""Configure tests for the Google Mail integration.""" +"""Configure tests for the YouTube integration.""" from collections.abc import Awaitable, Callable, Coroutine import time from typing import Any @@ -20,7 +20,6 @@ from tests.test_util.aiohttp import AiohttpClientMocker ComponentSetup = Callable[[], Awaitable[None]] -BUILD = "homeassistant.components.google_mail.api.build" CLIENT_ID = "1234" CLIENT_SECRET = "5678" GOOGLE_AUTH_URI = "https://accounts.google.com/o/oauth2/v2/auth" @@ -28,7 +27,6 @@ GOOGLE_TOKEN_URI = "https://oauth2.googleapis.com/token" SCOPES = [ "https://www.googleapis.com/auth/youtube.readonly", ] -SENSOR = "sensor.example_gmail_com_vacation_end_date" TITLE = "Google for Developers" TOKEN = "homeassistant.components.youtube.api.config_entry_oauth2_flow.OAuth2Session.async_ensure_token_valid" @@ -59,7 +57,7 @@ def mock_expires_at() -> int: @pytest.fixture(name="config_entry") def mock_config_entry(expires_at: int, scopes: list[str]) -> MockConfigEntry: - """Create Google Mail entry in Home Assistant.""" + """Create YouTube entry in Home Assistant.""" return MockConfigEntry( domain=DOMAIN, title=TITLE, @@ -79,7 +77,7 @@ def mock_config_entry(expires_at: int, scopes: list[str]) -> MockConfigEntry: @pytest.fixture(autouse=True) def mock_connection(aioclient_mock: AiohttpClientMocker) -> None: - """Mock Google Mail connection.""" + """Mock YouTube connection.""" aioclient_mock.post( GOOGLE_TOKEN_URI, json={