mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Remove assertEquals from tests
This commit is contained in:
parent
b1e166dcd5
commit
3e73555869
|
@ -12,6 +12,7 @@ Development version
|
|||
- Fix bug `#208 <https://github.com/ets-labs/python-dependency-injector/issues/208>`_:
|
||||
version ``3.14.0`` hasn't worked on Python 3.5.2 (thanks to
|
||||
`Jeroen Entjes <https://github.com/JeroenEntjes>`_).
|
||||
- Remove deprecated ``assertEquals`` from tests.
|
||||
|
||||
3.14.0
|
||||
------
|
||||
|
|
|
@ -13,7 +13,7 @@ class PositionalInjectionTests(unittest.TestCase):
|
|||
|
||||
def test_get_value_with_not_provider(self):
|
||||
injection = providers.PositionalInjection(123)
|
||||
self.assertEquals(injection.get_value(), 123)
|
||||
self.assertEqual(injection.get_value(), 123)
|
||||
|
||||
def test_get_value_with_factory(self):
|
||||
injection = providers.PositionalInjection(providers.Factory(object))
|
||||
|
@ -61,11 +61,11 @@ class NamedInjectionTests(unittest.TestCase):
|
|||
|
||||
def test_get_name(self):
|
||||
injection = providers.NamedInjection('name', 123)
|
||||
self.assertEquals(injection.get_name(), 'name')
|
||||
self.assertEqual(injection.get_name(), 'name')
|
||||
|
||||
def test_get_value_with_not_provider(self):
|
||||
injection = providers.NamedInjection('name', 123)
|
||||
self.assertEquals(injection.get_value(), 123)
|
||||
self.assertEqual(injection.get_value(), 123)
|
||||
|
||||
def test_get_value_with_factory(self):
|
||||
injection = providers.NamedInjection('name',
|
||||
|
|
|
@ -8,4 +8,4 @@ from dependency_injector import __version__
|
|||
class VersionTest(unittest.TestCase):
|
||||
|
||||
def test_version_follows_semantic_versioning(self):
|
||||
self.assertEquals(len(__version__.split('.')), 3)
|
||||
self.assertEqual(len(__version__.split('.')), 3)
|
||||
|
|
Loading…
Reference in New Issue
Block a user