MCPcopy Create free account
hub / github.com/lincolnloop/python-qrcode / test_render_pypng

Function test_render_pypng

qrcode/tests/test_qrcode_pypng.py:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_render_pypng():
16 qr = qrcode.QRCode()
17 qr.add_data(UNICODE_TEXT)
18 img = qr.make_image(image_factory=PyPNGImage)
19 assert isinstance(img.get_image(), png.Writer)
20
21 print(img.width, img.box_size, img.border)
22 img.save(io.BytesIO())
23
24
25def test_render_pypng_to_str():

Callers

nothing calls this directly

Calls 4

add_dataMethod · 0.95
make_imageMethod · 0.95
get_imageMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected