2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 02:55:41 +00:00

Another attempt at fixing unit test (#6096)

This commit is contained in:
Oliver
2023-12-15 21:37:00 +11:00
committed by GitHub
parent 2c45d88d15
commit ad97ea41a0

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)