Skip to content

Commit 83942eb

Browse files
committed
Andrews comments
1 parent 4cb6a8d commit 83942eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plotly/tests/test_optional/test_grid/test_grid.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
import pandas as pd
1616

1717

18-
class Test_Dataframe_to_Grid(TestCase):
18+
class TestDataframeToGrid(TestCase):
1919

2020
# Test duplicate columns
2121
def test_duplicate_columns(self):
22-
df = pd.DataFrame([[1, 'a'],
23-
[2, 'b']], columns=['col_1', 'col_1'])
22+
df = pd.DataFrame([[1, 'a'], [2, 'b']],
23+
columns=['col_1', 'col_1'])
2424

25-
NON_UNIQUE_COLUMN_MESSAGE = (
25+
expected_message = (
2626
"Yikes, plotly grids currently "
2727
"can't have duplicate column names. Rename "
2828
"the column \"{}\" and try again.".format('col_1')
2929
)
3030

31-
with self.assertRaisesRegexp(InputError, NON_UNIQUE_COLUMN_MESSAGE):
31+
with self.assertRaisesRegexp(InputError, expected_message):
3232
Grid(df)

0 commit comments

Comments
 (0)