You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the name field does not have a type annotation (see below line). So, it doesn't returned in the field list of the Theme class. Therefore, it is ignored and not looked up in the configuration.
Problem Definition
Theme configuration in
pytest-sugar.conf
does not applyname
parameter.Example
Configuration file:
Expected Outcome
All the configuration parameters under
theme
section must apply.Actual Outcome
path
andprogressbar
parameters apply (i.e., output colors changed). But thename
parameter has no effect and hence the output color is unchanged.Cause
Starting from the following line, the fields of the
Theme
class is traversed and the corresponding values read from the configuration.pytest-sugar/pytest_sugar.py
Line 144 in efafd9c
However, the
name
field does not have a type annotation (see below line). So, it doesn't returned in the field list of theTheme
class. Therefore, it is ignored and not looked up in the configuration.pytest-sugar/pytest_sugar.py
Line 51 in efafd9c
Solution
Add a type annotation to the
name
field as follows:The text was updated successfully, but these errors were encountered: