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

Remove @pytest.mark.fuzz and @pytest.mark.functional #5620

Merged
merged 3 commits into from
May 13, 2019

Conversation

seanh
Copy link
Contributor

@seanh seanh commented May 13, 2019

These were unregistered custom pytest marks, and pytest now emits a warning,
which causes our tests to fail, when an unregistered mark is used:

pytest-dev/pytest#4935

Rather than registering the mark simply delete all uses of it. All tests
that're defined using hypothesis automatically have the
@pytest.mark.hypothesis mark applied to them so it's not necessary to
try to remember to manually apply a custom mark to every test that uses
hypothesis:

https://hypothesis.readthedocs.io/en/latest/details.html#the-hypothesis-pytest-plugin

And our functional tests are in a separate directory, so trying to manually apply a mark to every one of those also seems unnecessary.

seanh added 2 commits May 13, 2019 11:24
This was an unregistered pytest mark, and pytest now emits a warning,
which causes our tests to fail, when an unregistered mark is used:

pytest-dev/pytest#4935

Rather than registering the mark simply delete all uses of it. All tests
that're defined using hypothesis automatically have the
`@pytest.mark.hypothesis` mark applied to them so it's not necessary to
try to remember to manually apply a custom mark to every test that uses
hypothesis:

https://hypothesis.readthedocs.io/en/latest/details.html#the-hypothesis-pytest-plugin
This is an unregistered custom pytest mark, which causes pytest to omit
a warning and fail the tests. There doesn't seem to be any reason to
try to manually apply this mark to every single functional test -- these
tests are in a separate directory anyway. So rather than registering the
mark, delete it.
@seanh seanh changed the title Remove @pytest.mark.fuzz Remove @pytest.mark.fuzz and @pytest.mark.functional May 13, 2019
@seanh seanh merged commit ebaf3be into master May 13, 2019
@seanh seanh deleted the remove-@pytest.mark.fuzz branch May 13, 2019 11:21
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.

1 participant