Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import warnings


def setup_package():
warnings.filterwarnings("ignore")
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

from __future__ import absolute_import

from unittest import TestCase
import plotly.graph_objs as go


class TestValidators(TestCase):
def test_layout_shape_line_dash_validator(self):
# regression from issue #3375
go.layout.shape.Line(color='black', width=2, dash='5px,3px,3px,2px')
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _plotly_utils.basevalidators


class DashValidator(_plotly_utils.basevalidators.StringValidator):
class DashValidator(_plotly_utils.basevalidators.DashValidator):
def __init__(self, plotly_name="dash", parent_name="layout.shape.line", **kwargs):
super(DashValidator, self).__init__(
plotly_name=plotly_name,
Expand Down