diff --git a/.travis.yml b/.travis.yml index 9a87327fd..aa3f468b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/agenda/tests.py b/tests/agenda/tests.py index 5472fc6a8..d1a76cf6f 100644 --- a/tests/agenda/tests.py +++ b/tests/agenda/tests.py @@ -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') diff --git a/tests/motion/test_models.py b/tests/motion/test_models.py index 86498912f..8e7ddcd4d 100644 --- a/tests/motion/test_models.py +++ b/tests/motion/test_models.py @@ -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): diff --git a/tests/test_init.py b/tests/test_init.py index 411860d79..aa665c62f 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -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):