mirror of
https://github.com/Hopiu/django-fobi.git
synced 2026-05-25 12:43:44 +00:00
Fix travis tests
This commit is contained in:
parent
ef9520bb3b
commit
615625ba67
2 changed files with 7 additions and 4 deletions
|
|
@ -9,7 +9,6 @@ from selenium.webdriver.support.wait import WebDriverWait
|
|||
|
||||
from django.core.management import call_command
|
||||
from django.urls import reverse
|
||||
from django.test import LiveServerTestCase
|
||||
from django.conf import settings
|
||||
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import datetime
|
||||
import unittest
|
||||
|
||||
from django.urls import reverse
|
||||
from django.test import TestCase, RequestFactory
|
||||
from django.utils import timezone
|
||||
|
||||
|
|
@ -75,7 +76,7 @@ class FobiCoreTest(TestCase):
|
|||
"""Test form action URL."""
|
||||
request_factory = RequestFactory()
|
||||
request = request_factory.post(
|
||||
'/en/fobi/forms/edit/27/',
|
||||
reverse('fobi.edit_form_entry', args=[form_entry.pk]),
|
||||
data={
|
||||
'name': "John Doe",
|
||||
'is_public': False,
|
||||
|
|
@ -85,8 +86,11 @@ class FobiCoreTest(TestCase):
|
|||
}
|
||||
)
|
||||
request.META['SERVER_NAME'] = 'localhost'
|
||||
form = FormEntryForm(request.POST, request=request,
|
||||
instance=form_entry)
|
||||
form = FormEntryForm(
|
||||
request.POST,
|
||||
request=request,
|
||||
instance=form_entry
|
||||
)
|
||||
|
||||
saved = False
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue