mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Reformatted a handful more tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user