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 require_network marker #858

Merged
merged 3 commits into from
Nov 22, 2020
Merged

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Add the require_network pytest marker to allow only running a test when a specific network is active.

Closes #810

How I did it

  • Add the marker via pytest_configure
  • Implement the logic within pytest_runtest_setup
  • Add documentation - I've created a new section for markers, expect more in another PR soon:tm:
  • update tests

How to verify it

Run tests.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 0b3433c into master Nov 22, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the feat-require-network-marker branch November 22, 2020 15:47
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.

Add marker to only run tests in a specific environment
1 participant