Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 5, 2024
1 parent 2fe403a commit 8f1d692
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/towncrier/test/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def test_orphan_all_digits(self):


class TestIssueOrdering(TestCase):
template = dedent("""
template = dedent(
"""
{% for section_name, category in sections.items() %}
{% if section_name %}# {{ section_name }}{% endif %}
{%- for category_name, issues in category.items() %}
Expand All @@ -148,7 +149,8 @@ class TestIssueOrdering(TestCase):
{% endfor %}
{% endfor -%}
{% endfor -%}
""")
"""
)

def render(self, fragments):
return render_fragments(
Expand Down Expand Up @@ -178,11 +180,13 @@ def test_ordering(self):
}
},
)
assert output == dedent("""
assert output == dedent(
"""
## feature
- Added Eggs (random, gh-2)
- Added Milk (gh-1)
- Added Cheese (gh-3, #4, #10)
- Added Bread
- Added Fish
""")
"""
)

0 comments on commit 8f1d692

Please sign in to comment.