leohemsted / smartypants.py

Translate plain ASCII punctuation characters into “smart” typographic punctuation HTML entities.
Other
21 stars 9 forks source link

2.0.1: pytest based test suite warnings #18

Open kloczek opened 3 years ago

kloczek commented 3 years ago
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1
plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, hypothesis-6.8.1, pyfakefs-4.4.0, freezegun-0.4.2
collected 5 items

tests/test_cli.py ....                                                                                                                                               [ 80%]
tests/test_setup.py .                                                                                                                                                [100%]

============================================================================= warnings summary =============================================================================
tests/test_cli.py::TestCLI::test_file
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:84: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

tests/test_cli.py::TestCLI::test_pipe
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:37: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

tests/test_cli.py::TestCLI::test_pipe_attr
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:45: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

tests/test_cli.py::TestCLI::test_pipe_attr
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:49: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

tests/test_cli.py::TestCLI::test_skipped_elements
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:57: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

tests/test_cli.py::TestCLI::test_skipped_elements
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:61: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

tests/test_cli.py::TestCLI::test_skipped_elements
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:65: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

tests/test_cli.py::TestCLI::test_skipped_elements
  /home/tkloczko/rpmbuild/BUILD/smartypants.py-2.0.1/tests/test_cli.py:69: DeprecationWarning: Please use assertEqual instead.
    self.assertEquals(output, E)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 5 passed, 8 warnings in 0.72s =======================================================================
+ RPM_EC=0
++ jobs -p
+ exit 0
mtelka commented 10 months ago

Possible fix: #12

kloczek commented 10 months ago

But PR seems has been refused 🤔

mtelka commented 10 months ago

It was not refused. Just closed by its author.

kloczek commented 10 months ago

OK so do you want me to test that PR? 🤔 (it is not big deal)

mtelka commented 10 months ago

No. I just referenced possible fix so any reader of this bug could navigate there.