From 39a22ce02e33aa418bfbb6ba18700e47015647b4 Mon Sep 17 00:00:00 2001 From: jiakf Date: Thu, 8 Feb 2024 17:43:26 -0600 Subject: [PATCH] change pytest --- tests/conftest.py | 4 +++- tox.ini | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index aa6fc76f..e5d6d307 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -132,7 +132,9 @@ def setup_mock_server() -> None: # server = Process(target=mock_server.app.run) server = Process(target=run) server.start() - time.sleep(10) + time.sleep( + 10 + ) # takes longer with python3.8 on macos, i guess fork defaults with 'spawn' now instead of 'fork' yield server.terminate() diff --git a/tox.ini b/tox.ini index f66b8b95..ed66a342 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,7 @@ deps= commands= python setup.py install pip freeze - pytest -lvvx --cov=gdc_client --cov-report xml tests/ {posargs} + pytest -lvv --cov=gdc_client --cov-report xml tests/ {posargs} [testenv:coverage] passenv=CODACY_PROJECT_TOKEN