Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Aug 31, 2024
1 parent beaf916 commit 556d54c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/components/google_photos/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ async def test_upload_service(
"homeassistant.components.google_photos.services.Path.read_bytes",
return_value=b"image bytes",
),
patch("homeassistant.components.google_photos.services.Path.exists", return_value=True),
patch(
"homeassistant.components.google_photos.services.Path.exists",
return_value=True,
),
patch.object(hass.config, "is_allowed_path", return_value=True),
):
response = await hass.services.async_call(
Expand Down Expand Up @@ -166,7 +169,10 @@ async def test_upload_service_upload_content_failure(
"homeassistant.components.google_photos.services.Path.read_bytes",
return_value=b"image bytes",
),
patch("homeassistant.components.google_photos.services.Path.exists", return_value=True),
patch(
"homeassistant.components.google_photos.services.Path.exists",
return_value=True,
),
patch.object(hass.config, "is_allowed_path", return_value=True),
pytest.raises(HomeAssistantError, match="Failed to upload content"),
):
Expand Down Expand Up @@ -201,7 +207,10 @@ async def test_upload_service_fails_create(
"homeassistant.components.google_photos.services.Path.read_bytes",
return_value=b"image bytes",
),
patch("homeassistant.components.google_photos.services.Path.exists", return_value=True),
patch(
"homeassistant.components.google_photos.services.Path.exists",
return_value=True,
),
patch.object(hass.config, "is_allowed_path", return_value=True),
pytest.raises(
HomeAssistantError, match="Google Photos API responded with error"
Expand Down

0 comments on commit 556d54c

Please sign in to comment.