There was an error while loading. Please reload this page.
1 parent 14cfeed commit 0b48bddCopy full SHA for 0b48bdd
tests/test_renderer.py
@@ -1,7 +1,7 @@
1
"""Tests for the `renderer` module."""
2
3
import pytest
4
-from griffe.docstrings.dataclasses import DocstringSection, DocstringSectionKind
+from griffe.docstrings.dataclasses import DocstringSectionExamples, DocstringSectionKind
5
6
7
@pytest.mark.parametrize(
@@ -19,8 +19,7 @@ def test_render_docstring_examples_section(renderer):
19
Parameters:
20
renderer: A renderer instance (parametrized).
21
"""
22
- section = DocstringSection(
23
- DocstringSectionKind.examples,
+ section = DocstringSectionExamples(
24
value=[
25
(DocstringSectionKind.text, "This is an example."),
26
(DocstringSectionKind.examples, ">>> print('Hello')\nHello"),
0 commit comments