Reformatted a handful more tests

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2023-09-08 17:58:06 -04:00
parent 23f894581c
commit 72c8a46b8c
21 changed files with 139 additions and 118 deletions

View File

@@ -26,10 +26,10 @@ def test_raises_when_overriding_custom_properties():
@pytest.mark.parametrize(
"json_response",
(
[
{},
{"foo": "bar"}, # Should still raise an exception
),
],
)
def test_model_raises_for_unknown_attributes(json_response):
class Custom(JSONModel):
@@ -56,10 +56,10 @@ def test_model_raises_keyerror_if_item_missing_from_dict():
@pytest.mark.parametrize(
"json_response",
(
[
{},
{"foo": "bar"}, # Should be ignored
),
],
)
def test_model_doesnt_swallow_attribute_errors(json_response):
class Custom(JSONModel):