@@ -1446,7 +1446,7 @@ ESRI White Paper](http://downloads.esri.com/support/whitepapers/ao_/J9749_MultiP
14461446The testing framework is pytest, and the tests are located in test_shapefile.py.
14471447This includes an extensive set of unit tests of the various pyshp features,
14481448and tests against various input data.
1449- In the same folder as README.md and shapefile.py, from the command line run
1449+ In the same folder as README.md and shapefile.py, from the command line run:
14501450
14511451``` shell
14521452python -m pytest
@@ -1455,12 +1455,21 @@ python -m pytest
14551455Additionally, all the code and examples located in this file, README.md,
14561456is tested and verified with the builtin doctest framework.
14571457A special routine for invoking the doctest is run when calling directly on shapefile.py.
1458- In the same folder as README.md and shapefile.py, from the command line run
1458+ In the same folder as README.md and shapefile.py, from the command line run:
14591459
14601460``` shell
14611461python shapefile.py
14621462```
14631463
1464+ This tests the code inside shapefile.py itself. To test an installed PyShp wheel against
1465+ the doctests, the same special routine can be invoked (in an env with the wheel and pytest
1466+ installed) from the test file:
1467+
1468+
1469+ ``` shell
1470+ python test_shapefile.py
1471+ ```
1472+
14641473Linux/Mac and similar platforms may need to run ` $ dos2unix README.md ` in order
14651474to correct line endings in README.md, if Git has not automatically changed them.
14661475
@@ -1497,8 +1506,6 @@ REPLACE_REMOTE_URLS_WITH_LOCALHOST=yes && python shapefile.py
14971506The network tests alone can also be run (without also running all the tests that don't
14981507make network requests) using: ` pytest -m network ` (or the doctests using: ` python shapefile.py -m network ` ).
14991508
1500- (* ) The steps to host the files using Caddy for PYthon 2 are in ./actions/test/action.yml. For reasons as
1501- yet unknown, shapefile.py's Reader class in Python 2 Pytest, can't connect to a Python 2 SimpleHTTPServer.
15021509
15031510
15041511# Contributors
0 commit comments