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

Function test_saving_svg_to_byteio

tests/test_writers.py:38–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_saving_svg_to_byteio() -> None:
39 rv = BytesIO()
40 EAN13(str(100000902922), writer=SVGWriter()).write(rv)
41
42 with open(f"{TESTPATH}/somefile.svg", "wb") as f:
43 EAN13("100000011111", writer=SVGWriter()).write(f)
44
45
46def test_saving_svg_to_byteio_with_guardbar() -> None:

Callers

nothing calls this directly

Calls 2

SVGWriterClass · 0.90
writeMethod · 0.45

Tested by

no test coverage detected