Skip to content

Commit

Permalink
Update tests and try to get around a Fiona bug with the properties an…
Browse files Browse the repository at this point in the history
…d circular references
  • Loading branch information
palewire committed Feb 23, 2023
1 parent 1594ab7 commit be78239
Show file tree
Hide file tree
Showing 5 changed files with 891,713 additions and 698,401 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- id: run
name: Run
run: pipenv run python setup.py test
run: pipenv run pytest tests/test.py
shell: bash

test-build:
Expand Down
2 changes: 1 addition & 1 deletion nws_wwa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _parse_shapefile(name):

# Convert the shp to GeoJSON features
feature_list = [
Feature(geometry=d["geometry"], properties=d["properties"]) for d in shp
Feature(geometry=obj["geometry"], properties=dict(obj["properties"])) for obj in shp
]

# We're done here
Expand Down
Loading

0 comments on commit be78239

Please sign in to comment.