

@skip(('adding this for now so test_file_tools pass, more info' + 'https://github.com/plotly/python-api/issues/262'))
def test_duplicate_filenames():
    c1 = Column([1, 2, 3, 4], 'first column')
    g = Grid([c1])
    random_chars = [random.choice(string.ascii_uppercase) for _ in range(5)]
    unique_filename = ('Valid Grid ' + ''.join(random_chars))
    py.grid_ops.upload(g, unique_filename, auto_open=False)
    try:
        py.grid_ops.upload(g, unique_filename, auto_open=False)
    except PlotlyRequestError as e:
        assert (e.status_code == 409)

dataset/ETHPy150Open plotly/plotly.py/plotly/tests/test_core/test_grid/test_grid.py test_duplicate_filenames/original