use pytest.param to contain marks like xfail or skip

This commit is contained in:
Leo Hemsted
2018-09-19 16:33:00 +01:00
parent 918e4b390f
commit 9021b43eb6
2 changed files with 5 additions and 4 deletions

View File

@@ -161,11 +161,12 @@ def test_send_notification_with_placeholders_replaced(notify_api, sample_email_t
),
'6',
),
pytest.mark.xfail((
pytest.param(
None,
('we consider None equivalent to missing personalisation'),
'',
)),
marks=pytest.mark.xfail
),
])
def test_send_notification_with_placeholders_replaced_with_unusual_types(
client,