| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 43 | def test_adapter(test_objects): |
||
| 44 | # subscribe adapter to broadcaster |
||
| 45 | test_objects.broadcaster.subject.attach(test_objects.adapter) |
||
| 46 | |||
| 47 | # select a loop function (from test implementations) |
||
| 48 | |||
| 49 | # iterate |
||
| 50 | iterations = test_objects.broadcaster.iterate() |
||
| 51 | |||
| 52 | # assert iterations completed are the expected nb of oiterations |
||
| 53 | assert iterations == 4 |
||
| 54 |