mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 18:08:37 -04:00
Rename S3 to AWS_S3 (#144324)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Tests for the S3 integration."""
|
||||
"""Tests for the AWS S3 integration."""
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Common fixtures for the S3 tests."""
|
||||
"""Common fixtures for the AWS S3 tests."""
|
||||
|
||||
from collections.abc import AsyncIterator, Generator
|
||||
import json
|
||||
@@ -6,12 +6,12 @@ from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.backup import AgentBackup
|
||||
from homeassistant.components.s3.backup import (
|
||||
from homeassistant.components.aws_s3.backup import (
|
||||
MULTIPART_MIN_PART_SIZE_BYTES,
|
||||
suggested_filenames,
|
||||
)
|
||||
from homeassistant.components.s3.const import DOMAIN
|
||||
from homeassistant.components.aws_s3.const import DOMAIN
|
||||
from homeassistant.components.backup import AgentBackup
|
||||
|
||||
from .const import USER_INPUT
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Consts for S3 tests."""
|
||||
"""Consts for AWS S3 tests."""
|
||||
|
||||
from homeassistant.components.s3.const import (
|
||||
from homeassistant.components.aws_s3.const import (
|
||||
CONF_ACCESS_KEY_ID,
|
||||
CONF_BUCKET,
|
||||
CONF_ENDPOINT_URL,
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Test the S3 backup platform."""
|
||||
"""Test the AWS S3 backup platform."""
|
||||
|
||||
from collections.abc import AsyncGenerator
|
||||
from io import StringIO
|
||||
@@ -9,19 +9,19 @@ from unittest.mock import AsyncMock, Mock, patch
|
||||
from botocore.exceptions import ConnectTimeoutError
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.backup import DOMAIN as BACKUP_DOMAIN, AgentBackup
|
||||
from homeassistant.components.s3.backup import (
|
||||
from homeassistant.components.aws_s3.backup import (
|
||||
MULTIPART_MIN_PART_SIZE_BYTES,
|
||||
BotoCoreError,
|
||||
S3BackupAgent,
|
||||
async_register_backup_agents_listener,
|
||||
suggested_filenames,
|
||||
)
|
||||
from homeassistant.components.s3.const import (
|
||||
from homeassistant.components.aws_s3.const import (
|
||||
CONF_ENDPOINT_URL,
|
||||
DATA_BACKUP_AGENT_LISTENERS,
|
||||
DOMAIN,
|
||||
)
|
||||
from homeassistant.components.backup import DOMAIN as BACKUP_DOMAIN, AgentBackup
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.backup import async_initialize_backup
|
||||
from homeassistant.setup import async_setup_component
|
||||
@@ -362,7 +362,7 @@ async def test_agents_upload_network_failure(
|
||||
)
|
||||
|
||||
assert resp.status == 201
|
||||
assert "Upload failed for s3" in caplog.text
|
||||
assert "Upload failed for aws_s3" in caplog.text
|
||||
|
||||
|
||||
async def test_agents_download(
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
"""Test the S3 config flow."""
|
||||
"""Test the AWS S3 config flow."""
|
||||
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
@@ -10,7 +10,7 @@ from botocore.exceptions import (
|
||||
import pytest
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.s3.const import CONF_BUCKET, CONF_ENDPOINT_URL, DOMAIN
|
||||
from homeassistant.components.aws_s3.const import CONF_BUCKET, CONF_ENDPOINT_URL, DOMAIN
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Test the s3 storage integration."""
|
||||
"""Test the AWS S3 storage integration."""
|
||||
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
Reference in New Issue
Block a user