Skip to content

Commit

Permalink
Remove unused catalog from integration test (apache#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu authored and hpal committed Mar 1, 2024
1 parent c999c7c commit f89f212
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions tests/integration/test_writes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

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 (
Expand All @@ -51,28 +51,6 @@
TimestamptzType,
)


@pytest.fixture()
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'],
Expand Down

0 comments on commit f89f212

Please sign in to comment.