Add pytest CI
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/static_analysis Pipeline failed
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
Marty Oehme 2023-08-29 10:40:40 +02:00
parent c9a6030591
commit 13f79d9967
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
4 changed files with 39 additions and 2 deletions

6
tests/test_annotation.py Normal file
View file

@ -0,0 +1,6 @@
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"