From e68df7167fe630ed1f4809f6516cdcf1992d1ee2 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Fri, 4 Nov 2016 16:13:21 +0200 Subject: [PATCH] Make some style fixes in tests --- tests/unit/__init__.py | 14 +------------- tests/unit/providers/__init__.py | 2 +- tests/unit/providers/test_base.py | 2 +- tests/unit/providers/test_callable.py | 7 +++++-- tests/unit/providers/test_creational.py | 7 +++++-- tests/unit/providers/test_static.py | 2 +- tests/unit/providers/test_utils.py | 6 ++++-- tests/unit/test_common.py | 4 +--- 8 files changed, 19 insertions(+), 25 deletions(-) diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index 72a7fbba..b2572276 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,13 +1 @@ -"""Dependency injector unittests.""" - -import unittest2 as unittest - -from dependency_injector import VERSION - - -class VersionTest(unittest.TestCase): - """Version constant tests.""" - - def test_version_follows_semantic_versioning(self): - """Test that version follows semantic versioning.""" - self.assertEquals(len(VERSION.split('.'))) +"""Dependency injector unit tests.""" diff --git a/tests/unit/providers/__init__.py b/tests/unit/providers/__init__.py index 600ac774..5ee4b909 100644 --- a/tests/unit/providers/__init__.py +++ b/tests/unit/providers/__init__.py @@ -1 +1 @@ -"""Dependency injector providers unittests.""" +"""Dependency injector providers unit tests.""" diff --git a/tests/unit/providers/test_base.py b/tests/unit/providers/test_base.py index e8241371..68e284fe 100644 --- a/tests/unit/providers/test_base.py +++ b/tests/unit/providers/test_base.py @@ -1,4 +1,4 @@ -"""Dependency injector base providers unittests.""" +"""Dependency injector base providers unit tests.""" import unittest2 as unittest diff --git a/tests/unit/providers/test_callable.py b/tests/unit/providers/test_callable.py index 315c5eb6..a9a8ec48 100644 --- a/tests/unit/providers/test_callable.py +++ b/tests/unit/providers/test_callable.py @@ -1,8 +1,11 @@ -"""Dependency injector callable providers unittests.""" +"""Dependency injector callable providers unit tests.""" import unittest2 as unittest -from dependency_injector import providers, errors +from dependency_injector import ( + providers, + errors, +) class CallableTests(unittest.TestCase): diff --git a/tests/unit/providers/test_creational.py b/tests/unit/providers/test_creational.py index 64050288..ed13215e 100644 --- a/tests/unit/providers/test_creational.py +++ b/tests/unit/providers/test_creational.py @@ -1,8 +1,11 @@ -"""Dependency injector creational providers unittests.""" +"""Dependency injector creational providers unit tests.""" import unittest2 as unittest -from dependency_injector import providers, errors +from dependency_injector import ( + providers, + errors, +) class Example(object): diff --git a/tests/unit/providers/test_static.py b/tests/unit/providers/test_static.py index 0dc61dc0..48bf170f 100644 --- a/tests/unit/providers/test_static.py +++ b/tests/unit/providers/test_static.py @@ -1,4 +1,4 @@ -"""Dependency injector static providers unittests.""" +"""Dependency injector static providers unit tests.""" import unittest2 as unittest diff --git a/tests/unit/providers/test_utils.py b/tests/unit/providers/test_utils.py index b10f7f60..880e2fa5 100644 --- a/tests/unit/providers/test_utils.py +++ b/tests/unit/providers/test_utils.py @@ -2,8 +2,10 @@ import unittest2 as unittest -from dependency_injector import providers -from dependency_injector import errors +from dependency_injector import ( + providers, + errors, +) class IsProviderTests(unittest.TestCase): diff --git a/tests/unit/test_common.py b/tests/unit/test_common.py index 38365aa9..dfa915d3 100644 --- a/tests/unit/test_common.py +++ b/tests/unit/test_common.py @@ -1,4 +1,4 @@ -"""Common unittests.""" +"""Dependency injector common unit tests.""" import unittest2 as unittest @@ -6,8 +6,6 @@ from dependency_injector import VERSION class VersionTest(unittest.TestCase): - """Version constant tests.""" def test_version_follows_semantic_versioning(self): - """Test that version follows semantic versioning.""" self.assertEquals(len(VERSION.split('.')), 3)