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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)