| 272 | |
| 273 | @pytest.fixture |
| 274 | def tables_fixture( |
| 275 | self, stream_, name_table_, head_table_, _iter_table_records_, _TableFactory_ |
| 276 | ): |
| 277 | font = _Font(stream_) |
| 278 | _iter_table_records_.return_value = iter([("name", 11, 22), ("head", 33, 44)]) |
| 279 | _TableFactory_.side_effect = [name_table_, head_table_] |
| 280 | |
| 281 | expected_calls = [call("name", stream_, 11, 22), call("head", stream_, 33, 44)] |
| 282 | expected_tables = {"name": name_table_, "head": head_table_} |
| 283 | return font, _TableFactory_, expected_calls, expected_tables |
| 284 | |
| 285 | @pytest.fixture |
| 286 | def table_count_fixture(self, _fields_): |