Change annotation color to simple rgb tuple
Some checks failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/static_analysis Pipeline was successful

This commit is contained in:
Marty Oehme 2023-08-29 22:23:52 +02:00
parent 256117d451
commit 20873e6ef8
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
3 changed files with 14 additions and 8 deletions

View file

@ -27,7 +27,7 @@ def test_formatting(fmt_string, expected):
def test_colorname_matches_exact():
sut = Annotation(
"testfile", colors={"stroke": (1.0,0.0,0.0)}, minimum_similarity_color=1.0
"testfile", colors=(1.0,0.0,0.0), minimum_similarity_color=1.0
)
c_name = sut.colorname
assert c_name == "red"
@ -45,7 +45,7 @@ def test_colorname_matches_exact():
)
def test_matches_inexact_colorname(color_value):
sut = Annotation(
"testfile", colors={"stroke": color_value}, minimum_similarity_color=0.833
"testfile", colors=color_value, minimum_similarity_color=0.833
)
c_name = sut.colorname
assert c_name == "red"