mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-21 07:51:13 -05:00
Updated tests to match the formatting work done in the admin repo
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -87,10 +87,10 @@ def test_cant_override_custom_property_from_dict():
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"json_response",
|
||||
(
|
||||
[
|
||||
{},
|
||||
{"foo": "bar"}, # Should still raise an exception
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_model_raises_for_unknown_attributes(json_response):
|
||||
class Custom(SerialisedModel):
|
||||
@@ -118,10 +118,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(SerialisedModel):
|
||||
|
||||
Reference in New Issue
Block a user