Fix PEP8, and forgotten import change. Update .travis.

This commit is contained in:
Norman Jäckel 2013-03-12 21:56:13 +01:00
parent 03fff46517
commit edce8c59f1
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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')

View File

@ -75,7 +75,7 @@ class ModelTest(TestCase):
self.assertEqual(motion.title, 'v2') self.assertEqual(motion.title, 'v2')
motion.version = None 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') self.assertEqual(motion.title, 'v3')
with self.assertRaises(ValueError): with self.assertRaises(ValueError):

View File

@ -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):