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

Fix PytestRemovedIn8Warning ("support for nose tests is deprecated and will be removed in a future release") #84

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

muxator
Copy link

@muxator muxator commented Sep 10, 2024

Before this change, the test log contained 37 entries like this:

PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.

After this change, on my machine the test log shrinks from 1672 to 1405 lines (16% less).

At some point in time, we will migrate to Pytest 8.x, and this would be an hindrance.

A reference for the fix can be found at https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose

Affected tests were found with:
rg "def (setup|teardown)\(" tests

Please merge this after #82 (migration to python 3.12).

…ated and will be removed in a future release")

Before this change, the test log contained 37 entries like this:
    PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.

After this change, on my machine the test log shrinks from 1672 to 1405 lines
(16% less).

At some point in time, we will migrate to Pytest 8.x, and this would be an
hindrance.

A reference for the fix can be found at:
    https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose

Affected tests were found with:
    rg "def (setup|teardown)\(" tests
@muxator muxator force-pushed the fix-pytest-removed-in-8-warning branch from 16aeac5 to 32636e1 Compare September 10, 2024 16:30
@muxator muxator force-pushed the fix-pytest-removed-in-8-warning branch 2 times, most recently from 1d17a57 to d1473a9 Compare September 13, 2024 08:52
@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.52%. Comparing base (c5f8eb7) to head (d1473a9).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #84      +/-   ##
==========================================
+ Coverage   83.91%   88.52%   +4.60%     
==========================================
  Files          32       33       +1     
  Lines        1716     1751      +35     
==========================================
+ Hits         1440     1550     +110     
+ Misses        276      201      -75     

see 3 files with indirect coverage changes

@AldoGl
Copy link
Contributor

AldoGl commented Sep 13, 2024

This LGTM, feel free to merge!

@muxator muxator merged commit 55e65fe into main Sep 13, 2024
13 checks passed
@muxator muxator deleted the fix-pytest-removed-in-8-warning branch September 13, 2024 10:59
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

Successfully merging this pull request may close these issues.

3 participants