Skip to content
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
762212f
Revert "Revert "Switch to my version of Pychecker""
peternewman Jan 2, 2017
7fb5703
Merge branch 'pychecker' of https://github.com/peternewman/ola into p…
peternewman Jan 2, 2017
5d6848d
Merge branch 'master' into pychecker-partial
peternewman Jan 3, 2017
f1d0e86
Merge branch 'master' of https://github.com/OpenLightingProject/ola i…
peternewman Jan 28, 2017
ce040ea
Merge branch 'pychecker-partial' of https://github.com/peternewman/ol…
peternewman Jan 28, 2017
fac45d0
Merge branch 'master' into pychecker-partial
peternewman Mar 10, 2017
6dc79af
Merge branch 'master' into pychecker-partial
peternewman Mar 18, 2017
62f2ca2
Merge branch 'master' of https://github.com/OpenLightingProject/ola i…
peternewman Mar 18, 2017
75d547f
Fix some test name SPaG
peternewman Jan 29, 2017
67b91a4
Standardise more test names
peternewman Jan 29, 2017
47e49ab
Add more missing tests
peternewman Jan 30, 2017
f9da521
Merge branch 'pychecker-partial' of https://github.com/peternewman/ol…
peternewman Mar 18, 2017
58d8a52
Revert "Revert "Revert "Switch to my version of Pychecker"""
peternewman Mar 18, 2017
969dffd
Merge branch 'master' into pychecker-partial
peternewman Mar 21, 2017
493d362
Merge branch 'master' into pychecker-partial
peternewman Jun 16, 2017
efbdb8e
Merge branch 'master' into pychecker-partial
peternewman Jun 23, 2017
a076e9a
Merge branch 'master' into pychecker-partial
peternewman Jun 26, 2017
77e55e9
Merge branch 'master' into pychecker-partial
peternewman Jun 27, 2017
4b5db8d
Merge branch 'master' into pychecker-partial
peternewman Jul 2, 2017
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
66 changes: 51 additions & 15 deletions tools/rdm/TestDefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1655,6 +1655,18 @@ def Test(self):
self.SendSet(ROOT_DEVICE, self.pid, ['zz'])


class SetLanguageWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
"""Set LANGUAGE command with no data."""
PID = 'LANGUAGE'


class SetLanguageWithExtraData(TestMixins.SetWithDataMixin,
OptionalParameterTestFixture):
"""Send a SET LANGUAGE command with extra data."""
PID = 'LANGUAGE'


class AllSubDevicesGetLanguage(TestMixins.AllSubDevicesGetMixin,
OptionalParameterTestFixture):
"""Send a Get LANGUAGE to ALL_SUB_DEVICES."""
Expand Down Expand Up @@ -4397,7 +4409,7 @@ def VerifyResult(self, response, fields):
self.SetProperty('dmx_fail_settings', fields)


