Updating tests for DataTable

This commit is contained in:
Darren Burns
2023-02-09 11:16:14 +00:00
parent c76bd5df2c
commit 7ebc95fb54
3 changed files with 24 additions and 34 deletions

View File

@@ -261,7 +261,7 @@ async def test_column_labels() -> None:
async with app.run_test():
table = app.query_one(DataTable)
table.add_columns("1", "2", "3")
actual_labels = [col.label for col in table.columns.values()]
actual_labels = [col.label.plain for col in table.columns.values()]
expected_labels = ["1", "2", "3"]
assert actual_labels == expected_labels