Skip to content

Commit aa270aa

Browse files
author
Antoine DECHAUME
committed
Fix tests imports
1 parent 8097ec3 commit aa270aa

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

tests/__init__.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2021 Antoine DECHAUME
2+
#
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
# this software and associated documentation files (the "Software"), to deal in
5+
# the Software without restriction, including without limitation the rights to
6+
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
# of the Software, and to permit persons to whom the Software is furnished to do
8+
# so, subject to the following conditions:
9+
#
10+
# The above copyright notice and this permission notice shall be included in all
11+
# copies or substantial portions of the Software.
12+
#
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
# SOFTWARE.

tests/test_google_inheritor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
from __future__ import annotations
2121

2222
import pytest
23-
from test_base_parser import _test_parse_sections
2423

2524
from docstring_inheritance.docstring_inheritors.bases import SUMMARY_SECTION_NAME
2625
from docstring_inheritance.docstring_inheritors.bases.parser import NoSectionFound
2726
from docstring_inheritance.docstring_inheritors.google import DocstringParser
2827
from docstring_inheritance.docstring_inheritors.google import DocstringRenderer
2928

29+
from .test_base_parser import _test_parse_sections
30+
3031

3132
@pytest.mark.parametrize(
3233
("unindented_docstring", "expected_sections"),

tests/test_numpy_inheritor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@
2020
from __future__ import annotations
2121

2222
import pytest
23-
from test_base_parser import _test_parse_sections
2423

2524
from docstring_inheritance import NumpyDocstringInheritor
2625
from docstring_inheritance.docstring_inheritors.bases import SUMMARY_SECTION_NAME
2726
from docstring_inheritance.docstring_inheritors.bases.parser import NoSectionFound
2827
from docstring_inheritance.docstring_inheritors.numpy import DocstringParser
2928
from docstring_inheritance.docstring_inheritors.numpy import DocstringRenderer
3029

30+
from .test_base_parser import _test_parse_sections
31+
3132

3233
@pytest.mark.parametrize(
3334
("unindented_docstring", "expected_sections"),

0 commit comments

Comments
 (0)