Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
behave-html-pretty-formatter 1.16.1
=================================
Fixing bug with boolean values in pyproject.toml


behave-html-pretty-formatter 1.16
=================================
Improve readability.
Expand Down
3 changes: 3 additions & 0 deletions behave_html_pretty_formatter/html_pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,6 +1336,9 @@ def _str_to_bool(self, value):
"""
Convert string configuration value to boolean.
"""
if isinstance(value, bool):
return value

value_lower = value.lower().strip()
accepted_values = ["true", "false", "yes", "no", "0", "1"]

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "behave-html-pretty-formatter"
version = "1.16"
version = "1.16.1"
description = "Pretty HTML Formatter for Behave"
readme = "README.md"
license = {file = "LICENSE"}
Expand Down