mirror of
https://github.com/GSA/notifications-api.git
synced 2026-06-19 20:50:35 -04:00
use pytest.param to contain marks like xfail or skip
This commit is contained in:
@@ -1405,8 +1405,8 @@ def test_dao_get_notifications_by_to_field_escapes(
|
||||
'(0)7700 9001',
|
||||
'4477009001',
|
||||
'+4477009001',
|
||||
pytest.mark.skip('+44077009001', reason='No easy way to normalise this'),
|
||||
pytest.mark.skip('+44(0)77009001', reason='No easy way to normalise this'),
|
||||
pytest.param('+44077009001', marks=pytest.mark.skip(reason='No easy way to normalise this')),
|
||||
pytest.param('+44(0)77009001', marks=pytest.mark.skip(reason='No easy way to normalise this')),
|
||||
])
|
||||
def test_dao_get_notifications_by_to_field_matches_partial_phone_numbers(
|
||||
sample_template,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user