1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#
# Copyright (c) 2016 - 2024 -- Lars Heuer
# All rights reserved.
#
# License: BSD License
#
"""\
Tests against issue 34
<https://github.com/heuer/segno/issues/34>
"""
import pytest
import segno
try:
from .tutils import read_matrix
# Attempted relative import in non-package
except (ValueError, SystemError, ImportError):
from tutils import read_matrix
def test_m3_wikipedia():
qr = segno.make('Wikipedia', version='m3')
assert 'M3-L' == qr.designator
ref_matrix = read_matrix('issue-33-m3-l-wikipedia')[0]
assert ref_matrix == qr.matrix
if __name__ == '__main__':
pytest.main([__file__])
|