Skip to content

Commit 42a6262

Browse files
[autofix.ci] apply automated fixes
1 parent 43d1b58 commit 42a6262

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/test_render_helpers.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,17 @@ def test_external_link_with_anchor_preserved():
170170
"""
171171
md = "See [HttpResponseNotFound](https://docs.djangoproject.com/en/6.0/ref/request-response/#django.http.HttpResponseNotFound)."
172172
html = to_html(md)
173+
173174
# Minimal context so linkify runs (no modules to link to); tests that external links are preserved.
174175
class FakeModule:
175176
modulename = "test"
177+
176178
def get(self, name):
177179
return None
178180

179181
ctx = {"module": FakeModule(), "all_modules": {}, "is_public": lambda doc: ""}
180182
result = str(linkify(ctx, html))
181-
assert "https://docs.djangoproject.com/en/6.0/ref/request-response/#django.http.HttpResponseNotFound" in result
183+
assert (
184+
"https://docs.djangoproject.com/en/6.0/ref/request-response/#django.http.HttpResponseNotFound"
185+
in result
186+
)

0 commit comments

Comments
 (0)