Explorer
/proc/21/root/usr/local/lib/python3.12/dist-packages/qrcode/tests/test_example.py
← Zurück ↓ Download
from unittest import mock

import pytest

from qrcode import run_example

pytest.importorskip("PIL", reason="Requires PIL")


@mock.patch("PIL.Image.Image.show")
def test_example(mock_show):
    run_example()
    mock_show.assert_called_with()