Skip to content

Commit 3404fc8

Browse files
andrewm4894claude
andcommitted
fix: update dashboard test for ApexCharts configuration
Update test_chart_manager_config_and_colors to verify ApexCharts configuration keys instead of Plotly configuration keys after migration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 3347334 commit 3404fc8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/test_dashboard.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,15 @@ def test_format_time_ago_outputs():
4141
def test_chart_manager_config_and_colors():
4242
config = ChartManager.get_chart_config()
4343
expected_keys = [
44-
"displayModeBar",
45-
"displaylogo",
46-
"modeBarButtonsToRemove",
44+
"chart",
45+
"theme",
4746
"responsive",
48-
"scrollZoom",
49-
"staticPlot",
5047
]
5148
for key in expected_keys:
5249
assert key in config
53-
assert config["displaylogo"] is False
50+
assert config["chart"]["type"] == "line"
51+
assert config["chart"]["toolbar"]["show"] is False
52+
assert config["theme"]["mode"] == "light"
5453

5554
light = ChartStyle.get_colors(False)
5655
dark = ChartStyle.get_colors(True)

0 commit comments

Comments
 (0)