Skip to content

Commit 7a27a71

Browse files
authored
Merge pull request #95 from GeospatialPython/karimbahgat-patch-improvedtests
Remove test verbosity and add Readme Travis CI testing status icon
2 parents 8b34fc9 + ceb99b0 commit 7a27a71

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# PyShp
2+
3+
This library reads and writes ESRI Shapefiles in pure Python.
4+
5+
[![Build Status](https://travis-ci.org/GeospatialPython/pyshp.svg?branch=master)](https://travis-ci.org/GeospatialPython/pyshp)
6+
17
## Contents
28

39
[Overview](#overview)

shapefile.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,12 @@ def __fieldNorm(self, fieldName):
12451245
def test(**kwargs):
12461246
import doctest
12471247
doctest.NORMALIZE_WHITESPACE = 1
1248-
verbosity = kwargs.get('verbose', 1)
1248+
verbosity = kwargs.get('verbose', 0)
1249+
if verbosity == 0:
1250+
print('Running doctests...')
12491251
failure_count, test_count = doctest.testfile("README.md", verbose=verbosity)
1252+
if verbosity == 0 and failure_count == 0:
1253+
print('All test passed successfully')
12501254
return failure_count
12511255

12521256
if __name__ == "__main__":

0 commit comments

Comments
 (0)