Skip to content

Commit ca9d37a

Browse files
committed
fix tests
1 parent a2b0ca0 commit ca9d37a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plotly/figure_factory/_bullet.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,13 @@ def create_bullet(data, markers=None, measures=None, ranges=None,
264264
if is_sequence(data):
265265
if not all(isinstance(item, dict) for item in data):
266266
raise exceptions.PlotlyError(
267-
'Every entry of the data argument (list, tuple, etc) must '
267+
'Every entry of the data argument list, tuple, etc must '
268268
'be a dictionary.'
269269
)
270270

271271
elif not isinstance(data, pd.DataFrame):
272272
raise exceptions.PlotlyError(
273-
'You must input a pandas DataFrame, or a list or tuple of '
274-
'dictionaries.'
273+
'You must input a pandas DataFrame, or a list of dictionaries.'
275274
)
276275

277276
# make DataFrame from data with correct column headers

plotly/tests/test_optional/test_figure_factory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2202,7 +2202,7 @@ def test_df_as_list(self):
22022202
def test_not_df_or_list(self):
22032203
df = 'foo'
22042204

2205-
pattern = ('You must input a pandas DataFrame or a list of dictionaries.')
2205+
pattern = ('You must input a pandas DataFrame, or a list of dictionaries.')
22062206
self.assertRaisesRegexp(PlotlyError, pattern, ff.create_bullet, df)
22072207

22082208
def test_valid_color_lists_of_2_rgb_colors(self):

0 commit comments

Comments
 (0)