diff --git a/src/fobi/tests/test_core.py b/src/fobi/tests/test_core.py index 642d20e0..4ef25a49 100644 --- a/src/fobi/tests/test_core.py +++ b/src/fobi/tests/test_core.py @@ -1,4 +1,5 @@ import datetime +import logging from django.test import RequestFactory, TestCase from django.urls import reverse @@ -23,6 +24,8 @@ __license__ = "GPL 2.0/LGPL 2.1" __all__ = ("FobiCoreTest",) +LOGGER = logging.getLogger(__name__) + class FobiCoreTest(TestCase): """Tests of django-fobi core functionality.""" @@ -92,8 +95,10 @@ def _test_form_action_url(self, form_entry, action_url): if form.is_valid(): form.save() saved = True - except Exception: - pass + else: + LOGGER.debug(form.errors) + except Exception as err: + LOGGER.error(err) return saved