Marty Oehme
a4f48bb24e
Added static linting, type checking for each commit as well as pytest testing for each master push. Add linting and static analysis CI Use deprecated pipeline key for server woodpecker version Format black Install poetry environment before pyright Add pytest CI Update dependencies, Fix black Ensure tests run on master branch
7 lines
214 B
Python
7 lines
214 B
Python
from papis_extract.annotation_data import Annotation
|
|
|
|
|
|
def test_matches_colorname_exact():
|
|
sut = Annotation("testfile", colors={"stroke": (1.0, 0.0, 0.0)})
|
|
c_name = sut.colorname
|
|
assert c_name == "red"
|