mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
Merge pull request #29 from ThomasWaldmann/master
use py.test, add cfg for flake8
This commit is contained in:
commit
b6cc2fe2ad
4 changed files with 17 additions and 5 deletions
|
@ -9,4 +9,4 @@ install:
|
|||
- "pip install --use-mirrors Cython"
|
||||
- "pip install -e ."
|
||||
# command to run tests
|
||||
script: fakeroot -u python -m borg.testsuite.run -vb
|
||||
script: fakeroot -u py.test
|
||||
|
|
|
@ -69,7 +69,7 @@ Some of the steps detailled below might be useful also for non-git installs.
|
|||
|
||||
# install some dependencies into virtual env
|
||||
pip install cython # to compile .pyx -> .c
|
||||
pip install tox # optional, for running unit tests
|
||||
pip install tox pytest # optional, for running unit tests
|
||||
pip install sphinx # optional, to build the docs
|
||||
|
||||
# get |project_name| from github, install it
|
||||
|
|
8
setup.cfg
Normal file
8
setup.cfg
Normal file
|
@ -0,0 +1,8 @@
|
|||
[pytest]
|
||||
python_files = testsuite/*.py
|
||||
|
||||
[flake8]
|
||||
ignore = E123,E126,E127,E129,E203,E221,E226,E231,E241,E265,E301,E302,E303,E713,F401,F403,W291,W293,W391
|
||||
max-line-length = 250
|
||||
exclude = versioneer.py,docs/conf.py,borg/_version.py
|
||||
max-complexity = 100
|
10
tox.ini
10
tox.ini
|
@ -3,9 +3,13 @@ envlist = py32, py33, py34
|
|||
|
||||
[testenv]
|
||||
# Change dir to avoid import problem
|
||||
changedir = docs
|
||||
commands = {envpython} -m borg.testsuite.run -bv []
|
||||
changedir = {envdir}
|
||||
deps =
|
||||
pytest
|
||||
commands = py.test
|
||||
passenv = * # fakeroot -u needs some env vars
|
||||
|
||||
[testenv:py32]
|
||||
deps = mock
|
||||
deps =
|
||||
pytest
|
||||
mock
|
||||
|
|
Loading…
Reference in a new issue