Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyDrane committed Sep 27, 2023
1 parent 07ec655 commit aced69e
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions sdk/tests/test_items/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,18 @@ def test_create_columns_fails_name_none(self):
Column(**_column)

assert exc_info.value.errors() == [
{"loc": ("name",), "msg": "field required", "type": "value_error.missing"}
{
"type": "missing",
"loc": ("name",),
"msg": "Field required",
"input": {
"partition_index": None,
"data_type": "object",
"allow_null": True,
"format": None,
},
"url": "https://errors.pydantic.dev/2.2/v/missing",
}
]

def test_create_columns_fails_data_type_none(self):
Expand All @@ -116,9 +127,16 @@ def test_create_columns_fails_data_type_none(self):

assert exc_info.value.errors() == [
{
"type": "missing",
"loc": ("data_type",),
"msg": "field required",
"type": "value_error.missing",
"msg": "Field required",
"input": {
"name": "column_a",
"partition_index": None,
"allow_null": True,
"format": None,
},
"url": "https://errors.pydantic.dev/2.2/v/missing",
}
]

Expand Down

0 comments on commit aced69e

Please sign in to comment.