Skip to content

Commit 9b9b578

Browse files
committed
remove json file and fixed test
1 parent 79c67c7 commit 9b9b578

File tree

2 files changed

+39
-8
lines changed

2 files changed

+39
-8
lines changed

plotly/tests/test_optional/BulletData.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

plotly/tests/test_optional/test_figure_factory.py

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,45 @@ def test_valid_color_lists_of_2_rgb_colors(self):
22232223
)
22242224

22252225
def test_full_bullet(self):
2226-
df = pd.read_json('BulletData.json')
2226+
data = [
2227+
{
2228+
"title": "Revenue",
2229+
"subtitle": "US$, in thousands",
2230+
"ranges": [150, 225, 300],
2231+
"measures":[220, 270],
2232+
"markers":[250]
2233+
},
2234+
{
2235+
"title": "Profit",
2236+
"subtitle": "%",
2237+
"ranges": [20, 25, 30],
2238+
"measures": [21, 23],
2239+
"markers": [26]
2240+
},
2241+
{
2242+
"title": "Order Size",
2243+
"subtitle": "US$, average",
2244+
"ranges": [350, 500, 600],
2245+
"measures": [100, 320],
2246+
"markers": [550]
2247+
},
2248+
{
2249+
"title": "New Customers",
2250+
"subtitle": "count",
2251+
"ranges": [1400, 2000, 2500],
2252+
"measures":[1000, 1650],
2253+
"markers": [2100]
2254+
},
2255+
{
2256+
"title": "Satisfaction",
2257+
"subtitle": "out of 5",
2258+
"ranges": [3.5, 4.25, 5],
2259+
"measures": [3.2, 4.7],
2260+
"markers": [4.4]
2261+
}
2262+
]
2263+
2264+
df = pd.DataFrame(data)
22272265

22282266
measure_colors = ['rgb(255, 127, 14)', 'rgb(44, 160, 44)']
22292267
range_colors = ['rgb(255, 127, 14)', 'rgb(44, 160, 44)']

0 commit comments

Comments
 (0)