oc-develop_oneteam/venv/lib/python3.11/site-packages/qrcode/tests/test_example.py
2024-02-03 21:52:43 -05:00

14 lines
333 B
Python

import unittest
from unittest import mock
from qrcode import run_example
from qrcode.compat.pil import Image
class ExampleTest(unittest.TestCase):
@unittest.skipIf(not Image, "Requires PIL")
@mock.patch("PIL.Image.Image.show")
def runTest(self, mock_show):
run_example()
mock_show.assert_called_with()