Skip to content

Commit d8ea605

Browse files
committed
test: move color conversion tests to tests/test_plotly_utils/
Address review: _plotly_utils tests live under tests/test_plotly_utils/, so move the file to tests/test_plotly_utils/colors/ and add the package __init__.py to match the sibling validators/ directory. Also drop the unused pytest import and the __main__ runner block.
1 parent 196a1ae commit d8ea605

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

tests/test_plotly_utils/colors/__init__.py

Whitespace-only changes.

tests/test_core/test_colors/test_color_conversions.py renamed to tests/test_plotly_utils/colors/test_color_conversions.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import pytest
2-
31
from _plotly_utils.colors import (
42
find_intermediate_color,
53
hex_to_rgb,
@@ -43,7 +41,3 @@ def test_find_intermediate_color_rgb_colortype():
4341
"rgb(0, 0, 0)", "rgb(10, 20, 30)", 0.5, colortype="rgb"
4442
)
4543
assert result == "rgb(5.0, 10.0, 15.0)"
46-
47-
48-
if __name__ == "__main__":
49-
raise SystemExit(pytest.main([__file__, "-v"]))

0 commit comments

Comments
 (0)