Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4.11 + master: pytest warnings #172

Open
kloczek opened this issue Apr 23, 2021 · 2 comments
Open

1.4.11 + master: pytest warnings #172

kloczek opened this issue Apr 23, 2021 · 2 comments

Comments

@kloczek
Copy link

kloczek commented Apr 23, 2021

I know that sure is using nose to test.
Nevertheless pytast shows me some warnings

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sure-1.4.11-13.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sure-1.4.11-13.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/sure-1.4.11
plugins: 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, pyfakefs-4.4.0, freezegun-0.4.2, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.0
collected 144 items

tests/test_assertion_builder.py ....................................                                                                                                 [ 25%]
tests/test_cpython_patches.py ....                                                                                                                                   [ 27%]
tests/test_custom_assertions.py ...                                                                                                                                  [ 29%]
tests/test_ensure_ctxmgr.py ..                                                                                                                                       [ 31%]
tests/test_old_api.py .......................................................................................                                                        [ 91%]
tests/test_safe_repr.py ....                                                                                                                                         [ 94%]
tests/issues/test_issue_104.py .                                                                                                                                     [ 95%]
tests/issues/test_issue_134.py .                                                                                                                                     [ 95%]
tests/issues/test_issue_136.py .                                                                                                                                     [ 96%]
tests/issues/test_issue_139.py .                                                                                                                                     [ 97%]
tests/issues/test_issue_148.py ..                                                                                                                                    [ 98%]
tests/issues/test_issue_19.py .                                                                                                                                      [ 99%]
tests/issues/test_issue_48.py .                                                                                                                                      [100%]

============================================================================= warnings summary =============================================================================
tests/test_assertion_builder.py:547
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_assertion_builder.py:547: DeprecationWarning: invalid escape sequence \w
    ("expect('some string').to.match(r'\w{4} \w{6}') matches regex")

tests/test_assertion_builder.py:560
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_assertion_builder.py:560: DeprecationWarning: invalid escape sequence \d
    "'some string' doesn't match the regular expression /\d{2} \d{4}/")

tests/test_old_api.py::test_setup_with_context
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:43: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_that_len_greater_than_should_raise_assertion_error
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:207: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_that_len_greater_than_or_equals_should_raise_assertion_error
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:233: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_that_len_lower_than_should_raise_assertion_error
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:257: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_that_len_lower_than_or_equals_should_raise_assertion_error
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:283: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_that_raises
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:431: DeprecationWarning: Please use assertEqual instead.
    assert_equals(function(3, 5), 'OK')

tests/test_old_api.py::test_that_none_contains_string
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:566: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_within_fail
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:660: DeprecationWarning: Please use assertEqual instead.
    assert_equals('sleepy did not run within five miliseconds', str(e))

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:666: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('one'),      1)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:667: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('two'),      2)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:668: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('three'),    3)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:669: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('four'),     4)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:670: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('five'),     5)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:671: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('six'),      6)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:672: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('seven'),    7)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:673: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('eight'),    8)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:674: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('nine'),     9)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:675: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('ten'),     10)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:676: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('eleven'),  11)

tests/test_old_api.py::test_word_to_number
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:677: DeprecationWarning: Please use assertEqual instead.
    assert_equals(sure.word_to_number('twelve'),  12)

tests/test_old_api.py::test_word_to_number_fail
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:686: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_microsecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:698: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(1), 100000)

tests/test_old_api.py::test_microsecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:699: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(1), 1)

tests/test_old_api.py::test_microsecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:703: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(1), 100000)

tests/test_old_api.py::test_microsecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:704: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(1), 1)

tests/test_old_api.py::test_milisecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:711: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(1), 1000)

tests/test_old_api.py::test_milisecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:712: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(100), 1)

tests/test_old_api.py::test_milisecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:716: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(1), 1000)

tests/test_old_api.py::test_milisecond_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:717: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(100), 1)

tests/test_old_api.py::test_second_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:724: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(1), 1)

tests/test_old_api.py::test_second_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:725: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(100000), 1)

tests/test_old_api.py::test_second_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:729: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(1), 1)

tests/test_old_api.py::test_second_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:730: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(100000), 1)

tests/test_old_api.py::test_minute_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:737: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(60), 1)

tests/test_old_api.py::test_minute_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:738: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(1), 6000000)

tests/test_old_api.py::test_minute_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:742: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cfrom(60), 1)

tests/test_old_api.py::test_minute_unit
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:743: DeprecationWarning: Please use assertEqual instead.
    assert_equals(cto(1), 6000000)

tests/test_old_api.py::test_that_is_a_matcher_should_absorb_callables_to_be_used_as_matcher
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:765: DeprecationWarning: Please use assertEqual instead.
    assert_equals(that('friend').is_truthful(), 'foobar')

tests/test_old_api.py::test_accepts_setup_list
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:783: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

tests/test_old_api.py::test_scenario_is_alias_for_context_on_setup_and_teardown
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:830: DeprecationWarning: Please use assertEqual instead.
    assert_equals(context.name, "Robert C Martin")

tests/test_old_api.py::test_scenario_is_alias_for_context_on_setup_and_teardown
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:823: DeprecationWarning: Please use assertEqual instead.
    assert_equals(context.name, "Robert C Martin")

tests/test_old_api.py::test_scenario_is_alias_for_context_on_setup_and_teardown
  /home/tkloczko/rpmbuild/BUILD/sure-1.4.11/tests/test_old_api.py:833: DeprecationWarning: Please use assertEqual instead.
    assert_equals(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 144 passed, 44 warnings in 1.29s =====================================================================
@kloczek
Copy link
Author

kloczek commented Jun 17, 2021

BTW .. do you have any plans to make a new release?

@kloczek
Copy link
Author

kloczek commented Apr 17, 2022

gentle ping 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant