()
| 92 | |
| 93 | @pytest.fixture(scope="module") |
| 94 | def gather_image_elements_into_html() -> Iterator[list[str]]: |
| 95 | image_elements: list[str] = [] |
| 96 | yield image_elements |
| 97 | |
| 98 | # Save htmlfile with all objects |
| 99 | with codecs.open(HTMLFILE, "w", encoding="utf-8") as f: |
| 100 | obj = "\n".join(image_elements) |
| 101 | f.write(HTML.format(version=version, body=obj)) |
| 102 | |
| 103 | print(f"\nNow open {HTMLFILE} in your browser.") |