Skip to content

Commit 518ab35

Browse files
Update handler test to reflect new base class interface
1 parent e1eb167 commit 518ab35

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ are compatible with.*
55

66
## 2.0.0
77

8-
* Depend on mkdocstrings-python 2.0 or later
8+
* Depends on mkdocstrings-python >=2.0 and mkdocstrings >=1.0
99

1010
## 1.16.5
1111

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
2.0.0
2-

tests/test_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022-2025. Analog Devices Inc.
1+
# Copyright (c) 2022-2026. Analog Devices Inc.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -58,6 +58,8 @@ def test_handler(tmpdir: PathLike,
5858
Path(tmpdir),
5959
theme = 'material',
6060
custom_templates = 'custom_templates',
61+
mdx = [],
62+
mdx_config= {},
6163
)
6264
assert handler.name == 'python_xref'
6365

@@ -83,7 +85,7 @@ def fake_collect(_self: PythonHandler, identifier: str, _config: dict) -> Any:
8385
return Object(identifier)
8486
raise CollectionError(identifier)
8587

86-
def fake_render(_self: PythonHandler, data: Object, _config: dict) -> str:
88+
def fake_render(_self: PythonHandler, data: Object, _config: dict, locale: str|None = None) -> str:
8789
assert data.docstring is not None
8890
return data.docstring.value
8991

0 commit comments

Comments
 (0)