Skip to content

Comments

Add example for registering multiple custom mark#7886

Merged
bluetech merged 2 commits intopytest-dev:masterfrom
gutsytechster:update_marker_registeration_docs
Oct 14, 2020
Merged

Add example for registering multiple custom mark#7886
bluetech merged 2 commits intopytest-dev:masterfrom
gutsytechster:update_marker_registeration_docs

Conversation

@gutsytechster
Copy link
Contributor

This fixes #7880

@gutsytechster
Copy link
Contributor Author

Let me know if this requires an entry in the changelog. :)

Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

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

Thanks @gutsytechster!

To keep things a bit shorter, how about adding a second marker to the first example, instead of adding a second example? That, I think, would be sufficient for getting across how multiple markers are registered.

webtest: mark a test as a webtest.
slow: mark test as slow.

You can ask which markers exist for your test suite - the list includes our just defined ``webtest`` markers:
Copy link
Member

Choose a reason for hiding this comment

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

This sentence (and the next code block) would need a little update as well.

Copy link
Member

@bluetech bluetech left a comment

Choose a reason for hiding this comment

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

Thanks!

@bluetech bluetech merged commit 5182c73 into pytest-dev:master Oct 14, 2020
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.

docs: Explain how to register multiple custom markers

2 participants