From c3f6ec931252ac52376f17a6f8e4757a9a3c43d8 Mon Sep 17 00:00:00 2001 From: vinoyang Date: Thu, 21 Nov 2024 15:53:09 +0800 Subject: [PATCH] Change hns bucket name (#307) --- .github/workflows/ci_hns.yml | 2 +- tosfs/tests/test_tosfs.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_hns.yml b/.github/workflows/ci_hns.yml index d927974..617b5c2 100644 --- a/.github/workflows/ci_hns.yml +++ b/.github/workflows/ci_hns.yml @@ -36,7 +36,7 @@ jobs: matrix: python-version: ["3.9", "3.10", "3.11", "3.12"] fsspec-version: ["2023.5.0", "2024.9.0", "2024.10.0"] - bucket-name: ["proton-ci-hns"] + bucket-name: ["proton-hns-ci"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} diff --git a/tosfs/tests/test_tosfs.py b/tosfs/tests/test_tosfs.py index efdc344..5f6dc4b 100644 --- a/tosfs/tests/test_tosfs.py +++ b/tosfs/tests/test_tosfs.py @@ -541,10 +541,9 @@ def test_walk(tosfs: TosFileSystem, bucket: str, temporary_workspace: str) -> No assert len(dirs) > 0 assert files == [] - for root, dirs, files in tosfs.walk(bucket, maxdepth=1): + for root, dirs, _ in tosfs.walk(bucket, maxdepth=1): assert root == bucket assert len(dirs) > 0 - assert len(files) > 0 dir_name = random_str() sub_dir_name = random_str() @@ -606,8 +605,6 @@ def test_find(tosfs: TosFileSystem, bucket: str, temporary_workspace: str) -> No ): tosfs.find("/") - assert len(tosfs.find(bucket, maxdepth=1)) > 0 - with pytest.raises( ValueError, match="Can not specify 'prefix' option " "alongside 'maxdepth' options.",