Skip to content

Instantly share code, notes, and snippets.

@BeyondEvil
Last active December 11, 2015 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeyondEvil/f14d15fa1202cade1d0a to your computer and use it in GitHub Desktop.
Save BeyondEvil/f14d15fa1202cade1d0a to your computer and use it in GitHub Desktop.
@pytest.fixture()
def user(request):
user_name = request.param.get('name')
//do something
@pytest.fixture()
def account(request):
account_name = request.param.get('name')
//do something
@pytest.mark.parametrize('user', [{'name': 'jimbob'}])
@pytest.mark.parametrize('account', [{'name': 'jimbobs account'}])
@pytest.fixture()
def project(request, user, account):
//do something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment