Merge pull request #153 from python-escpos/improve/add-hypothesis-support

Improve/add hypothesis support
This commit is contained in:
Patrick Kanzler 2016-08-02 00:25:00 +02:00 committed by GitHub
commit 6e74748773
5 changed files with 17 additions and 1 deletions

1
.gitignore vendored
View File

@ -18,6 +18,7 @@ build/
dist/ dist/
.coverage .coverage
src/escpos/version.py src/escpos/version.py
.hypothesis
# testing temporary directories # testing temporary directories
test/test-cli-output/ test/test-cli-output/

View File

@ -28,6 +28,7 @@ matrix:
allow_failures: allow_failures:
- python: 3.5-dev - python: 3.5-dev
- python: nightly - python: nightly
- python: pypy3
before_install: before_install:
- pip install tox codecov - pip install tox codecov
script: script:

View File

@ -1,4 +1,16 @@
codecov:
bot: patkan
coverage: coverage:
status:
project:
default: # status context
target: auto
threshold: "1%"
patch:
default:
target: auto
threshold: "1%"
range: "60...100" range: "60...100"
comment: off comment: off

View File

@ -116,7 +116,7 @@ setup(
setup_requires=[ setup_requires=[
'setuptools_scm', 'setuptools_scm',
], ],
tests_require=['tox', 'nose', 'scripttest'], tests_require=['tox', 'nose', 'scripttest', 'mock', 'hypothesis'],
cmdclass={'test': Tox}, cmdclass={'test': Tox},
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [

View File

@ -5,6 +5,8 @@ envlist = py27, py34, py35, docs
deps = nose deps = nose
coverage coverage
scripttest scripttest
mock
hypothesis
commands = nosetests --with-coverage --cover-erase --cover-branches commands = nosetests --with-coverage --cover-erase --cover-branches
[testenv:docs] [testenv:docs]