Fix name of test
This commit is contained in:
parent
6fdc883a8c
commit
6ad4f4c077
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user