1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

small fix

This commit is contained in:
Adolfo Gómez García 2024-01-28 13:48:48 +01:00
parent cf34718cf4
commit bd8562a58e
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -87,3 +87,6 @@ class FactoryTest(UDSTestCase):
with mock.patch.object(factory.logger, 'debug') as mock_debug:
test_factory.register('first', Subclass1)
mock_debug.assert_called_once()
# As singleton, another instance should be the same
self.assertEqual(test_factory, factory.Factory[FactoryObject]())