Skip to content

Commit cc0599b

Browse files
jbamptonchriddyp
authored andcommitted
Remove duplicate key/value pair from Python dictionary. (#256)
Minor indentation fixes. Remove unneeded parens. Remove unused variable i.
1 parent 1f27bac commit cc0599b

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

tests/development/test_base_component.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,11 @@ def test_to_plotly_json_with_wildcards(self):
427427
c.to_plotly_json(),
428428
{'namespace': 'basic',
429429
'props': {
430-
'aria-expanded': 'true',
431-
'data-toggle': 'toggled',
432-
'data-none': None,
433-
'id': 'a',
434-
},
430+
'aria-expanded': 'true',
431+
'data-toggle': 'toggled',
432+
'data-none': None,
433+
'id': 'a',
434+
},
435435
'type': 'MyComponent'}
436436
)
437437

@@ -669,7 +669,7 @@ def test_repr_nested_arguments(self):
669669

670670
def test_repr_with_wildcards(self):
671671
c = self.ComponentClass(id='1', **{"data-one": "one",
672-
"aria-two": "two"})
672+
"aria-two": "two"})
673673
data_first = "Table(id='1', data-one='one', aria-two='two')"
674674
aria_first = "Table(id='1', aria-two='two', data-one='one')"
675675
repr_string = repr(c)
@@ -1036,4 +1036,4 @@ def assert_flow_docstring(assertEqual, docstring):
10361036
"",
10371037
"Available events: "
10381038
])[i]
1039-
)
1039+
)

tests/development/test_component_loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ def test_loadcomponents(self):
133133
'baz': 'Lemons',
134134
'data-foo': 'Blah',
135135
'aria-bar': 'Seven',
136-
'baz': 'Lemons',
137136
'children': 'Child'
138137
}
139138
AKwargs = {

tests/test_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ def test_wildcard_data_attributes(self):
209209
'id="inner-element"',
210210
'data-string="multiple words"',
211211
'data-number="512"',
212-
'data-date="%s"' % (test_date),
212+
'data-date="%s"' % test_date,
213213
'aria-progress="5"'
214214
], 5)
215215
passed = False
216-
for i, permutation in enumerate(permutations):
216+
for permutation in permutations:
217217
actual_cleaned = re.sub(comment_regex, '',
218218
div.get_attribute('innerHTML'))
219219
expected_cleaned = re.sub(

0 commit comments

Comments
 (0)