Chilipp / autodocsumm

Extending your autodoc API docs with a summary
Apache License 2.0
48 stars 14 forks source link

0.2.5: pytest warnings #60

Closed kloczek closed 3 years ago

kloczek commented 3 years ago
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-autodocsumm-0.2.5-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-autodocsumm-0.2.5-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra -q
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
Using --randomly-seed=2950380200
rootdir: /home/tkloczko/rpmbuild/BUILD/autodocsumm-0.2.5, configfile: setup.cfg
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, randomly-3.8.0, Faker-8.8.2, datadir-1.3.1, regressions-2.2.0
collected 22 items

tests/test_autodocsumm.py .x...                                                                                                                                      [ 23%]
. .                                                                                                                                                                  [ 28%]
tests/test_autodocsumm.py ...............                                                                                                                            [100%]

============================================================================= warnings summary =============================================================================
tests/test_autodocsumm.py: 32 warnings
  /home/tkloczko/rpmbuild/BUILD/autodocsumm-0.2.5/autodocsumm/__init__.py:197: RemovedInSphinx60Warning: DocumenterBridge.filename_set is deprecated.
    self.directive.filename_set.add(self.analyzer.srcname)

tests/test_autodocsumm.py: 51 warnings
  /home/tkloczko/rpmbuild/BUILD/autodocsumm-0.2.5/autodocsumm/__init__.py:492: RemovedInSphinx50Warning: The 'ignore' argument to prepare_docstring() is deprecated.
    doc.append(prepare_docstring(docstring, ignore))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
XFAIL tests/test_autodocsumm.py::TestAutosummaryDocumenter::test_warnings_depreciation
=============================================================== 20 passed, 1 xfailed, 83 warnings in 10.32s ================================================================
kloczek commented 3 years ago

0.2.6 is clean.

Thx :)

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-autodocsumm-0.2.6-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-autodocsumm-0.2.6-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ /usr/bin/pytest -ra -q
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/autodocsumm-0.2.6, configfile: setup.cfg
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, cases-3.6.1, flaky-3.7.0, hypothesis-6.14.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, Faker-8.8.2, datadir-1.3.1, regressions-2.2.0
collected 22 items

. .                                                                                                                                                                  [  4%]
tests/test_autodocsumm.py ..........x.........                                                                                                                       [100%]

========================================================================= short test summary info ==========================================================================
XFAIL tests/test_autodocsumm.py::TestAutosummaryDocumenter::test_warnings_depreciation
====================================================================== 20 passed, 1 xfailed in 10.02s ======================================================================
Chilipp commented 3 years ago

thanks @kloczek :smiley: