Skip to content

Commit 437b05f

Browse files
committed
Updated docs.
1 parent ad5a344 commit 437b05f

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

doc-source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'sphinxcontrib.default_values',
5252
'sphinxcontrib.toctree_plus',
5353
'seed_intersphinx_mapping',
54+
'sphinx_autofixture',
5455
]
5556

5657
sphinxemoji_style = 'twemoji'

doc-source/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ extras-require>=0.2.0
55
pandas>=1.1.2
66
seed-intersphinx-mapping>=0.1.1
77
sphinx>=3.0.3
8+
sphinx-autofixture>=0.1.0
89
sphinx-copybutton>=0.2.12
910
sphinx-notfound-page>=0.5
1011
sphinx-prompt>=1.1.0

domdf_python_tools/testing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def tmp_pathplus(tmp_path: Path) -> PathPlus:
425425
426426
pytest_plugins = ("domdf_python_tools.testing", )
427427
428-
def my_test(tmp_pathplus: PathPlus):
428+
def test_something(tmp_pathplus: PathPlus):
429429
assert True
430430
431431
:rtype:
@@ -439,7 +439,7 @@ def my_test(tmp_pathplus: PathPlus):
439439
@pytest.fixture()
440440
def original_datadir(request) -> Path:
441441
# Work around pycharm confusing datadir with test file.
442-
return Path(os.path.splitext(request.module.__file__)[0] + '_')
442+
return PathPlus(os.path.splitext(request.module.__file__)[0] + '_')
443443

444444

445445
def pytest_report_header(config, startdir):
@@ -454,7 +454,7 @@ def pytest_report_header(config, startdir):
454454

455455
PEP_563: bool = (sys.version_info[:2] >= (3, 10))
456456
"""
457-
:py:obj:`True` if the current Python version implements :pep:`563` -- Postponed Evaluation of Annotations
457+
:py:obj:`True` if the current Python version implements :pep:`563` -- Postponed Evaluation of Annotations.
458458
459459
.. versionadded:: 1.4.2
460460
"""

repo_helper.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ intersphinx_mapping:
6565

6666
mypy_deps:
6767
- pprint36
68+
69+
extra_sphinx_extensions:
70+
- sphinx_autofixture

tests/test_bases.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
import copy
1111
import pickle # nosec: B101
1212
from numbers import Number, Real
13-
14-
# 3rd party
1513
from typing import no_type_check
1614

15+
# 3rd party
1716
import pytest
1817

1918
# this package

0 commit comments

Comments
 (0)