mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-04-15 06:32:10 +03:00
Fix repr() test
This commit is contained in:
parent
91585e5b8f
commit
c99b20c07b
|
@ -141,12 +141,10 @@ class SelectorTests(unittest.TestCase):
|
|||
two=providers.Object(2),
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
self.assertIn(
|
||||
'<dependency_injector.providers.Selector({0}'.format(repr(self.selector)),
|
||||
repr(provider),
|
||||
'<dependency_injector.providers.Selector({0}, one={1}, two={2}) at {3}>'.format(
|
||||
repr(self.selector),
|
||||
repr(provider.one),
|
||||
repr(provider.two),
|
||||
hex(id(provider)),
|
||||
),
|
||||
)
|
||||
self.assertIn('one={0}'.format(repr(provider.one)), repr(provider))
|
||||
self.assertIn('two={0}'.format(repr(provider.two)), repr(provider))
|
||||
self.assertIn('at {0}'.format(hex(id(provider))), repr(provider))
|
||||
|
|
Loading…
Reference in New Issue
Block a user