updates
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user