MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / test_render_pil

Function test_render_pil

qrcode/tests/test_qrcode_pil.py:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def test_render_pil():
17 qr = qrcode.QRCode()
18 qr.add_data(UNICODE_TEXT)
19 img = qr.make_image()
20 img.save(io.BytesIO())
21 assert isinstance(img.get_image(), Image.Image)
22
23
24@pytest.mark.parametrize("back_color", ["TransParent", "red", (255, 195, 235)])

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