Skip to content

Commit 5674b00

Browse files
coverage
1 parent 71aeb19 commit 5674b00

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ releases/*
55
dist/*
66
build/*
77
.td
8+
.coverage
89
*.egg-info/
10+
td_example

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@ python:
44
- "3.3"
55
install:
66
- pip install colorama
7+
- pip install coverage
8+
- pip install python-coveralls
79
- pip install . --use-mirrors
8-
script: nosetests tests/
10+
script:
11+
- nosetests --with-coverage --cover-package=td
12+
after_success:
13+
- coveralls

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Heavily inspired by [devtodo][devtodo], but with some nasty features, like:
66
* Sorting/Filtering specific levels only.
77
* Persistent sort/filter/view options.
88
* Written in pure Python (it even has docstrings).
9-
* Tests ([![Build Status](https://travis-ci.org/KenjiTakahashi/td.png?branch=master)](https://travis-ci.org/KenjiTakahashi/td)).
9+
* Tests ([![Build Status](https://travis-ci.org/KenjiTakahashi/td.png?branch=master)](https://travis-ci.org/KenjiTakahashi/td)[![Coverage](https://coveralls.io/repos/KenjiTakahashi/td/badge.png?branch=master)](https://coveralls.io/r/KenjiTakahashi/td)).
1010

1111
Oh, and it will automagically pick up your existing [devtodo][devtodo] lists!
1212

td/model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def remove(self, index):
221221
try:
222222
del data[i]
223223
except IndexError:
224-
pass # logger
224+
pass # TODO(Kenji): logger
225225
else:
226226
data = data[i][4]
227227

@@ -238,7 +238,7 @@ def exists(self, index):
238238
for c in self._split(index):
239239
i = int(c) - 1
240240
data = data[i][4]
241-
except:
241+
except Exception:
242242
return False
243243
return True
244244

0 commit comments

Comments
 (0)