From ac27151884ede4bdac7e0a8acfd67668bde91cb9 Mon Sep 17 00:00:00 2001 From: "Wolfgang E. Sanyer" Date: Tue, 4 Jun 2024 20:18:59 -0400 Subject: [PATCH] dev-python/b2sdk: fix broken tests. There were some networked tests that weren't being skipped Signed-off-by: Wolfgang E. Sanyer Closes: https://bugs.gentoo.org/908089 --- dev-python/b2sdk/b2sdk-1.21.0.ebuild | 30 +++++++--------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/dev-python/b2sdk/b2sdk-1.21.0.ebuild b/dev-python/b2sdk/b2sdk-1.21.0.ebuild index 6bba19c7ae..cbb7255549 100644 --- a/dev-python/b2sdk/b2sdk-1.21.0.ebuild +++ b/dev-python/b2sdk/b2sdk-1.21.0.ebuild @@ -36,26 +36,10 @@ BDEPEND+=" test? ( ') )" -# These tests seem to require some b2 authentication (they're integration tests -# so this is not unreasonable) -python_test() { - # note: used to avoid an ExcessiveLineLength lint below. - local sqlite_test_path="test/unit/account_info/test_sqlite_account_info.py" - epytest \ - --deselect test/integration/test_large_files.py::TestLargeFile::test_large_file \ - --deselect test/integration/test_raw_api.py::test_raw_api \ - --deselect test/integration/test_download.py::TestDownload::test_large_file \ - --deselect test/integration/test_download.py::TestDownload::test_small \ - --deselect test/integration/test_download.py::TestDownload::test_small_unverified \ - --deselect test/integration/test_download.py::TestDownload::test_gzip \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_invalid_profile_name \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_profile_and_file_name_conflict \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_profile_and_env_var_conflict \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_profile_and_xdg_config_env_var \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_profile \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_file_name \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_env_var \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_default_file_if_exists \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_xdg_config_env_var \ - --deselect ${sqlite_test_path}::TestSqliteAccountProfileFileLocation::test_default_file -} +EPYTEST_DESELECT=( + test/integration/test_large_files.py::TestLargeFile::test_large_file + test/integration/test_raw_api.py::test_raw_api + test/integration/test_download.py + test/integration/test_upload.py + test/unit/account_info/test_sqlite_account_info.py +)