Skip to content

Remove test verbosity and add Readme Travis CI testing status icon #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# PyShp

This library reads and writes ESRI Shapefiles in pure Python.

[![Build Status](https://travis-ci.org/GeospatialPython/pyshp.svg?branch=master)](https://travis-ci.org/GeospatialPython/pyshp)

## Contents

[Overview](#overview)
Expand Down
6 changes: 5 additions & 1 deletion shapefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,12 @@ def __fieldNorm(self, fieldName):
def test(**kwargs):
import doctest
doctest.NORMALIZE_WHITESPACE = 1
verbosity = kwargs.get('verbose', 1)
verbosity = kwargs.get('verbose', 0)
if verbosity == 0:
print('Running doctests...')
failure_count, test_count = doctest.testfile("README.md", verbose=verbosity)
if verbosity == 0 and failure_count == 0:
print('All test passed successfully')
return failure_count

if __name__ == "__main__":
Expand Down