Tighten configuration and export handling

This commit is contained in:
Кокос Артем Николаевич
2026-05-22 17:41:56 +07:00
parent 8bc8181ce3
commit 2db0ab1f0b
20 changed files with 423 additions and 350 deletions

View File

@@ -1,7 +1,7 @@
from redmine_reporter.utils import (
hours_to_human,
get_month_name_from_range,
get_version,
hours_to_human,
)
@@ -74,10 +74,7 @@ def test_get_version_without_attribute():
def test_get_version_none_attribute():
"""fixed_version = None -- str(None) == 'None', не '<N/A>'."""
class MockIssue:
fixed_version = None
# get_version возвращает str(getattr(...)), None задан явно -> "None"
assert get_version(MockIssue()) == "None"
assert get_version(MockIssue()) == "<N/A>"