Skip to content

Commit b541ff0

Browse files
committed
bump coverage further
1 parent 5783861 commit b541ff0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/test_knn.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def test_bandwidth_no_decay():
8585
@raises(ValueError)
8686
def test_knn_no_knn_no_bandwidth():
8787
build_graph(data, graphtype='knn',
88-
knn=None, bandwidth=None)
88+
knn=None, bandwidth=None,
89+
thresh=1e-4)
8990

9091

9192
#####################################################
@@ -328,6 +329,14 @@ def test_shortest_path():
328329
np.testing.assert_equal(P, G.shortest_path())
329330

330331

332+
@raises(NotImplementedError)
333+
def test_shortest_path_decay():
334+
data_small = data[np.random.choice(
335+
len(data), len(data) // 4, replace=False)]
336+
G = build_graph(data_small, knn=5, decay=15)
337+
G.shortest_path()
338+
339+
331340
####################
332341
# Test API
333342
####################

0 commit comments

Comments
 (0)