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

test: handle case where both pyargs and test file given #510

Merged
merged 13 commits into from
Jun 3, 2021

Conversation

iamogbz
Copy link
Collaborator

@iamogbz iamogbz commented Jun 3, 2021

Description

Add missing test coverage for #507

Checklist

  • This PR has sufficient documentation.
  • This PR has sufficient test coverage.
  • This PR title satisfies semantic convention.

Additional Comments

No additional comments.

@iamogbz iamogbz requested a review from noahnu June 3, 2021 00:21
result = run_testcases.runpytest(
"-v", "test_file.py", "--pyargs", "test_file", "--snapshot-update"
)
assert result.ret == 0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would fail with ModuleNotFoundError: No module named 'test_file.py'; 'test_file' is not a package if the Exception was not handled.

GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Github pull request event has the merge commit as the HEAD on checkout
# https://github.com/actions/checkout/issues/261
COMMIT_SHA: ${{ github.event.after }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Using COMMIT_SHA as GITHUB_SHA does not seem to be overridable

@iamogbz iamogbz marked this pull request as ready for review June 3, 2021 02:58
@noahnu noahnu merged commit 3887151 into master Jun 3, 2021
@noahnu noahnu deleted the test_pyargs_load_exception branch June 3, 2021 04:03
@tophat-opensource-bot
Copy link
Collaborator

🎉 This PR is included in version 1.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants