Codebase list python-pyqrcode / e9527eb
add autopkgtests Sascha Steinbiss 6 years ago
3 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Tests: test-example-py2
1 Depends: python-png, python-pyqrcode
2
3 Tests: test-example-py3
4 Depends: python3-png, python3-pyqrcode
5
6
0 #!/usr/bin/env python2
1
2 import pyqrcode
3 import os.path
4
5 qr = pyqrcode.create('Unladden swallow')
6 qr.png('famous-joke.png', scale=5)
7
8 if not os.path.exists("famous-joke.png"):
9 raise("missing file")
0 #!/usr/bin/env python3
1
2 import pyqrcode
3 import os.path
4
5 qr = pyqrcode.create('Unladden swallow')
6 qr.png('famous-joke.png', scale=5)
7
8 if not os.path.exists("famous-joke.png"):
9 raise("missing file")