mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 10:21:18 +00:00
Another attempt at fixing unit test (#6096)
This commit is contained in:
1 parent
2c45d88d15
commit
ad97ea41a0
1 file changed
+7
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user