Skip to content

Commit

Permalink
Adding Coveralls
Browse files Browse the repository at this point in the history
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
  • Loading branch information
jpwsutton committed Aug 15, 2017
1 parent fbab3ba commit cf7bfba
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
Empty file added .coverage
Empty file.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -4,4 +4,5 @@ python:
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
script: python tests_basic.py -v
script: py.test --cov=instax tests_basic.py --doctest-modules --pep8 instax
after_success: coveralls
12 changes: 5 additions & 7 deletions instax/statusCodes.py
Expand Up @@ -11,18 +11,16 @@ class ResponseCode:
""" The Current Response Code
"""

RET_HOLD, ST_UPDATE, E_OTHER_USED, E_NOT_IMAGE_DATA,
E_BATTERY_EMPTY, E_PRINTING, E_EJECTING, E_TESTING,
E_CHARGE, E_CONNECT, E_RCV_FRAME, E_FILM_EMPTY,
E_CAM_POINT, E_MOTOR, E_UNMATCH_PASS, E_PI_SENSOR,
E_RCV_FRAME = range(17)
(RET_HOLD, ST_UPDATE, E_OTHER_USED, E_NOT_IMAGE_DATA,
E_BATTERY_EMPTY, E_PRINTING, E_EJECTING, E_TESTING,
E_CHARGE, E_CONNECT, E_RCV_FRAME, E_FILM_EMPTY,
E_CAM_POINT, E_MOTOR, E_UNMATCH_PASS, E_PI_SENSOR,
E_RCV_FRAME) = range(17)

def __init__(self, status):
self.status = status




"""
errorCodes = {
127: 'ST_UPDATE & RET_HOLD',
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
@@ -1,2 +1,8 @@
Pillow==4.0.0
olefile==0.44
pycodestyle==2.3.1
pytest==3.2.1
pytest-cache==1.0
pytest-cov==2.5.1
pytest-pep8==1.0.6
python-coveralls==2.9.1

0 comments on commit cf7bfba

Please sign in to comment.