Fix name of test

This commit is contained in:
leigh-mil 2018-10-24 10:08:49 -04:00
parent 6fdc883a8c
commit 6ad4f4c077

View File

@ -49,7 +49,7 @@ class TestName:
"invalid", "invalid",
["", "/my name", ":-)", "Name&Name", "Ke$ha", "A^Name", "#yourvalidname"], ["", "/my name", ":-)", "Name&Name", "Ke$ha", "A^Name", "#yourvalidname"],
) )
def test_Name_rejects_empty_string(self, invalid, dummy_form, dummy_field): def test_Name_rejects_invalid_characters(self, invalid, dummy_form, dummy_field):
validator = Name() validator = Name()
dummy_field.data = invalid dummy_field.data = invalid
with pytest.raises(ValidationError): with pytest.raises(ValidationError):