class TestCase(unittest.TestCase):

    def setUp(self):
        app.config['TESTING'] = True
app.config['WTF_CSRF_ENABLED'] = False
Flask-WTF / WTForms with Unittest fails validation, but works without Unittest