Skip to content
New issue

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

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

Already on GitHub? # to your account

Pylint pep8 fixes #186

Merged
merged 2 commits into from
Jan 4, 2018
Merged
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
110 changes: 55 additions & 55 deletions tests/development/test_base_component.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from collections import OrderedDict
import collections
import inspect
import json
import unittest
import collections
import os
import unittest
import plotly

from dash.development.base_component import (
Expand Down Expand Up @@ -164,60 +164,60 @@ def test_to_plotly_json_with_nested_children_with_mixed_strings_and_without_list
Component._type

self.assertEqual(json.loads(json.dumps(
c.to_plotly_json(),
cls=plotly.utils.PlotlyJSONEncoder
c.to_plotly_json(),
cls=plotly.utils.PlotlyJSONEncoder
)), {
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': [
{
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'id': '0.0'
}
},
{
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': {
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': {
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': [
10,
None,
'wrap string',
{
'type': 'TestComponent',
'namespace': 'test_namespace', # noqa: E501
'props': {
'children': 'string',
'id': '0.1.x.x.0'
}
},
'another string',
4.51
],
'id': '0.1.x.x'
}
},
'id': '0.1.x'
}
},
'id': '0.1'
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': [
{
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'id': '0.0'
}
},
{
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': {
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': {
'type': 'TestComponent',
'namespace': 'test_namespace',
'props': {
'children': [
10,
None,
'wrap string',
{
'type': 'TestComponent',
'namespace': 'test_namespace', # noqa: E501
'props': {
'children': 'string',
'id': '0.1.x.x.0'
}
},
'another string',
4.51
],
'id': '0.1.x.x'
}
},
'id': '0.1.x'
}
},
'id': '0.1'
}
}
}
],
'id': '0'
}
})
],
'id': '0'
}
})

def test_get_item_raises_key_if_id_doesnt_exist(self):
c = Component()
Expand Down Expand Up @@ -754,4 +754,4 @@ def assert_docstring(assertEqual, docstring):
"Available events: 'restyle', 'relayout', 'click'",
' '
])[i]
)
)
2 changes: 1 addition & 1 deletion tests/test_react.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import unittest
import json
import pkgutil
import dash
import plotly
import dash_core_components as dcc
from dash_html_components import Div
import dash_renderer
import dash

from dash.dependencies import Event, Input, Output, State
from dash import exceptions
Expand Down