Files
Hotel-Booking/Backend/venv/lib/python3.12/site-packages/qrcode/tests/test_example.py
Iliyan Angelov 34b4c969d4 updates
2025-11-19 12:27:01 +02: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()