diff --git a/ckanext/dataset_subscriptions/tests/actions/test_user.py b/ckanext/dataset_subscriptions/tests/actions/test_user.py index d136b03..c7c4907 100644 --- a/ckanext/dataset_subscriptions/tests/actions/test_user.py +++ b/ckanext/dataset_subscriptions/tests/actions/test_user.py @@ -58,10 +58,11 @@ def test_user_validate_plugin_extras_valid_phonenumber(self, client_mock, sysadm helpers.call_action('user_create', context=sysadmin_context, **user_dict) @pytest.mark.parametrize('phonenumber, enable_sms, enable_whatsapp, expectation', [ - ("", False, False, nullcontext(1)), + ("+44712345678", False, False, nullcontext(1)), ("", False, True, pytest.raises(toolkit.ValidationError)), ("", True, False, pytest.raises(toolkit.ValidationError)), - ("", True, True, pytest.raises(toolkit.ValidationError)) + ("", True, True, pytest.raises(toolkit.ValidationError)), + ("+44712345678", True, True, pytest.raises(toolkit.ValidationError)), ]) def test_user_validate_plugin_extras_requires_phonenumber(self, phonenumber, enable_sms, enable_whatsapp, expectation, sysadmin_context):