Add pytest CI
This commit is contained in:
parent
c9a6030591
commit
b5208b966a
5 changed files with 97 additions and 3 deletions
6
tests/test_annotation.py
Normal file
6
tests/test_annotation.py
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue