Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu committed Mar 7, 2024
1 parent 948f8f6 commit 3e67fc9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/integration/test_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,16 @@ def test_table_properties(catalog: Catalog) -> None:

with table.transaction() as transaction:
transaction.set_properties(abc="🤪")

assert table.properties == dict(abc="🤪", **DEFAULT_PROPERTIES)

with table.transaction() as transaction:
transaction.remove_properties("abc")

assert table.properties == DEFAULT_PROPERTIES

table = table.transaction().set_properties(abc="def").commit_transaction()

assert table.properties == dict(abc="def", **DEFAULT_PROPERTIES)

table = table.transaction().remove_properties("abc").commit_transaction()

assert table.properties == DEFAULT_PROPERTIES


Expand All @@ -133,22 +129,21 @@ def test_table_properties_dict(catalog: Catalog) -> None:

with table.transaction() as transaction:
transaction.set_properties({"abc": "🤪"})

assert table.properties == dict({"abc": "🤪"}, **DEFAULT_PROPERTIES)

with table.transaction() as transaction:
transaction.remove_properties("abc")

assert table.properties == DEFAULT_PROPERTIES

table = table.transaction().set_properties({"abc": "def"}).commit_transaction()

assert table.properties == dict({"abc": "def"}, **DEFAULT_PROPERTIES)

table = table.transaction().remove_properties("abc").commit_transaction()

assert table.properties == DEFAULT_PROPERTIES

table = table.transaction().set_properties({"abc": 123}).commit_transaction()
assert table.properties == dict(abc=123, **DEFAULT_PROPERTIES)


@pytest.mark.integration
@pytest.mark.parametrize('catalog', [pytest.lazy_fixture('catalog_hive'), pytest.lazy_fixture('catalog_rest')])
Expand Down

0 comments on commit 3e67fc9

Please sign in to comment.