Make some style fixes in tests

This commit is contained in:
Roman Mogilatov 2016-11-04 16:13:21 +02:00
parent f5680ff032
commit e68df7167f
8 changed files with 19 additions and 25 deletions

View File

@ -1,13 +1 @@
"""Dependency injector unittests.""" """Dependency injector unit tests."""
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('.')))

View File

@ -1 +1 @@
"""Dependency injector providers unittests.""" """Dependency injector providers unit tests."""

View File

@ -1,4 +1,4 @@
"""Dependency injector base providers unittests.""" """Dependency injector base providers unit tests."""
import unittest2 as unittest import unittest2 as unittest

View File

@ -1,8 +1,11 @@
"""Dependency injector callable providers unittests.""" """Dependency injector callable providers unit tests."""
import unittest2 as unittest import unittest2 as unittest
from dependency_injector import providers, errors from dependency_injector import (
providers,
errors,
)
class CallableTests(unittest.TestCase): class CallableTests(unittest.TestCase):

View File

@ -1,8 +1,11 @@
"""Dependency injector creational providers unittests.""" """Dependency injector creational providers unit tests."""
import unittest2 as unittest import unittest2 as unittest
from dependency_injector import providers, errors from dependency_injector import (
providers,
errors,
)
class Example(object): class Example(object):

View File

@ -1,4 +1,4 @@
"""Dependency injector static providers unittests.""" """Dependency injector static providers unit tests."""
import unittest2 as unittest import unittest2 as unittest

View File

@ -2,8 +2,10 @@
import unittest2 as unittest import unittest2 as unittest
from dependency_injector import providers from dependency_injector import (
from dependency_injector import errors providers,
errors,
)
class IsProviderTests(unittest.TestCase): class IsProviderTests(unittest.TestCase):

View File

@ -1,4 +1,4 @@
"""Common unittests.""" """Dependency injector common unit tests."""
import unittest2 as unittest import unittest2 as unittest
@ -6,8 +6,6 @@ from dependency_injector import VERSION
class VersionTest(unittest.TestCase): class VersionTest(unittest.TestCase):
"""Version constant tests."""
def test_version_follows_semantic_versioning(self): def test_version_follows_semantic_versioning(self):
"""Test that version follows semantic versioning."""
self.assertEquals(len(VERSION.split('.')), 3) self.assertEquals(len(VERSION.split('.')), 3)