From c15734e3d25c7b7ee97a7a48d45457b926daf159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= Date: Tue, 14 Jun 2022 21:03:23 +0200 Subject: [PATCH] support/testing: add new test for python-s3transfer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Many actual tests require network usage, so just import the module to check that at least that part works. Signed-off-by: Raphaël Mélotte Signed-off-by: Thomas Petazzoni --- .../tests/package/sample_python_s3transfer.py | 1 + .../testing/tests/package/test_python_s3transfer.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 support/testing/tests/package/sample_python_s3transfer.py create mode 100644 support/testing/tests/package/test_python_s3transfer.py diff --git a/support/testing/tests/package/sample_python_s3transfer.py b/support/testing/tests/package/sample_python_s3transfer.py new file mode 100644 index 0000000000..ff53077c9e --- /dev/null +++ b/support/testing/tests/package/sample_python_s3transfer.py @@ -0,0 +1 @@ +import s3transfer diff --git a/support/testing/tests/package/test_python_s3transfer.py b/support/testing/tests/package/test_python_s3transfer.py new file mode 100644 index 0000000000..dc669444ce --- /dev/null +++ b/support/testing/tests/package/test_python_s3transfer.py @@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3S3transfer(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_S3TRANSFER=y + """ + sample_scripts = ["tests/package/sample_python_s3transfer.py"] + timeout = 10