Skip to content

Commit

Permalink
Debuggingg
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Nov 11, 2023
1 parent b7678b3 commit 6b36b7d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/fobi/tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import datetime
import logging

from django.test import RequestFactory, TestCase
from django.urls import reverse
Expand All @@ -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."""
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6b36b7d

Please sign in to comment.