mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
test: make check_section_driver() a bit more diff-friendly
This commit is contained in:
@@ -197,10 +197,13 @@ def check_section_hidpp20(section: configparser.SectionProxy):
|
||||
def check_section_driver(driver: str, section: configparser.SectionProxy):
|
||||
if driver == 'hidpp10':
|
||||
check_section_hidpp10(section)
|
||||
elif driver == 'hidpp20':
|
||||
return
|
||||
|
||||
if driver == 'hidpp20':
|
||||
check_section_hidpp20(section)
|
||||
else:
|
||||
assert('Unsupported driver section {}'.format(driver))
|
||||
return
|
||||
|
||||
raise AssertionError('Unsupported driver section {}'.format(driver))
|
||||
|
||||
|
||||
def validate_data_file_name(path: str):
|
||||
|
||||
Reference in New Issue
Block a user