Skip to content

Commit 9dca2d7

Browse files
Seher KarakuzuSeher Karakuzu
authored andcommitted
fixed failing string test
1 parent 2924684 commit 9dca2d7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tiled/_tests/test_writing.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
import pandas.testing
1515
import pytest
1616
import sparse
17+
from pandas.testing import assert_frame_equal
1718

1819
from ..catalog import in_memory
1920
from ..catalog.adapter import CatalogContainerAdapter
2021
from ..client import Context, from_context, record_history
21-
from ..client.dataframe import DataFrameClient
2222
from ..mimetypes import PARQUET_MIMETYPE
2323
from ..queries import Key
2424
from ..server.app import build_app
@@ -520,7 +520,7 @@ def test_append_partition(
520520
tree: CatalogContainerAdapter,
521521
orig_file: dict,
522522
file_toappend: dict,
523-
expected_file: DataFrameClient,
523+
expected_file: dict,
524524
):
525525
with Context.from_app(build_app(tree)) as context:
526526
client = from_context(context, include_data_sources=True)
@@ -546,6 +546,4 @@ def test_append_partition(
546546

547547
df3 = pandas.DataFrame(expected_file)
548548

549-
assert [row for col in x.columns for row in x[col]] == [
550-
row for col in df3.columns for row in df3[col]
551-
]
549+
assert_frame_equal(x.read(), df3, check_dtype=False)

0 commit comments

Comments
 (0)