Developers can assert parts of a playbook and the continue later on.
(tplaybook)
| 61 | |
| 62 | |
| 63 | def test_partial_assert(tplaybook): |
| 64 | """Developers can assert parts of a playbook and the continue later on.""" |
| 65 | tplaybook >> TEvent() |
| 66 | tplaybook << TCommand() |
| 67 | assert tplaybook |
| 68 | |
| 69 | tplaybook >> TEvent() |
| 70 | tplaybook << TCommand() |
| 71 | assert tplaybook |
| 72 | |
| 73 | assert len(tplaybook.actual) == len(tplaybook.expected) == 4 |
| 74 | |
| 75 | |
| 76 | @pytest.mark.parametrize("typed", [True, False]) |