File tree Expand file tree Collapse file tree 4 files changed +31
-2
lines changed
Expand file tree Collapse file tree 4 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 11[metadata]
22name = rmqrcode
3- version = 0.0.6
3+ version = 0.0.7
44author = Takahiro Tomita
5566description = An rMQR Code Generetor
@@ -16,9 +16,13 @@ classifiers =
1616package_dir =
1717 = src
1818packages = find:
19- python_requires = >=3.6
19+ python_requires = >=3.7
2020install_requires =
2121 Pillow
2222
23+ [options.extras_require]
24+ dev =
25+ pytest
26+
2327[options.packages.find]
2428where = src
Original file line number Diff line number Diff line change 11from .rmqrcode import rMQR
22from .rmqrcode import FitStrategy
33from .rmqrcode import DataTooLongError
4+ from .rmqrcode import IllegalVersionError
45from .qr_image import QRImage
56from .format .error_correction_level import ErrorCorrectionLevel
File renamed without changes.
Original file line number Diff line number Diff line change 1+ from rmqrcode import rMQR
2+ from rmqrcode import ErrorCorrectionLevel
3+ from rmqrcode import DataTooLongError
4+ from rmqrcode import IllegalVersionError
5+
6+ import pytest
7+
8+
9+ class TestRMQR :
10+ def test_fit (self ):
11+ qr = rMQR .fit ("abc" )
12+
13+ def test_make (self ):
14+ qr = rMQR ('R13x99' , ErrorCorrectionLevel .M )
15+ qr .make ("abc" )
16+
17+ def test_raise_too_long_error (self ):
18+ with pytest .raises (DataTooLongError ) as e :
19+ s = "a" .ljust (200 , "a" )
20+ rMQR .fit (s )
21+
22+ def test_raise_invalid_version_error (self ):
23+ with pytest .raises (IllegalVersionError ) as e :
24+ qr = rMQR ("not exists" , ErrorCorrectionLevel .M )
You can’t perform that action at this time.
0 commit comments