The zip file should contain one shapefile only, and pass the following tests:
with shapefile.Reader(url) as sf:
for recShape in sf.iterShapeRecords():
pass
assert len(sf) > 0
assert sf.shp.closed == sf.shx.closed == sf.dbf.closed == True
sf = shapefile.Reader("https://github.com/JamesParrott/PyShp_test_shapefile/raw/main/gis_osm_natural_a_free_1.zip")
The REPL snippets within Readme.md are run as doctests in CI. These alongwith the Pytest tests can be run in CI, by making a fork, by enabling Github Actions on it, appending /pyshp/actions/workflows/build.yml to the fork's url, and clicking the Run workflow button (select the branch containing the changes to be tested).
Contributions
[ ] I am interested in implementing the described feature request and submit as a PR.
Describe the feature request
The new URL should replace the one in the code here:
https://github.com/GeospatialPython/pyshp/blob/daab62f87fb5578fbd9aaf487d59a135212cad40/test_shapefile.py#L278
and in the read me here:
https://github.com/GeospatialPython/pyshp/blob/daab62f87fb5578fbd9aaf487d59a135212cad40/README.md?plain=1#L302
The zip file should contain one shapefile only, and pass the following tests:
The REPL snippets within Readme.md are run as doctests in CI. These alongwith the Pytest tests can be run in CI, by making a fork, by enabling Github Actions on it, appending /pyshp/actions/workflows/build.yml to the fork's url, and clicking the Run workflow button (select the branch containing the changes to be tested).
Contributions