papis-extract/tests/test_annotation.py
Marty Oehme b5208b966a
Some checks failed
ci/woodpecker/push/test Pipeline is pending
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/static_analysis Pipeline failed
Add pytest CI
2023-08-29 10:42:15 +02:00

6 lines
205 B
Python

from papis_extract.annotation_data import Annotation
def test_colorname_exact():
sut = Annotation("testfile", colors={"stroke": (1.0, 0.0, 0.0)})
c_name = sut.colorname
assert c_name == "red"