Skip to content

Commit

Permalink
change pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakf committed Feb 8, 2024
1 parent a56c56f commit 39a22ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39a22ce

Please sign in to comment.