You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> sf = shapefile.Reader("https://github.com/JamesParrott/PyShp_test_shapefile/raw/main/gis_osm_natural_a_free_1.zip")
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.
The text was updated successfully, but these errors were encountered:
Describe the feature request
The new URL should replace the one in the code here:
pyshp/test_shapefile.py
Line 278 in daab62f
and in the read me here:
pyshp/README.md
Line 302 in daab62f
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
The text was updated successfully, but these errors were encountered: