smoke test found an error that pylint suggested a change on; so reverted the change and disabled warning

This commit is contained in:
Mike Kinney
2021-12-08 15:23:00 -08:00
parent 5f653f266c
commit 4140d20f49
2 changed files with 6 additions and 1 deletions

View File

@@ -163,7 +163,8 @@ def setPref(attributes, name, valStr):
val = fromStr(valStr)
enumType = field.enum_type
if enumType and isinstance(val) == str:
# pylint: disable=C0123
if enumType and type(val) == str:
# We've failed so far to convert this string into an enum, try to find it by reflection
e = enumType.values_by_name.get(val)
if e:

View File

@@ -373,6 +373,8 @@ def test_smoke1_seturl_invalid_url():
assert re.match(r'Connected to radio', out)
assert re.search('Warning: There were no settings', out, re.MULTILINE)
assert return_value == 1
# pause for the radio
time.sleep(PAUSE_AFTER_COMMAND)
@pytest.mark.smoke1
@@ -391,6 +393,8 @@ def test_smoke1_configure():
assert re.search('^Set screen_on_secs to 31536000', out, re.MULTILINE)
assert re.search('^Set wait_bluetooth_secs to 31536000', out, re.MULTILINE)
assert re.search('^Writing modified preferences to device', out, re.MULTILINE)
# pause for the radio
time.sleep(PAUSE_AFTER_REBOOT)
@pytest.mark.smoke1