Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 931b537

Browse files
committed
build(coveralls): configure coveralls for code coverage
1 parent 66da508 commit 931b537

5 files changed

Lines changed: 8 additions & 11 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ __pycache__
44
build
55
dist
66
.eggs
7-
.DS_STORE
7+
.DS_STORE
8+
.coverage

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ install:
2323

2424
script:
2525
- flake8 .
26-
- python setup.py test
26+
- coverage run --source=typeform --omit=typeform/test/*.py setup.py test
27+
28+
after_success:
29+
- coveralls

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# typeform
22

3-
[![PyPI version](https://badge.fury.io/py/typeform.svg)](https://badge.fury.io/py/typeform) [![Build Status](https://travis-ci.org/MichaelSolati/typeform-python-sdk.svg?branch=master)](https://travis-ci.org/MichaelSolati/typeform-python-sdk)
3+
[![PyPI version](https://badge.fury.io/py/typeform.svg)](https://badge.fury.io/py/typeform) [![Build Status](https://travis-ci.org/MichaelSolati/typeform-python-sdk.svg?branch=master)](https://travis-ci.org/MichaelSolati/typeform-python-sdk) [![Coverage Status](https://coveralls.io/repos/github/MichaelSolati/typeform-python-sdk/badge.svg?branch=master)](https://coveralls.io/github/MichaelSolati/typeform-python-sdk?branch=master)
44

55
Python Client wrapper for [Typeform API](https://developer.typeform.com/)
66

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
coverage
2+
coveralls
23
flake8
34
flake8-quotes
45
requests-mock

typeform/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ def cleanDict(x: dict = {}) -> dict:
1414
return result
1515

1616

17-
def includes(param: any, array: list) -> bool:
18-
result = False
19-
for value in array:
20-
if value == param:
21-
result = True
22-
return result
23-
24-
2517
def mergeDict(x: dict, y: dict) -> dict:
2618
z = cleanDict(x)
2719
z.update(cleanDict(y))

0 commit comments

Comments
 (0)