Fix PEP8, and forgotten import change. Update .travis.
This commit is contained in:
parent
03fff46517
commit
edce8c59f1
@ -8,3 +8,4 @@ install:
|
|||||||
script:
|
script:
|
||||||
- coverage run ./manage.py test tests && coverage report -m
|
- coverage run ./manage.py test tests && coverage report -m
|
||||||
- pep8 --max-line-length=150 --exclude="urls.py," --statistics openslides
|
- pep8 --max-line-length=150 --exclude="urls.py," --statistics openslides
|
||||||
|
- pep8 --max-line-length=150 --statistics tests
|
||||||
|
@ -95,7 +95,6 @@ class ItemTest(TestCase):
|
|||||||
self.assertEqual(self.item5.print_related_type(), 'Releateditem')
|
self.assertEqual(self.item5.print_related_type(), 'Releateditem')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ViewTest(TestCase):
|
class ViewTest(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.item1 = Item.objects.create(title='item1')
|
self.item1 = Item.objects.create(title='item1')
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
:license: GNU GPL, see LICENSE for more details.
|
:license: GNU GPL, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
from openslides import get_version, get_git_commit_id
|
from openslides import get_version, get_git_commit_id
|
||||||
|
from openslides.utils.test import TestCase
|
||||||
|
|
||||||
|
|
||||||
class InitTest(TestCase):
|
class InitTest(TestCase):
|
||||||
def test_get_version(self):
|
def test_get_version(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user