[TM-218] integrational testing engine confusing behavior
Description
Let's consider such a test:
originate …
transferA
transferB
validate $ Left …
transferC
validate …
Let's assume that originate and transferA
succeed and transferB
fails according to what the first validator expects. Then it seems natural that transferC
will see effects of originate and tranferB
, but it won't. All operations between to validators are batched and either all or none of them are applied. It looks somewhat confusing. This MR refactors integrational testing engine a little so it interprets operators as they added.
Related issue(s)
https://issues.serokell.io/issue/TM-218
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Anton Myasnikov