Skip to content

Commit eb07fc2

Browse files
committed
Fix more flake8 issues
1 parent 66b6ccc commit eb07fc2

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

tools/rdm/TestDefinitions.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,14 +2472,14 @@ def VerifyResult(self, response, fields):
24722472
for slot in fields['slots']:
24732473
if slot['slot_offset'] > TestMixins.MAX_DMX_ADDRESS:
24742474
self.AddWarning(
2475-
"SLOT_INFO slot %d has an offset more than %d"
2476-
% (slot['slot_offset'], TestMixins.MAX_DMX_ADDRESS))
2475+
"SLOT_INFO slot %d has an offset more than %d"
2476+
% (slot['slot_offset'], TestMixins.MAX_DMX_ADDRESS))
24772477
# footprint is 1 based, offset is 0 based
24782478
if slot['slot_offset'] >= self.Property('dmx_footprint'):
24792479
self.AddWarning(
2480-
"SLOT_INFO slot %d has an offset greater than or equal to the "
2481-
"personality's defined footprint (%d)"
2482-
% (slot['slot_offset'], self.Property('dmx_footprint')))
2480+
"SLOT_INFO slot %d has an offset greater than or equal to the "
2481+
"personality's defined footprint (%d)"
2482+
% (slot['slot_offset'], self.Property('dmx_footprint')))
24832483
if slot['slot_type'] not in RDMConstants.SLOT_TYPE_TO_NAME:
24842484
self.AddWarning('Unknown slot type %d for slot %d' %
24852485
(slot['slot_type'], slot['slot_offset']))
@@ -2511,7 +2511,8 @@ def VerifyResult(self, response, fields):
25112511
if primary_slot is None:
25122512
self.SetBroken('Failed to find primary slot for %d (%d)'
25132513
% (slot['slot_offset'], slot['slot_label_id']))
2514-
elif primary_slot['slot_type'] != RDMConstants.SLOT_TYPES['ST_PRIMARY']:
2514+
elif (primary_slot['slot_type'] !=
2515+
RDMConstants.SLOT_TYPES['ST_PRIMARY']):
25152516
self.AddWarning(
25162517
"Slot %d is of type secondary and references slot %d which "
25172518
"isn't a primary slot"
@@ -2711,29 +2712,29 @@ def VerifyResult(self, response, fields):
27112712
for slot in fields['slot_values']:
27122713
if slot['slot_offset'] > TestMixins.MAX_DMX_ADDRESS:
27132714
self.AddWarning(
2714-
"DEFAULT_SLOT_VALUE slot %d has an offset more than %d"
2715-
% (slot['slot_offset'], TestMixins.MAX_DMX_ADDRESS))
2715+
"DEFAULT_SLOT_VALUE slot %d has an offset more than %d"
2716+
% (slot['slot_offset'], TestMixins.MAX_DMX_ADDRESS))
27162717
# footprint is 1 based, offset is 0 based
27172718
if slot['slot_offset'] >= self.Property('dmx_footprint'):
27182719
self.AddWarning(
2719-
"SLOT_INFO slot %d has an offset greater than or equal to the "
2720-
"personality's defined footprint (%d)"
2721-
% (slot['slot_offset'], self.Property('dmx_footprint')))
2720+
"SLOT_INFO slot %d has an offset greater than or equal to the "
2721+
"personality's defined footprint (%d)"
2722+
% (slot['slot_offset'], self.Property('dmx_footprint')))
27222723
if slot['slot_offset'] in default_slots:
27232724
self.AddWarning(
2724-
"DEFAULT_SLOT_VALUE contained slot %d more than once" %
2725-
slot['slot_offset'])
2725+
"DEFAULT_SLOT_VALUE contained slot %d more than once" %
2726+
slot['slot_offset'])
27262727
if slot['slot_offset'] not in defined_slots:
27272728
self.AddWarning(
2728-
"DEFAULT_SLOT_VALUE contained slot %d, which wasn't in SLOT_INFO" %
2729-
slot['slot_offset'])
2729+
"DEFAULT_SLOT_VALUE contained slot %d, which wasn't in SLOT_INFO" %
2730+
slot['slot_offset'])
27302731
default_slots.add(slot['slot_offset'])
27312732

27322733
for slot_offset in defined_slots:
27332734
if slot_offset not in default_slots:
27342735
self.AddAdvisory(
2735-
"SLOT_INFO contained slot %d, which wasn't in DEFAULT_SLOT_VALUE" %
2736-
slot_offset)
2736+
"SLOT_INFO contained slot %d, which wasn't in DEFAULT_SLOT_VALUE" %
2737+
slot_offset)
27372738

27382739

27392740
class GetDefaultSlotValueWithData(TestMixins.GetWithDataMixin,

0 commit comments

Comments
 (0)