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

Function test_render_pil_background

qrcode/tests/test_qrcode_pil.py:25–29  ·  view source on GitHub ↗
(back_color)

Source from the content-addressed store, hash-verified

23
24@pytest.mark.parametrize("back_color", ["TransParent", "red", (255, 195, 235)])
25def test_render_pil_background(back_color):
26 qr = qrcode.QRCode()
27 qr.add_data(UNICODE_TEXT)
28 img = qr.make_image(back_color="TransParent")
29 img.save(io.BytesIO())
30
31
32def test_render_pil_with_rgb_color_tuples():

Callers

nothing calls this directly

Calls 3

add_dataMethod · 0.95
make_imageMethod · 0.95
saveMethod · 0.45

Tested by

no test coverage detected