Remove unnecessary injection tests
This commit is contained in:
parent
776da6dd2b
commit
6b1ff707a2
|
@ -1,4 +1,4 @@
|
||||||
"""Dependency injector container unit tests."""
|
"""Dependency injector injections unit tests."""
|
||||||
|
|
||||||
import unittest2 as unittest
|
import unittest2 as unittest
|
||||||
|
|
||||||
|
@ -8,9 +8,6 @@ from dependency_injector import providers
|
||||||
|
|
||||||
class PositionalInjectionTests(unittest.TestCase):
|
class PositionalInjectionTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_init_with_kwargs(self):
|
|
||||||
injections.PositionalInjection(value=1)
|
|
||||||
|
|
||||||
def test_isinstance(self):
|
def test_isinstance(self):
|
||||||
injection = injections.PositionalInjection(1)
|
injection = injections.PositionalInjection(1)
|
||||||
self.assertIsInstance(injection, injections.Injection)
|
self.assertIsInstance(injection, injections.Injection)
|
||||||
|
@ -32,9 +29,6 @@ class PositionalInjectionTests(unittest.TestCase):
|
||||||
|
|
||||||
class NamedInjectionTests(unittest.TestCase):
|
class NamedInjectionTests(unittest.TestCase):
|
||||||
|
|
||||||
def test_init_with_kwargs(self):
|
|
||||||
injections.NamedInjection(name='name', value=1)
|
|
||||||
|
|
||||||
def test_isinstance(self):
|
def test_isinstance(self):
|
||||||
injection = injections.NamedInjection('name', 1)
|
injection = injections.NamedInjection('name', 1)
|
||||||
self.assertIsInstance(injection, injections.Injection)
|
self.assertIsInstance(injection, injections.Injection)
|
||||||
|
|
Loading…
Reference in New Issue