Skip to content

Commit

Permalink
removes unnecessary fixtures
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Kononykhin <[email protected]>
  • Loading branch information
andkononykhin committed Jan 31, 2019
1 parent 6c7a676 commit 2019811
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions indy_node/test/nym_txn/test_nym_auth_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,26 +136,11 @@ def create_new_did(looper, sdk_pool_handle, creator, role, skipverkey=False):
creator=creator, wallet_handle=creator.wallet_handle)


@pytest.fixture(scope="module")
def client(sdk_wallet_client):
return DIDWallet(did=sdk_wallet_client[1], role=Roles.IDENTITY_OWNER, wallet_handle=sdk_wallet_client[0])


@pytest.fixture(scope="module")
def trustee(sdk_wallet_trustee):
return DIDWallet(did=sdk_wallet_trustee[1], role=Roles.TRUSTEE, wallet_handle=sdk_wallet_trustee[0])


@pytest.fixture(scope="module")
def steward(sdk_wallet_steward):
return DIDWallet(did=sdk_wallet_steward[1], role=Roles.STEWARD, wallet_handle=sdk_wallet_steward[0])


@pytest.fixture(scope="module", params=list(Roles))
def role(request):
return request.param


def did_fixture_wrapper():
def _fixture(looper, sdk_pool_handle, txnPoolNodeSet, trustee, request):
marker = request.node.get_marker('skip_did_verkey')
Expand All @@ -164,6 +149,7 @@ def _fixture(looper, sdk_pool_handle, txnPoolNodeSet, trustee, request):
return _fixture


# adds did_per_module and did_per_function fixtures
for scope in ('module', 'function'):
setattr(
sys.modules[__name__],
Expand Down

0 comments on commit 2019811

Please sign in to comment.