Updating Forms to the new FlaskForm class name
This commit is contained in:
12
test/test_form.py
Normal file
12
test/test_form.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import pytest
|
||||
from puppetboard import app, forms
|
||||
|
||||
|
||||
def test_form_valid(capsys):
|
||||
for form in [forms.QueryForm, forms.CatalogForm]:
|
||||
with app.app.test_request_context():
|
||||
qf = form()
|
||||
out, err = capsys.readouterr()
|
||||
assert qf is not None
|
||||
assert err == ""
|
||||
assert out == ""
|
||||
Reference in New Issue
Block a user