mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Another attempt at fixing unit test (#6096)
This commit is contained in:
parent
2c45d88d15
commit
ad97ea41a0
@ -90,7 +90,13 @@ class TransitionTests(InvenTreeTestCase):
|
|||||||
|
|
||||||
class ValidImplementation(TransitionMethod):
|
class ValidImplementation(TransitionMethod):
|
||||||
def transition(self, *args, **kwargs):
|
def transition(self, *args, **kwargs):
|
||||||
|
|
||||||
|
global raise_function
|
||||||
|
|
||||||
|
if raise_function:
|
||||||
return 1234
|
return 1234
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
storage.collect()
|
storage.collect()
|
||||||
self.assertIn(ValidImplementationNoEffect, storage.list)
|
self.assertIn(ValidImplementationNoEffect, storage.list)
|
||||||
|
Loading…
Reference in New Issue
Block a user