RemoveEmptySettings¶
Remove empty settings.
Disabling the formatter
RemoveEmptySettings is included in the default formatters, but it can be also run separately with:
You can also disable it:
You can configure which settings are affected by parameter work_mode. Possible values:
- overwrite_ok (default) - does not remove settings that are overwriting suite settings (Test Setup, Test Teardown, Test Template, Test Timeout or Default Tags)
- always - works on every setting
Empty settings that are overwriting suite settings will be converted to be more explicit (given that there are
related suite settings present). You can disable that behavior by changing more_explicit
parameter value to False:
will result in:
If you want to remove all empty settings even if they are overwriting suite settings (like in above example) then
set work_mode to always:
will result in: