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

RF(TST): use setup_method and teardown_method in TestAddArchiveOptions #7488

Merged
merged 2 commits into from Sep 19, 2023

Conversation

yarikoptic
Copy link
Member

Prior one is coming from "nose support" layer which is about to be deprecated. So we were getting flood of warnings like

local/tests/test_add_archive_content.py::TestAddArchiveOptions::test_override_existing_under_git
/Users/runner/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/fixtures.py:911: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
local/tests/test_add_archive_content.py::TestAddArchiveOptions::test_override_existing_under_git is using nose-specific method: teardown(self)
To remove this warning, rename it to teardown_method(self)
See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose
next(it)

for a while but didn't spot them. I think that is the only place in core.

Prior one is coming from "nose support" layer which is about to be deprecated.
So we were getting flood of warnings like

   local/tests/test_add_archive_content.py::TestAddArchiveOptions::test_override_existing_under_git
  /Users/runner/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/fixtures.py:911: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
  local/tests/test_add_archive_content.py::TestAddArchiveOptions::test_override_existing_under_git is using nose-specific method: `teardown(self)`
  To remove this warning, rename it to `teardown_method(self)`
  See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose
    next(it)

for a while but didn't spot them.  I think that is the only place in core.
@yarikoptic yarikoptic added tests Add or improve existing tests semver-tests Changes only affect tests, no impact on version CHANGELOG-missing When a PR's description does not contain a changelog item, yet. labels Sep 19, 2023
@github-actions github-actions bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Sep 19, 2023
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9942bf4) 91.52% compared to head (555cc7e) 91.52%.

Additional details and impacted files
@@           Coverage Diff           @@
##            maint    #7488   +/-   ##
=======================================
  Coverage   91.52%   91.52%           
=======================================
  Files         325      325           
  Lines       43441    43441           
  Branches     5827     5827           
=======================================
  Hits        39761    39761           
  Misses       3665     3665           
  Partials       15       15           
Files Changed Coverage Δ
datalad/local/tests/test_add_archive_content.py 99.62% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yarikoptic
Copy link
Member Author

benchmarks are generally failing, yet to be investigated. no brainer so merging

@yarikoptic yarikoptic merged commit 776f465 into datalad:maint Sep 19, 2023
21 of 22 checks passed
@yarikoptic-gitmate
Copy link
Collaborator

PR released in 0.19.4

@yarikoptic yarikoptic deleted the rf-test branch February 2, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-tests Changes only affect tests, no impact on version tests Add or improve existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants