File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+ )
You can’t perform that action at this time.
0 commit comments