File tree Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Expand file tree Collapse file tree 2 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 8
8
from ipfshttpclient import filescanner
9
9
10
10
11
- TEST_FILE_DIR = os .path .join (os .path .dirname (__file__ ), ".." , "functional" ) # type: str
11
+ TEST_FILE_DIR : str = os .path .join (os .path .dirname (__file__ ), ".." , "functional" )
12
12
13
13
14
- @pytest .mark .skipif (sys .version_info < (3 , 6 ), reason = "fnmatch.translate output changed in Python 3.6+" )
15
14
@pytest .mark .parametrize ("pattern,expected,kwargs" , [
16
15
("literal" , [r"(?![.])(?s:literal)\Z" ], {}),
17
16
(b"literal" , [br"(?![.])(?s:literal)\Z" ], {}),
Original file line number Diff line number Diff line change @@ -7,23 +7,22 @@ envlist =
7
7
styleck,
8
8
typeck
9
9
10
- # Enable slower `isolated_build` for PEP-518 compatiblity
10
+ # Enable slower `isolated_build` for PEP-518 compatibility
11
11
isolated_build = true
12
12
13
13
14
14
[testenv]
15
15
deps =
16
- pytest ~= 5.0
17
- pytest-cov ~= 2.6
18
- pytest-dependency ~= 0.4
16
+ pytest ~= 6.2
17
+ pytest-cov ~= 2.11
18
+ pytest-dependency ~= 0.5
19
19
pytest-localserver ~= 0.5
20
- pytest-mock ~= 1.10
20
+ pytest-mock ~= 3.5
21
21
pytest-ordering ~= 0.6
22
22
23
23
pytest-cid ~= 1.1
24
24
py-cid
25
25
26
- mock
27
26
whitelist_externals = ipfs
28
27
passenv = IPFS_* PY_IPFS_HTTP_CLIENT_*
29
28
commands =
@@ -62,8 +61,8 @@ commands =
62
61
[testenv:typeck]
63
62
skip_install = true
64
63
deps =
65
- mypy ~= 0.790
66
- pytest ~= 5.0
64
+ mypy ~= 0.812
65
+ pytest ~= 6.2
67
66
{[testenv:py3-httpx]deps-exclusive}
68
67
commands =
69
68
mypy --config-file =tox.ini {posargs} -p ipfshttpclient
@@ -156,6 +155,3 @@ testpaths =
156
155
ipfshttpclient
157
156
test/unit
158
157
test/functional
159
-
160
- # XXX: Drop standalone mock once we're 3.6+-only
161
- mock_use_standalone_module = true
You can’t perform that action at this time.
0 commit comments