Codebase list python-pyqrcode / cff34ff2-7de6-4ac2-8ab0-4b4b7b80953a/main debian / tests / test-example-py3
cff34ff2-7de6-4ac2-8ab0-4b4b7b80953a/main

Tree @cff34ff2-7de6-4ac2-8ab0-4b4b7b80953a/main (Download .tar.gz)

test-example-py3 @cff34ff2-7de6-4ac2-8ab0-4b4b7b80953a/main

e9527eb
 
 
 
 
 
 
 
 
 
#!/usr/bin/env python3

import pyqrcode
import os.path

qr = pyqrcode.create('Unladden swallow')
qr.png('famous-joke.png', scale=5)

if not os.path.exists("famous-joke.png"):
    raise("missing file")