papis-extract/tests/test_annotation.py
Marty Oehme 13f79d9967
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/static_analysis Pipeline failed
ci/woodpecker/push/test Pipeline failed
Add pytest CI
2023-08-29 10:40:40 +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"