From 3e67fc91f2996509b8ab894054c9a924b426d291 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Wed, 6 Mar 2024 19:12:00 -0800 Subject: [PATCH] whitespace --- tests/integration/test_reads.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/integration/test_reads.py b/tests/integration/test_reads.py index 645d66ac32..19642bee01 100644 --- a/tests/integration/test_reads.py +++ b/tests/integration/test_reads.py @@ -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 @@ -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')])