Skip to content

Fixing layout shape line dash validator #3375 #3609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
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