Skip to content

Commit f89f212

Browse files
kevinjqliuhpal
authored andcommitted
Remove unused catalog from integration test (apache#481)
1 parent c999c7c commit f89f212

1 file changed

Lines changed: 1 addition & 23 deletions

File tree

tests/integration/test_writes.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
from pyiceberg.catalog import Catalog, Properties, Table, load_catalog
3535
from pyiceberg.catalog.sql import SqlCatalog
36-
from pyiceberg.exceptions import NamespaceAlreadyExistsError, NoSuchTableError
36+
from pyiceberg.exceptions import NoSuchTableError
3737
from pyiceberg.schema import Schema
3838
from pyiceberg.table import _dataframe_to_data_files
3939
from pyiceberg.types import (
@@ -51,28 +51,6 @@
5151
TimestamptzType,
5252
)
5353

54-
55-
@pytest.fixture()
56-
def catalog() -> Catalog:
57-
catalog = load_catalog(
58-
"local",
59-
**{
60-
"type": "rest",
61-
"uri": "http://localhost:8181",
62-
"s3.endpoint": "http://localhost:9000",
63-
"s3.access-key-id": "admin",
64-
"s3.secret-access-key": "password",
65-
},
66-
)
67-
68-
try:
69-
catalog.create_namespace("default")
70-
except NamespaceAlreadyExistsError:
71-
pass
72-
73-
return catalog
74-
75-
7654
TEST_DATA_WITH_NULL = {
7755
'bool': [False, None, True],
7856
'string': ['a', None, 'z'],

0 commit comments

Comments
 (0)