8000 tests: Fix tests for new Griffe version · diviyank/python@0b48bdd · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b48bdd

Browse files
committed
tests: Fix tests for new Griffe version
1 parent 14cfeed commit 0b48bdd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_renderer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Tests for the `renderer` module."""
22

33
import pytest
4-
from griffe.docstrings.dataclasses import DocstringSection, DocstringSectionKind
4+
from griffe.docstrings.dataclasses import DocstringSectionExamples, DocstringSectionKind
55

66

77
@pytest.mark.parametrize(
@@ -19,8 +19,7 @@ def test_render_docstring_examples_section(renderer):
1919
Parameters:
2020
renderer: A renderer instance (parametrized).
2121
"""
22-
section = DocstringSection(
23-
DocstringSectionKind.examples,
22+
section = DocstringSectionExamples(
2423
value=[
2524
(DocstringSectionKind.text, "This is an example."),
2625
(DocstringSectionKind.examples, ">>> print('Hello')\nHello"),

0 commit comments

Comments
 (0)
0