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

Changed variable name #6696

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

wallbloggerbeing
Copy link

@wallbloggerbeing wallbloggerbeing commented Dec 1, 2022

Address PytestReturnNotNoneWarning by renaming function

Because the function is named test_should_run, pytest treats it as a test rather than a
function. Renaming it fixes that.

Fixes #6694.

@wallbloggerbeing wallbloggerbeing requested a review from a team as a code owner December 1, 2022 15:24
@legoktm legoktm self-assigned this Dec 1, 2022
Copy link
Member

@legoktm legoktm left a comment

Choose a reason for hiding this comment

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

Hi @wallbloggerbeing, thanks for the PR! In the future please use the pull request template we've set up, it makes it easier for us to review it.

The code change looks good, but could you modify the commit message to clarify what function name is being changed and why?

For example:

Address PytestReturnNotNoneWarning by renaming function

Because the function is named `test_should_run`, pytest treats it as a test rather than a 
function. Renaming it fixes that.

Fixes #6694.

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.

PytestReturnNotNoneWarning test_security_updates.py::test_should_run
2 participants