Fix PEP8, and forgotten import change. Update .travis.
This commit is contained in:
parent
03fff46517
commit
edce8c59f1
@ -8,3 +8,4 @@ install:
|
||||
script:
|
||||
- coverage run ./manage.py test tests && coverage report -m
|
||||
- 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')
|
||||
|
||||
|
||||
|
||||
class ViewTest(TestCase):
|
||||
def setUp(self):
|
||||
self.item1 = Item.objects.create(title='item1')
|
||||
|
@ -75,7 +75,7 @@ class ModelTest(TestCase):
|
||||
self.assertEqual(motion.title, 'v2')
|
||||
|
||||
motion.version = None
|
||||
motion.version = None # Test to set a version to None, which is already None
|
||||
motion.version = None # Test to set a version to None, which is already None
|
||||
self.assertEqual(motion.title, 'v3')
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
|
@ -7,9 +7,9 @@
|
||||
:license: GNU GPL, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
from openslides import get_version, get_git_commit_id
|
||||
from openslides.utils.test import TestCase
|
||||
|
||||
|
||||
class InitTest(TestCase):
|
||||
def test_get_version(self):
|
||||
|
Loading…
Reference in New Issue
Block a user