Skip to content

Commit

Permalink
Merge pull request jarun#668 from LeXofLeviafan/tests-fix
Browse files Browse the repository at this point in the history
small fixes for testing bugs
  • Loading branch information
jarun committed Jan 23, 2023
2 parents c19853c + e2cfa99 commit f32ed53
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bukuserver/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Flask-Admin>=1.6.0
Flask-API>=3.0.post1
Flask-Bootstrap>=3.3.7.1
flask-paginate>=2022.1.8
flask-reverse-proxy-fix @ https://github.com/rachmadaniHaryono/flask-reverse-proxy-fix/archive/refs/tags/v0.2.2rc1.zip
flask-reverse-proxy-fix @ https://github.com/rachmadaniHaryono/flask-reverse-proxy-fix/archive/refs/tags/v0.2.3.zip
Flask-WTF>=1.0.1
Flask>=2.2.2
1 change: 0 additions & 1 deletion tests/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ disable=
logging-format-interpolation,
lost-exception,
missing-docstring,
no-self-use,
pointless-statement,
protected-access,
redefined-argument-from-local,
Expand Down
1 change: 1 addition & 0 deletions tests/test_buku.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ def test_sigint_handler(capsys):
),
],
],
ids=lambda s: (s.split('?')[0] + '~' if isinstance(s, str) and '?' in s else None),
)
def test_network_handler_with_url(url, exp_res):
"""test func."""
Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ envlist = python37,python38,python39,python310,pylint,flake8

[flake8]
max-line-length = 139
exclude =
.tox
build
venv
ignore =
# C901 func is too complex
C901,
Expand Down Expand Up @@ -53,10 +57,8 @@ commands =

[testenv:pylint]
deps = pylint
whitelist_externals =
/usr/bin/find
commands =
find . -iname "*.py" -not -path "./.tox/*" -not -path "./build/*" -exec pylint --rcfile tests/.pylintrc \{\} +
pylint . --rc-file tests/.pylintrc --recursive yes --ignore-paths .tox/,build/,venv/

[testenv:flake8]
deps = flake8
Expand Down

0 comments on commit f32ed53

Please sign in to comment.