MCPcopy Index your code
hub / github.com/WhyNotHugo/python-barcode / gather_image_elements_into_html

Function gather_image_elements_into_html

tests/test_manually.py:94–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93@pytest.fixture(scope="module")
94def 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.")

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected