Skip to content

Commit 72817fb

Browse files
authored
Merge pull request #231 from knaaptime/testing
testing
2 parents af53e83 + de57f22 commit 72817fb

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

ci/311.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ dependencies:
2727
- pytest
2828
- pytest-mpl
2929
- pytest-cov
30+
- pytest-xdist
3031
- twine
3132

ci/312.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ dependencies:
2727
- pytest
2828
- pytest-mpl
2929
- pytest-cov
30+
- pytest-xdist
3031
- twine
3132

3233
# docs

ci/313.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ dependencies:
2727
- pytest
2828
- pytest-mpl
2929
- pytest-cov
30+
- pytest-xdist
3031
- twine

segregation/tests/test_multiscalar_profile.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import pandana as pdna
88

99

10-
p = quilt3.Package.browse('osm/metro_networks_8k', "s3://spatial-ucr/")
11-
p['40900.h5'].fetch()
12-
net = pdna.Network.from_hdf5('40900.h5')
13-
1410
def test_multiscalar():
11+
p = quilt3.Package.browse('osm/metro_networks_8k', "s3://spatial-ucr/")
12+
p['40900.h5'].fetch()
13+
net = pdna.Network.from_hdf5('40900.h5')
14+
1515
s_map = gpd.read_file(load_example("Sacramento1").get_path("sacramentot2.shp"))
1616
df = s_map.to_crs(s_map.estimate_utm_crs())
1717
profile = compute_multiscalar_profile(
@@ -26,6 +26,11 @@ def test_multiscalar():
2626

2727

2828
def test_multiscalar_network():
29+
30+
p = quilt3.Package.browse('osm/metro_networks_8k', "s3://spatial-ucr/")
31+
p['40900.h5'].fetch()
32+
net = pdna.Network.from_hdf5('40900.h5')
33+
2934
s_map = gpd.read_file(load_example("Sacramento1").get_path("sacramentot2.shp"))
3035
df = s_map.to_crs(s_map.estimate_utm_crs())
3136
profile = compute_multiscalar_profile(

0 commit comments

Comments
 (0)