Skip to content

Commit

Permalink
Fix indentation. Fix Imports from package collections are not grouped…
Browse files Browse the repository at this point in the history
… (ungrouped-imports).
  • Loading branch information
jbampton authored and chriddyp committed Jan 4, 2018
1 parent 61f47ae commit 6c6ced1
Showing 1 changed file with 55 additions and 55 deletions.
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]
)
)

0 comments on commit 6c6ced1

Please sign in to comment.