Skip to content

Commit df17ee3

Browse files
committed
memory.py -> in_memory.py
1 parent 15236de commit df17ee3

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
@@ -139,7 +139,7 @@ def load_sql(name: str, conf: Properties) -> Catalog:
139139

140140

141141
def load_memory(name: str, conf: Properties) -> Catalog:
142-
from pyiceberg.catalog.memory import InMemoryCatalog
142+
from pyiceberg.catalog.in_memory import InMemoryCatalog
143143

144144
return InMemoryCatalog(name, **conf)
145145

File renamed without changes.

tests/catalog/test_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Catalog,
2626
PropertiesUpdateSummary,
2727
)
28-
from pyiceberg.catalog.memory import InMemoryCatalog
28+
from pyiceberg.catalog.in_memory import InMemoryCatalog
2929
from pyiceberg.exceptions import (
3030
NamespaceAlreadyExistsError,
3131
NamespaceNotEmptyError,
@@ -50,7 +50,7 @@
5050

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

5555

5656
TEST_TABLE_IDENTIFIER = ("com", "organization", "department", "my_table")
@@ -461,4 +461,4 @@ def test_add_column_with_statement(catalog: InMemoryCatalog) -> None:
461461

462462
def test_catalog_repr(catalog: InMemoryCatalog) -> None:
463463
s = repr(catalog)
464-
assert s == "test.in.memory.catalog (<class 'pyiceberg.catalog.memory.InMemoryCatalog'>)"
464+
assert s == "test.in.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.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)