mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-18 04:20:46 +03:00
Make some style fixes in tests
This commit is contained in:
parent
f5680ff032
commit
e68df7167f
|
@ -1,13 +1 @@
|
||||||
"""Dependency injector unit tests."""
|
"""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('.')))
|
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
|
|
||||||
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):
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
|
|
||||||
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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user