Skip to content

Commit

Permalink
Add test case if using px.colors.sequential.* directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tpvasconcelos committed Oct 18, 2024
1 parent f100a4a commit 86f8917
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from typing import TYPE_CHECKING

import plotly.express as px
import pytest

if TYPE_CHECKING:
Expand Down Expand Up @@ -40,6 +41,8 @@ def viridis_colorscale() -> ColorScale:
tuple([((0, "red"), (1, "green"))] * 2),
# List of tuples
tuple([[(0, "red"), (0.5, "blue"), (1, "green")]] * 2),
# Use Plotly colorscales directly
(px.colors.sequential.Viridis, VIRIDIS),
]


Expand Down

0 comments on commit 86f8917

Please sign in to comment.