Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Sep 28, 2023
1 parent edbda80 commit 238d561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class _app:
renderer._app = _app
renderer._explicit_formal_params = None
renderer._content = []
renderer._set_xref_formatter(ts_xref_formatter)
renderer._set_type_xref_formatter(ts_xref_formatter)
return renderer


Expand Down Expand Up @@ -240,7 +240,7 @@ def xref_render(config, val):
res.append([config, val])
return val.package + "::" + val.name

function_renderer._set_xref_formatter(xref_render)
function_renderer._set_type_xref_formatter(xref_render)
assert function_renderer.render_type([xref_external]) == "blah::A"
assert res[0][0] == function_renderer._app.config
assert res[0][1] == xref_external
Expand Down

0 comments on commit 238d561

Please sign in to comment.