This is an automated email from the ASF dual-hosted git repository.
honahx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
The following commit(s) were added to refs/heads/main by this push:
new afd7bf2a Remove unused catalog from integration test (#481)
afd7bf2a is described below
commit afd7bf2abccb8d09e5dfa4b1e64663e3dd5ab762
Author: Kevin Liu <[email protected]>
AuthorDate: Thu Feb 29 00:43:04 2024 -0800
Remove unused catalog from integration test (#481)
---
tests/integration/test_writes.py | 24 +-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)
diff --git a/tests/integration/test_writes.py b/tests/integration/test_writes.py
index fa5e93d9..a16ba48a 100644
--- a/tests/integration/test_writes.py
+++ b/tests/integration/test_writes.py
@@ -33,7 +33,7 @@ from pytest_mock.plugin import MockerFixture
from pyiceberg.catalog import Catalog, Properties, Table, load_catalog
from pyiceberg.catalog.sql import SqlCatalog
-from pyiceberg.exceptions import NamespaceAlreadyExistsError, NoSuchTableError
+from pyiceberg.exceptions import NoSuchTableError
from pyiceberg.schema import Schema
from pyiceberg.table import _dataframe_to_data_files
from pyiceberg.types import (
@@ -51,28 +51,6 @@ from pyiceberg.types import (
TimestamptzType,
)
-
[email protected]()
-def catalog() -> Catalog:
- catalog = load_catalog(
- "local",
- **{
- "type": "rest",
- "uri": "http://localhost:8181",
- "s3.endpoint": "http://localhost:9000",
- "s3.access-key-id": "admin",
- "s3.secret-access-key": "password",
- },
- )
-
- try:
- catalog.create_namespace("default")
- except NamespaceAlreadyExistsError:
- pass
-
- return catalog
-
-
TEST_DATA_WITH_NULL = {
'bool': [False, None, True],
'string': ['a', None, 'z'],