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

Add pytest.oggm wrapper #1459

Merged
merged 3 commits into from
Sep 5, 2022
Merged

Add pytest.oggm wrapper #1459

merged 3 commits into from
Sep 5, 2022

Conversation

TimoRoth
Copy link
Member

@TimoRoth TimoRoth commented Sep 5, 2022

This implements the workaround from https://stackoverflow.com/questions/41270604/using-command-line-parameters-with-pytest-pyargs/43747114#43747114 for being able to test an installed oggm module.

It adds a pytest.oggm wrapper, which you use instead of pytest --pyargs oggm, and it ensures the installed version is actually tested, and not a mix of it with your local clone, or a plain failure if there is no local clone.

@pep8speaks
Copy link

pep8speaks commented Sep 5, 2022

Hello @TimoRoth! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-09-05 14:57:34 UTC

This is a workaround for pytest-dev/pytest#1596
Without this, testing an installed version of oggm is impossible.
@TimoRoth TimoRoth merged commit cd86bbe into OGGM:master Sep 5, 2022
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.

2 participants