Skip to content

Commit 0727b00

Browse files
authored
Merge pull request #41 from gisce/use_coverage
Add coverage
2 parents a1ee461 + d6dd00a commit 0727b00

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
source = ./libcomxml

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: python
22
python:
3-
- "2.6"
43
- "2.7"
54
install:
65
- "pip install ."
7-
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
6+
- "pip install coveralls"
87
script:
9-
- py.test tests/*.py
10-
notifications:
11-
irc: "irc.freenode.org#gisce-commits"
8+
- coverage run setup.py test
9+
after_success:
10+
- coveralls
11+
- coverage report

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
packages=find_packages(),
1111
install_requires=['lxml'],
1212
license='None',
13-
description='This library permits XML generation from Python objects'
13+
description='This library permits XML generation from Python objects',
14+
test_suite='tests'
1415
)

tests/test_libcomxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ class Namespaces(unittest.TestCase):
219219
def setUp(self):
220220
self.xml = "<?xml version='1.0' encoding='UTF-8'?>\n"
221221
self.xml += "<rss "
222-
self.xml += "xmlns:opensearch=\"http://a9.com/-/spec/opensearch/1.1/\" "
223222
self.xml += "xmlns:atom=\"http://www.w3.org/2005/Atom\" "
223+
self.xml += "xmlns:opensearch=\"http://a9.com/-/spec/opensearch/1.1/\" "
224224
self.xml += "version=\"2.0\">"
225225
self.xml += "<channel><link>http://example.com/New+York+history</link>"
226226
self.xml += "<atom:link "

0 commit comments

Comments
 (0)