MCPcopy Create free account
hub / github.com/WhyNotHugo/python-barcode / test_generate_with_file_and_writer

Function test_generate_with_file_and_writer

tests/test_init.py:35–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def test_generate_with_file_and_writer() -> None:
36 with open(os.path.join(TESTPATH, "generate_with_file_and_writer.jpeg"), "wb") as f:
37 barcode.generate("ean13", "123455559121112", output=f, writer=SVGWriter())
38
39
40def test_generate_with_bytesio() -> None:

Callers

nothing calls this directly

Calls 1

SVGWriterClass · 0.90

Tested by

no test coverage detected