Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Dec 21, 2024
1 parent 7007c09 commit 48c49db
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_single_table_description():
assert len(actual["documents"]) == 1

document: Document = actual["documents"][0]
assert document.meta == {"type": "TABLE_DESCRIPTION"}
assert document.meta == {"type": "TABLE_DESCRIPTION", "name": "user"}
assert document.content == str(
{
"name": "user",
Expand Down Expand Up @@ -71,6 +71,7 @@ def test_multiple_table_descriptions():
document_1: Document = actual["documents"][0]
assert document_1.meta == {
"type": "TABLE_DESCRIPTION",
"name": "user",
}
assert document_1.content == str(
{
Expand All @@ -81,7 +82,7 @@ def test_multiple_table_descriptions():
)

document_2: Document = actual["documents"][1]
assert document_2.meta == {"type": "TABLE_DESCRIPTION"}
assert document_2.meta == {"type": "TABLE_DESCRIPTION", "name": "order"}
assert document_2.content == str(
{
"name": "order",
Expand Down Expand Up @@ -121,7 +122,7 @@ def test_table_description_missing_description():
assert len(actual["documents"]) == 1

document: Document = actual["documents"][0]
assert document.meta == {"type": "TABLE_DESCRIPTION"}
assert document.meta == {"type": "TABLE_DESCRIPTION", "name": "user"}
assert document.content == str(
{"name": "user", "mdl_type": "MODEL", "description": ""}
)
Expand Down

0 comments on commit 48c49db

Please sign in to comment.