Skip to content

Commit e2541ac

Browse files
committed
memory.py -> in_memory.py
1 parent 21b1e50 commit e2541ac

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pyiceberg/catalog/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def load_sql(name: str, conf: Properties) -> Catalog:
145145

146146

147147
def load_memory(name: str, conf: Properties) -> Catalog:
148-
from pyiceberg.catalog.memory import InMemoryCatalog
148+
from pyiceberg.catalog.in_memory import InMemoryCatalog
149149

150150
return InMemoryCatalog(name, **conf)
151151

tests/catalog/test_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Catalog,
2828
PropertiesUpdateSummary,
2929
)
30-
from pyiceberg.catalog.memory import InMemoryCatalog
30+
from pyiceberg.catalog.in_memory import InMemoryCatalog
3131
from pyiceberg.exceptions import (
3232
NamespaceAlreadyExistsError,
3333
NamespaceNotEmptyError,
@@ -52,7 +52,7 @@
5252

5353
@pytest.fixture
5454
def catalog(tmp_path: PosixPath) -> InMemoryCatalog:
55-
return InMemoryCatalog("test.in.memory.catalog", **{WAREHOUSE: tmp_path.absolute().as_posix(), "test.key": "test.value"})
55+
return InMemoryCatalog("test.in_memory.catalog", **{WAREHOUSE: tmp_path.absolute().as_posix(), "test.key": "test.value"})
5656

5757

5858
TEST_TABLE_IDENTIFIER = ("com", "organization", "department", "my_table")
@@ -486,4 +486,4 @@ def test_add_column_with_statement(catalog: InMemoryCatalog) -> None:
486486

487487
def test_catalog_repr(catalog: InMemoryCatalog) -> None:
488488
s = repr(catalog)
489-
assert s == "test.in.memory.catalog (<class 'pyiceberg.catalog.memory.InMemoryCatalog'>)"
489+
assert s == "test.in_memory.catalog (<class 'pyiceberg.catalog.in_memory.InMemoryCatalog'>)"

tests/cli/test_console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from click.testing import CliRunner
2424
from pytest_mock import MockFixture
2525

26-
from pyiceberg.catalog.memory import DEFAULT_WAREHOUSE_LOCATION
26+
from pyiceberg.catalog.in_memory import DEFAULT_WAREHOUSE_LOCATION
2727
from pyiceberg.cli.console import run
2828
from pyiceberg.partitioning import PartitionField, PartitionSpec
2929
from pyiceberg.schema import Schema
@@ -53,7 +53,7 @@ def env_vars(mocker: MockFixture) -> None:
5353

5454
@pytest.fixture(name="catalog")
5555
def fixture_catalog(mocker: MockFixture) -> InMemoryCatalog:
56-
in_memory_catalog = InMemoryCatalog("test.in.memory.catalog", **{"test.key": "test.value"})
56+
in_memory_catalog = InMemoryCatalog("test.in_memory.catalog", **{"test.key": "test.value"})
5757
mocker.patch("pyiceberg.cli.console.load_catalog", return_value=in_memory_catalog)
5858
return in_memory_catalog
5959

0 commit comments

Comments
 (0)