File tree 5 files changed +21
-20
lines changed
5 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ uninstall:
36
36
test :
37
37
# Unit tests with coverage report
38
38
coverage erase
39
- coverage run -m pytest -c tests/.configs/pytest.ini
39
+ coverage run -m pytest
40
40
coverage report
41
41
coverage html
42
42
Original file line number Diff line number Diff line change @@ -99,3 +99,17 @@ ignore = ["tests"]
99
99
[tool .pylint .design ]
100
100
min-public-methods = 0
101
101
max-public-methods = 30
102
+
103
+ [tool .pytest .ini_options ]
104
+ testpaths = [" tests/unit/" ]
105
+ asyncio_mode = " auto"
106
+ markers = [
107
+ " pydantic: Tests with Pydantic as a dependency" ,
108
+ ]
109
+ filterwarnings = [
110
+ " ignore:Module \" dependency_injector.ext.aiohttp\" is deprecated since version 4\\ .0\\ .0:DeprecationWarning" ,
111
+ " ignore:Module \" dependency_injector.ext.flask\" is deprecated since version 4\\ .0\\ .0:DeprecationWarning" ,
112
+ " ignore:Please use \\ `.*?\\ ` from the \\ `scipy.*?\\ `(.*?)namespace is deprecated\\ .:DeprecationWarning" ,
113
+ " ignore:Please import \\ `.*?\\ ` from the \\ `scipy(.*?)\\ ` namespace(.*):DeprecationWarning" ,
114
+ " ignore:\\ `scipy(.*?)\\ ` is deprecated(.*):DeprecationWarning" ,
115
+ ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def index():
11
11
return "Hello World!"
12
12
13
13
14
- def test ():
14
+ def _test ():
15
15
return "Test!"
16
16
17
17
@@ -25,7 +25,7 @@ class ApplicationContainer(containers.DeclarativeContainer):
25
25
app = flask .Application (Flask , __name__ )
26
26
27
27
index_view = flask .View (index )
28
- test_view = flask .View (test )
28
+ test_view = flask .View (_test )
29
29
test_class_view = flask .ClassBasedView (Test )
30
30
31
31
Original file line number Diff line number Diff line change 19
19
werkzeug
20
20
extras =
21
21
yaml
22
- commands = pytest -c tests/.configs/pytest.ini
22
+ commands = pytest
23
23
python_files = test_*_py3*.py
24
24
setenv =
25
25
COVERAGE_RCFILE = pyproject.toml
45
45
boto3
46
46
mypy_boto3_s3
47
47
werkzeug
48
- commands = pytest -c tests/.configs/pytest.ini - m pydantic
48
+ commands = pytest -m pydantic
49
49
50
50
[testenv:coveralls]
51
51
passenv = GITHUB_*, COVERALLS_*, DEPENDENCY_INJECTOR_*
57
57
coveralls>=4
58
58
commands =
59
59
coverage erase
60
- coverage run -m pytest -c tests/.configs/pytest.ini
60
+ coverage run -m pytest
61
61
coverage report
62
62
coveralls
63
63
74
74
mypy_boto3_s3
75
75
extras =
76
76
yaml
77
- commands = pytest -c tests/.configs/pytest-py35.ini
77
+ commands = pytest
78
78
79
79
80
80
[testenv:pylint]
You can’t perform that action at this time.
0 commit comments