+
Skip to content

Conversation

mirpedrol
Copy link
Member

Adds tests messing from #3722 (review)
I also fixed a test which was not testing what it was intended to.

@mirpedrol
Copy link
Member Author

@nf-core-bot update textual snapshots

Copy link

codecov bot commented Aug 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.23%. Comparing base (22a879d) to head (361ac35).
⚠️ Report is 12 commits behind head on dev.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

with mock.patch("nf_core.utils.set_wd", side_effect=Exception("mocked exception")):
with pytest.raises(Exception):
with nf_core.utils.set_wd(self.tmp_dir):
assert wd_before_context == Path().resolve()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand this assertion. Doesn't this mean that the wd is the same as before and set_wd didn't do anything?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think this is what the test is supposed to do, based on the name "revert_on_raise"

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载