class GetFailUpModeWithData(TestMixins.GetWithDataMixin,
class GetDMXFailModeWithData(TestMixins.GetWithDataMixin,
OptionalParameterTestFixture):
"""GET DMX_FAIL_MODE with extra data."""
PID = 'DMX_FAIL_MODE'
Expand Down Expand Up @@ -4636,12 +4648,18 @@ def GetFailMode(self):
self.SendGet(ROOT_DEVICE, self.pid)


class SetFailModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
class SetDMXFailModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
"""Set DMX_FAIL_MODE with no data."""
PID = 'DMX_FAIL_MODE'


class SetDMXFailModeWithExtraData(TestMixins.SetWithDataMixin,
OptionalParameterTestFixture):
"""Send a SET DMX_FAIL_MODE command with extra data."""
PID = 'DMX_FAIL_MODE'


class AllSubDevicesGetDMXFailMode(TestMixins.AllSubDevicesGetMixin,
OptionalParameterTestFixture):
"""Get DMX_FAIL_MODE addressed to ALL_SUB_DEVICES."""
Expand All @@ -4666,8 +4684,8 @@ def VerifyResult(self, response, fields):
self.SetProperty('dmx_startup_settings', fields)


class GetStartUpModeWithData(TestMixins.GetWithDataMixin,
OptionalParameterTestFixture):
class GetDMXStartupModeWithData(TestMixins.GetWithDataMixin,
OptionalParameterTestFixture):
"""Get DMX_STARTUP_MODE with extra data."""
PID = 'DMX_STARTUP_MODE'

Expand Down Expand Up @@ -4906,12 +4924,18 @@ def GetStartupMode(self):
self.SendGet(ROOT_DEVICE, self.pid)


class SetStartupModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
class SetDMXStartupModeWithNoData(TestMixins.SetWithNoDataMixin,
OptionalParameterTestFixture):
"""Set DMX_STARTUP_MODE with no data."""
PID = 'DMX_STARTUP_MODE'


class SetDMXStartupModeWithExtraData(TestMixins.SetWithDataMixin,
OptionalParameterTestFixture):
"""Send a SET DMX_STARTUP_MODE command with extra data."""
PID = 'DMX_STARTUP_MODE'


class AllSubDevicesGetDMXStartupMode(TestMixins.AllSubDevicesGetMixin,
OptionalParameterTestFixture):
"""Get DMX_STARTUP_MODE addressed to ALL_SUB_DEVICES."""
Expand Down Expand Up @@ -5087,6 +5111,12 @@ class SetLockStateDescription(TestMixins.UnsupportedSetMixin,
PID = 'LOCK_STATE_DESCRIPTION'


class SetLockStateDescriptionWithData(TestMixins.UnsupportedSetWithDataMixin,
OptionalParameterTestFixture):
"""Attempt to SET LOCK_STATE_DESCRIPTION with data."""
PID = 'LOCK_STATE_DESCRIPTION'


class AllSubDevicesGetLockStateDescription(TestMixins.AllSubDevicesGetMixin,
OptionalParameterTestFixture):
"""Get LOCK_STATE_DESCRIPTION addressed to ALL_SUB_DEVICES."""
Expand Down Expand Up @@ -5126,6 +5156,12 @@ class SetLockPinWithNoData(TestMixins.SetWithNoDataMixin,
PID = 'LOCK_PIN'


class SetLockPinWithExtraData(TestMixins.SetWithDataMixin,
OptionalParameterTestFixture):
"""Send a SET LOCK_PIN command with extra data."""
PID = 'LOCK_PIN'


class SetLockPin(OptionalParameterTestFixture):
"""Set LOCK_PIN."""
CATEGORY = TestCategory.CONFIGURATION
Expand Down Expand Up @@ -5419,26 +5455,26 @@ def VerifyResult(self, response, fields):
self.SetProperty('set_minimum_level_supported', response.WasAcked())


class SetLowerIncreasingMiniumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
class SetLowerIncreasingMinimumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
"""Set MINIMUM_LEVEL to the smallest value from DIMMER_INFO."""
REQUIRES = TestMixins.SetMinimumLevelMixin.REQUIRES + ['minimum_level_lower']

def MinLevelIncreasing(self):
return self.Property('minimum_level_lower')


class SetUpperIncreasingMiniumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
class SetUpperIncreasingMinimumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
"""Set MINIMUM_LEVEL to the largest value from DIMMER_INFO."""
REQUIRES = TestMixins.SetMinimumLevelMixin.REQUIRES + ['minimum_level_upper']

def MinLevelIncreasing(self):
return self.Property('minimum_level_upper')


class SetOutOfRangeLowerIncreasingMiniumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
class SetOutOfRangeLowerIncreasingMinimumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
"""Set MINIMUM_LEVEL to one less than the smallest value from DIMMER_INFO."""
REQUIRES = TestMixins.SetMinimumLevelMixin.REQUIRES + ['minimum_level_lower']

Expand All @@ -5456,8 +5492,8 @@ def MinLevelIncreasing(self):
return self.lower - 1


class SetOutOfRangeUpperIncreasingMiniumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
class SetOutOfRangeUpperIncreasingMinimumLevel(TestMixins.SetMinimumLevelMixin,
OptionalParameterTestFixture):
"""Set MINIMUM_LEVEL to one more than the largest value from DIMMER_INFO."""
REQUIRES = TestMixins.SetMinimumLevelMixin.REQUIRES + ['minimum_level_upper']

Expand Down