Skip to content

Commit

Permalink
Remove pytest as it is incompatible with click applications
Browse files Browse the repository at this point in the history
* Update dependencies.
  • Loading branch information
mtl1979 committed Oct 4, 2023
1 parent 84ee4ef commit 0bfdb89
Show file tree
Hide file tree
Showing 7 changed files with 496 additions and 615 deletions.
3 changes: 0 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ flake8 = "*"
yapf = "*"
pip = ">=21.3"
pipenv = "*"
pytest = "*"
pytest-cov = "*"
toml = "*"
setuptools = ">=64"
pbr = "*"
1,001 changes: 452 additions & 549 deletions Pipfile.lock

Large diffs are not rendered by default.

58 changes: 25 additions & 33 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
certifi==2023.5.7
coverage[toml]==7.2.5
distlib==0.3.6
exceptiongroup==1.1.1
filelock==3.12.0
flake8==6.0.0
iniconfig==2.0.0
certifi==2023.7.22
distlib==0.3.7
filelock==3.12.4
flake8==6.1.0
importlib-metadata==6.8.0
mccabe==0.7.0
packaging==23.1
pbr==5.11.1
pip==23.1.2
pipenv==2023.5.19
platformdirs==3.5.1
pluggy==1.0.0
pycodestyle==2.10.0
pyflakes==3.0.1
pytest==7.3.1
pytest-cov==4.0.0
setuptools==67.8.0
toml==0.10.2
pip==23.2.1
pipenv==2023.10.3
platformdirs==3.11.0
pycodestyle==2.11.0
pyflakes==3.1.0
setuptools==68.2.2
tomli==2.0.1
virtualenv==20.23.0
virtualenv-clone==0.5.7
yapf==0.33.0
aiohttp==3.8.4
virtualenv==20.24.5
yapf==0.40.2
zipp==3.17.0
aiohttp==3.8.5
aiosignal==1.3.1
async-timeout==4.0.2
async-timeout==4.0.3
attrs==23.1.0
charset-normalizer==3.1.0
click==8.1.3
dnspython==2.3.0
frozenlist==1.3.3
charset-normalizer==3.3.0
click==8.1.7
dnspython==2.4.2
frozenlist==1.4.0
guilded==0.0.4
guilded-py==1.8.0
guilded-py==1.11.0
idna==3.4
mongoengine==0.27.0
multidict==6.0.4
munch==3.0.0
pymongo==4.3.3
pyyaml==6.0
munch==4.0.0
pymongo==4.5.0
pyyaml==6.0.1
requests==2.31.0
six==1.16.0
urllib3==2.0.2
urllib3==2.0.6
yarl==1.9.2
25 changes: 12 additions & 13 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
aiohttp==3.8.4
aiohttp==3.8.5
aiosignal==1.3.1
async-timeout==4.0.2
async-timeout==4.0.3
attrs==23.1.0
certifi==2023.5.7
charset-normalizer==3.1.0
click==8.1.3
dnspython==2.3.0
frozenlist==1.3.3
certifi==2023.7.22
charset-normalizer==3.3.0
click==8.1.7
dnspython==2.4.2
frozenlist==1.4.0
guilded==0.0.4
guilded-py==1.8.0
guilded-py==1.11.0
idna==3.4
mongoengine==0.27.0
multidict==6.0.4
munch==3.0.0
pymongo==4.3.3
pyyaml==6.0
munch==4.0.0
pymongo==4.5.0
pyyaml==6.0.1
requests==2.31.0
six==1.16.0
urllib3==2.0.2
urllib3==2.0.6
yarl==1.9.2
Empty file removed tests/__init__.py
Empty file.
4 changes: 0 additions & 4 deletions tests/base_test.py

This file was deleted.

20 changes: 7 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ skip_missing_interpreters = True
[testenv]
deps = pip>=21.3
pipenv>=9.0.1
pytest
pytest-cov
setuptools>=64
toml
yapf
usedevelop = True
envdir = {toxinidir}/.venv
Expand All @@ -19,29 +16,26 @@ envdir = {toxinidir}/.venv
basepython = python3.8
commands =
pipenv install --dev
pipenv run pytest --junitxml=output.xml --cov=talleo_tip_bot_guilded tests/
pipenv run flake8 talleo_tip_bot_guilded/ tests/
pipenv run yapf -d -r talleo_tip_bot_guilded/ tests/
pipenv run flake8 talleo_tip_bot_guilded/
pipenv run yapf -d -r talleo_tip_bot_guilded/
pipenv run sh {toxinidir}/gen_requirements.sh

[testenv:py39]
basepython = python3.9
commands =
pipenv install --dev
pipenv run pytest --junitxml=output.xml --cov=talleo_tip_bot_guilded tests/
pipenv run flake8 talleo_tip_bot_guilded/ tests/
pipenv run yapf -d -r talleo_tip_bot_guilded/ tests/
pipenv run flake8 talleo_tip_bot_guilded/
pipenv run yapf -d -r talleo_tip_bot_guilded/
pipenv run sh {toxinidir}/gen_requirements.sh

[testenv:py310]
basepython = python3.10
commands =
pipenv install --dev
pipenv run pytest --junitxml=output.xml --cov=talleo_tip_bot_guilded tests/
pipenv run flake8 talleo_tip_bot_guilded/ tests/
pipenv run yapf -d -r talleo_tip_bot_guilded/ tests/
pipenv run flake8 talleo_tip_bot_guilded/
pipenv run yapf -d -r talleo_tip_bot_guilded/
pipenv run sh {toxinidir}/gen_requirements.sh

[testenv:run_yapf]
commands =
pipenv run yapf -i -r talleo_tip_bot_guilded/ tests/
pipenv run yapf -i -r talleo_tip_bot_guilded/

0 comments on commit 0bfdb89

Please sign in to comment.