Skip to content

Commit

Permalink
Suppress file ingestion/indexing tests until #595 is merged. (#613)
Browse files Browse the repository at this point in the history
* Suppress file ingestion/indexing tests until #595 is merged.
  • Loading branch information
JohnMoutafis authored Jul 24, 2024
1 parent b3cf8c7 commit 472aa03
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions tests/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import List

import tiledb
import tiledb.cloud
from tiledb.cloud import array
from tiledb.cloud import client
from tiledb.cloud import groups
Expand Down Expand Up @@ -190,10 +191,15 @@ def test_round_trip(self):
array.delete_array(uri)


# FIXME: Will be fixed with #595 implementation
# Disable until then.
@unittest.skip("Skip until fixed VFS access")
class TestFileIngestion(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
"""Setup test files, group and destinations once before the file tests start."""
"""
Setup test files, group and destinations once before the file tests start.
"""
cls.input_file_location = (
"s3://tiledb-unittest/groups/file_ingestion_test_files"
)
Expand Down Expand Up @@ -226,6 +232,13 @@ def setUpClass(cls) -> None:
@classmethod
def tearDownClass(cls) -> None:
"""Cleanup after the tests have run"""
cls.cleanup_these_uris += [
f"tiledb://{cls.namespace}/{gifn}" for gifn in cls.group_input_file_names
]
cls.cleanup_these_uris += [
f"tiledb://{cls.namespace}/{ifn}" for ifn in cls.input_file_names
]

_cleanup_residual_test_arrays(array_uris=cls.cleanup_these_uris)
groups.delete(cls.group_uri, recursive=True)
return super().tearDownClass()
Expand Down Expand Up @@ -271,6 +284,11 @@ def test_files_ingestion_udf_into_group(self):

# Clean up
_cleanup_residual_test_arrays(array_uris=ingested_array_uris)
_cleanup_residual_test_arrays(
array_uris=[
f"tiledb://{self.namespace}/{iau}" for iau in ingested_array_uris
]
)

def test_add_array_to_group_udf_raises_bad_namespace_error(self):
with self.assertRaises(tiledb.TileDBError):
Expand All @@ -291,10 +309,13 @@ def test_add_array_to_group_udf_non_existing_group_raises_value_error(self):
)


@unittest.skip("Skip until fixed VFS access")
class TestFileIndexing(unittest.TestCase):
@classmethod
def setUpClass(cls) -> None:
"""Setup test files, group and destinations once before the file tests start."""
"""
Setup test files, group and destinations once before the file tests start.
"""
cls.input_file_location = "s3://tiledb-unittest/groups/file_indexing_test_files"
# Files with name "input_file_<n[0, 4]>.pdf" have already been placed
# in the "cls.input_file_location"
Expand Down

0 comments on commit 472aa03

Please sign in to comment.