Tests that touch this enum fail for me locally but pass in the CI. This
seems to be due to new enum related behavior in Python 3.11.
See: https://blog.pecar.me/python-enum
Instead of fixing it as suggested in the above blog, adding a __str__
method works on all python versions I care to know about.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
def to_json(self) -> str:
return self.value
+ def __str__(self) -> str:
+ return self.value
+
def name_to_config_section(name: str) -> ConfEntity:
"""