Skip to content

Commit 9ad0934

Browse files
committed
test: update boxplot test data structure for consistency
1 parent 2f05eac commit 9ad0934

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

Diff for: tests/core/plot/test_boxplot.py

+25-23
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,49 @@
88

99
@pytest.mark.parametrize("lib", [Library.MATPLOTLIB, Library.SEABORN])
1010
def test_box_plot_data(plot_fixture, lib):
11-
x_level = ["1", "2", "3"] if lib == Library.MATPLOTLIB else ["0", "1", "2"]
11+
# x_level = ["1", "2", "3"] if lib == Library.MATPLOTLIB else ["0", "1", "2"]
1212
expected_maidr_data = {
1313
MaidrKey.TYPE: PlotType.BOX,
1414
MaidrKey.ORIENTATION: "vert",
1515
MaidrKey.TITLE: f"Test {lib.value} box title",
1616
MaidrKey.AXES: {
1717
MaidrKey.X: {
1818
MaidrKey.LABEL: f"Test {lib.value} box x label",
19-
MaidrKey.LEVEL: x_level,
2019
},
2120
MaidrKey.Y: {
2221
MaidrKey.LABEL: f"Test {lib.value} box y label",
2322
},
2423
},
2524
MaidrKey.DATA: [
2625
{
27-
MaidrKey.LOWER_OUTLIER: [],
28-
MaidrKey.MIN: 1.0,
29-
MaidrKey.Q1: 1.5,
30-
MaidrKey.Q2: 2.0,
31-
MaidrKey.Q3: 2.5,
32-
MaidrKey.MAX: 3.0,
33-
MaidrKey.UPPER_OUTLIER: [],
26+
MaidrKey.FILL.value: "0",
27+
MaidrKey.LOWER_OUTLIER.value: [],
28+
MaidrKey.MIN.value: 1.0,
29+
MaidrKey.Q1.value: 1.5,
30+
MaidrKey.Q2.value: 2.0,
31+
MaidrKey.Q3.value: 2.5,
32+
MaidrKey.MAX.value: 3.0,
33+
MaidrKey.UPPER_OUTLIER.value: [],
3434
},
3535
{
36-
MaidrKey.LOWER_OUTLIER: [],
37-
MaidrKey.MIN: 4.0,
38-
MaidrKey.Q1: 4.5,
39-
MaidrKey.Q2: 5.0,
40-
MaidrKey.Q3: 5.5,
41-
MaidrKey.MAX: 6.0,
42-
MaidrKey.UPPER_OUTLIER: [],
36+
MaidrKey.FILL.value: "1",
37+
MaidrKey.LOWER_OUTLIER.value: [],
38+
MaidrKey.MIN.value: 4.0,
39+
MaidrKey.Q1.value: 4.5,
40+
MaidrKey.Q2.value: 5.0,
41+
MaidrKey.Q3.value: 5.5,
42+
MaidrKey.MAX.value: 6.0,
43+
MaidrKey.UPPER_OUTLIER.value: [],
4344
},
4445
{
45-
MaidrKey.LOWER_OUTLIER: [],
46-
MaidrKey.MIN: 7.0,
47-
MaidrKey.Q1: 7.5,
48-
MaidrKey.Q2: 8.0,
49-
MaidrKey.Q3: 8.5,
50-
MaidrKey.MAX: 9.0,
51-
MaidrKey.UPPER_OUTLIER: [],
46+
MaidrKey.FILL.value: "2",
47+
MaidrKey.LOWER_OUTLIER.value: [],
48+
MaidrKey.MIN.value: 7.0,
49+
MaidrKey.Q1.value: 7.5,
50+
MaidrKey.Q2.value: 8.0,
51+
MaidrKey.Q3.value: 8.5,
52+
MaidrKey.MAX.value: 9.0,
53+
MaidrKey.UPPER_OUTLIER.value: [],
5254
},
5355
],
5456
}

0 commit comments

Comments
 (0)