Skip to content

Commit 7d19232

Browse files
committed
chore: update test requirements to make the CI run from python 3.7 to 3.10
1 parent fcc51f1 commit 7d19232

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

requirements/test.pip

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
blinker
22
Faker==2.0.0
33
mock==3.0.5
4-
pytest==4.6.5; python_version < '3.5'
5-
pytest==5.4.1; python_version >= '3.5'
6-
pytest-benchmark==3.2.2
7-
pytest-cov==2.7.1
8-
pytest-flask==0.15.1
9-
pytest-mock==1.10.4
4+
pytest==7.1.3
5+
pytest-benchmark==3.4.1
6+
pytest-cov==4.0.0
7+
pytest-flask==1.2.0
8+
pytest-mock==3.10.0
109
pytest-profiling==1.7.0
1110
tzlocal
1211
invoke==1.3.0
1312
readme-renderer==24.0
1413
twine==1.15.0
15-
ossaudit; python_version >= '3.5'

tests/test_logging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ def get(self):
6464
assert len(matching) == 1
6565

6666
def test_override_app_level(self, app, client, caplog):
67-
caplog.set_level(logging.INFO, logger=app.logger.name)
67+
caplog.set_level(logging.DEBUG, logger=app.logger.name)
6868

6969
api = restx.Api(app)
7070
ns1 = api.namespace("ns1", path="/ns1")
7171
ns1.logger.setLevel(logging.DEBUG)
7272
ns2 = api.namespace("ns2", path="/ns2")
73+
ns2.logger.setLevel(logging.INFO)
7374

7475
@ns1.route("/")
7576
class Ns1(restx.Resource):

0 commit comments

Comments
 (0)