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

register pytest mark #409

Merged
merged 1 commit into from
Feb 6, 2023
Merged

Conversation

kwinkunks
Copy link
Member

The mark is present in the tests but not registered. This commit registers it in pyproject.toml and uses it for the default test selection instead of -k.

Issue
Resolves #408

Approach
Register the mark in the init file.

Pre review checklist

  • Added appropriate labels

@kwinkunks kwinkunks requested a review from xjules February 3, 2023 15:33
@ertomatic
Copy link
Collaborator

Can one of the admins verify this patch?

@kwinkunks kwinkunks marked this pull request as ready for review February 3, 2023 15:38
pyproject.toml Outdated
addopts = "-k 'not spe1'"
addopts = "-m 'not spe1'"
markers = [
"spe1: marks tests needing results from ert forward model spe1",
Copy link
Contributor

Choose a reason for hiding this comment

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

to be pedantic, maybe rephrase to "from ert model of the spe1 test case".

(an ert model consists (usually) of multiple forward models, and spe1 is really an external thing from Society of Petroleum Engineers)

The mark is present in the tests but not registered.
This commit registers it in pyproject.toml and uses
it for the default test selection instead of -k.
@kwinkunks kwinkunks force-pushed the register-pytest-mark branch from cb8be6f to 44145ce Compare February 6, 2023 12:49
@kwinkunks kwinkunks merged commit 3cb4689 into equinor:main Feb 6, 2023
@kwinkunks kwinkunks deleted the register-pytest-mark branch February 6, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Register mark spe1 or delete it
3 participants