mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-10 01:17:59 +03:00
small fix
This commit is contained in:
parent
cf34718cf4
commit
bd8562a58e
@ -87,3 +87,6 @@ class FactoryTest(UDSTestCase):
|
|||||||
with mock.patch.object(factory.logger, 'debug') as mock_debug:
|
with mock.patch.object(factory.logger, 'debug') as mock_debug:
|
||||||
test_factory.register('first', Subclass1)
|
test_factory.register('first', Subclass1)
|
||||||
mock_debug.assert_called_once()
|
mock_debug.assert_called_once()
|
||||||
|
|
||||||
|
# As singleton, another instance should be the same
|
||||||
|
self.assertEqual(test_factory, factory.Factory[FactoryObject]())
|
||||||
|
Loading…
Reference in New Issue
Block a user