Skip to content

Commit a9f265f

Browse files
authored
Merge pull request #141 from KaartGroup/pytest
Leveraging pytest features
2 parents cda5482 + 92bc83b commit a9f265f

20 files changed

+1801
-64
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
max-parallel: 5
1010
matrix:
11-
python-version: [3.6, 3.7, 3.8, 3.9]
11+
python-version: [3.7, 3.8, 3.9]
1212

1313
steps:
1414
- uses: actions/checkout@v1

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: python
22
python:
3-
- 3.6
43
- 3.7
54
- 3.8
65
- 3.9

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ name = "pypi"
55

66
[packages]
77
geojson = ">=1.3.1"
8+
pytest = "6.0.0"
89
requests = ">=2.20.0"
9-
nose = ">=1.3.7"
1010
shapely = ">=1.6.4"
1111

1212
[dev-packages]

conftest.py

Whitespace-only changes.

overpass/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _as_geojson(self, elements):
273273
except KeyError:
274274
raise UnknownOverpassError("Received corrupt data from Overpass (no id).")
275275
elem_type = elem.get("type")
276-
elem_tags = elem.get("tags")
276+
elem_tags = elem.get("tags", {})
277277
elem_nodes = elem.get("nodes", None)
278278
elem_timestamp = elem.get("timestamp", None)
279279
elem_user = elem.get("user", None)

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pytest>=6.2.0
2+
requests-mock[fixture]
23
tox>=3.20.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
geojson>=1.3.1
2+
pytest
23
requests>=2.8.1
3-
nose>=1.3.7
44
shapely>=1.6.4

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
keywords=["openstreetmap", "overpass", "wrapper"],
1414
classifiers=[
1515
"License :: OSI Approved :: Apache Software License",
16-
"Programming Language :: Python :: 3.6",
1716
"Programming Language :: Python :: 3.7",
1817
"Programming Language :: Python :: 3.8",
1918
"Programming Language :: Python :: 3.9",

tests/example.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/example.response

-18 KB
Binary file not shown.

0 commit comments

Comments
 (0)