Another attempt at fixing unit test (#6096)

This commit is contained in:
Oliver authored and GitHub committed 2023-12-15 21:37:00 +11:00
1 parent 2c45d88d15
commit ad97ea41a0
1 file changed
+7 -1
+7 -1
View File
@@ -90,7 +90,13 @@ class TransitionTests(InvenTreeTestCase):
class ValidImplementation(TransitionMethod):
def transition(self, *args, **kwargs):
return 1234
global raise_function
if raise_function:
return 1234
else:
return False
storage.collect()
self.assertIn(ValidImplementationNoEffect, storage.list)