Skip to content

Commit

Permalink
collections.abc and module for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Marsh <ryan.marsh44@gmail.com>
  • Loading branch information
rytmarsh committed Feb 10, 2021
1 parent 5a68647 commit df7b41f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions indy_common/test/test_strict_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def testValidInputAndReturn():
takesStr('1')


# FIXME -> RTM: TypeError: Subscripted generics cannot be used with class and instance checks
def testWorksWithComplexTypes():
takesUnion('1')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from collections import Callable
from collections.abc import Callable

from indy_common.constants import FROM, TO, REVOC_REG_DEF_ID, ISSUANCE_TYPE, REVOKED, ISSUED, VALUE, REVOC_TYPE, \
ACCUM_TO, STATE_PROOF_FROM, ACCUM_FROM, GET_REVOC_REG_DELTA
Expand Down
2 changes: 1 addition & 1 deletion indy_node/test/nym_txn/test_nym_additional.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def set_verkey(looper, sdk_pool_handle, sdk_wallet_sender, dest, verkey):
return wh, new_did


@pytest.fixture("module")
@pytest.fixture(scope="module")
def endorser_did_verkey(looper, sdk_wallet_client):
wh, _ = sdk_wallet_client
named_did, verkey = looper.loop.run_until_complete(
Expand Down
1 change: 1 addition & 0 deletions indy_node/test/pool_restart/test_pool_restart.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def test_pool_restart_now_without_datetime(
tdir, tconf, START)


# FIXME -> RTM: pool_restart failures
def test_pool_restart_in_view_change(sdk_pool_handle, sdk_wallet_trustee, looper,
tdir, tconf, txnPoolNodeSet):

Expand Down
2 changes: 1 addition & 1 deletion scripts/performance/perf_load/perf_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
import os
import argparse
from collections import Sequence
from collections.abc import Sequence
from typing import Dict, List
from queue import Queue, Empty

Expand Down
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

BASE_DIR = os.path.join(os.path.expanduser("~"), ".indy")

tests_require = ['attrs==19.1.0', 'pytest==3.3.1', 'pytest-xdist==1.22.1', 'pytest-forked==0.2',
'python3-indy==1.13.0-dev-1420', 'pytest-asyncio==0.8.0']
tests_require = ['attrs', 'pytest', 'pytest-xdist', 'pytest-forked',
'python3-indy==1.13.0-dev-1420', 'pytest-asyncio']

setup(
name=metadata['__title__'],
Expand All @@ -54,9 +54,7 @@
data_files=[(
(BASE_DIR, ['data/nssm_original.exe'])
)],
install_requires=['indy-plenum==1.13.0.dev1032',
'timeout-decorator==0.4.0',
'distro==1.3.0'],
install_requires=['indy-plenum==1.13.0.dev1032', 'timeout-decorator', 'distro'],
setup_requires=['pytest-runner'],
extras_require={
'tests': tests_require
Expand Down

0 comments on commit df7b41f

Please sign in to comment.