You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/11/26 21:16:01 UTC
(superset) 03/04: don't require boto3
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch fix_async_timeout_deps
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 7a43dfb77f8a2a689e5692b88017928f520e606a
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Tue Nov 26 13:03:44 2024 -0800
don't require boto3
---
tests/integration_tests/db_engine_specs/hive_tests.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/integration_tests/db_engine_specs/hive_tests.py b/tests/integration_tests/db_engine_specs/hive_tests.py
index f843ca0325..77d1b4d6a9 100644
--- a/tests/integration_tests/db_engine_specs/hive_tests.py
+++ b/tests/integration_tests/db_engine_specs/hive_tests.py
@@ -256,6 +256,9 @@ def test_s3_upload_prefix(schema: str, upload_prefix: str) -> None:
)
+@unittest.skipUnless(
+ SupersetTestCase.is_module_installed("boto3"), "boto3 not installed"
+)
def test_upload_to_s3_no_bucket_path():
with app.app_context():
with pytest.raises(
@@ -265,6 +268,9 @@ def test_upload_to_s3_no_bucket_path():
upload_to_s3("filename", "prefix", Table("table"))
+@unittest.skipUnless(
+ SupersetTestCase.is_module_installed("boto3"), "boto3 not installed"
+)
@mock.patch("boto3.client")
def test_upload_to_s3_client_error(client):
config = app.config.copy()
@@ -282,6 +288,9 @@ def test_upload_to_s3_client_error(client):
app.config = config
+@unittest.skipUnless(
+ SupersetTestCase.is_module_installed("boto3"), "boto3 not installed"
+)
@mock.patch("boto3.client")
def test_upload_to_s3_success(client):
config = app.config.copy()