Skip to content

Commit

Permalink
correct unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-troy committed Feb 9, 2024
1 parent 06b71a5 commit 694adbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,23 @@ def get_table_name(headers):
]

assert get_table_name([""])["table_name"] is None
assert list(get_table_name(["incorrect", "header", "values"])["errors"]) == [
assert list(get_table_name([""])["errors"]) == [
{
"message": "Failed to identify table based on headers",
"type": "UnidentifiedTable",
}
]

assert get_table_name([])["table_name"] is None
assert list(get_table_name(["incorrect", "header", "values"])["errors"]) == [
assert list(get_table_name([])["errors"]) == [
{
"message": "Failed to identify table based on headers",
"type": "UnidentifiedTable",
}
]

assert get_table_name(None)["table_name"] is None
assert list(get_table_name(["incorrect", "header", "values"])["errors"]) == [
assert list(get_table_name(None)["errors"]) == [
{
"message": "Failed to identify table based on headers",
"type": "UnidentifiedTable",
Expand Down

0 comments on commit 694adbd

Please sign in to comment.