Skip to content

Commit 8e4bfeb

Browse files
authored
Merge pull request #26 from tlambert03/faster-tests
reduce test matrix
2 parents 1123a22 + 0027e9d commit 8e4bfeb

3 files changed

Lines changed: 7 additions & 21 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ build
1111
dist
1212
.vscode
1313
docs/_build/
14+
coverage.xml
1415
site
1516

1617
# remove me to enforce synchrony across development environments

tests/test_graph.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,9 @@
33

44
import spatial_graph as sg
55

6-
node_dtypes = ["int8", "uint8", "int16", "uint16"]
7-
node_attr_dtypes = [
8-
{"position": "double"},
9-
{"position": "double[2]"},
10-
{"position": "int[4]"},
11-
]
12-
edge_attr_dtypes = [
13-
{},
14-
{"score": "float64"},
15-
{"score": "float64", "color": "uint8"},
16-
]
6+
node_dtypes = ["uint16"]
7+
node_attr_dtypes = [{"position": "double[2]"}]
8+
edge_attr_dtypes = [{"score": "float64", "color": "uint8"}]
179

1810

1911
@pytest.mark.parametrize("node_dtype", node_dtypes)

tests/test_spatial_graph.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@
33

44
import spatial_graph as sg
55

6-
node_dtypes = ["int8", "uint8", "int16", "uint16"]
7-
node_attr_dtypes = [
8-
{"position": "double[4]"},
9-
{"position": "int[4]"},
10-
]
11-
edge_attr_dtypes = [
12-
{},
13-
{"score": "float64"},
14-
{"score": "float64", "color": "uint8"},
15-
]
6+
node_dtypes = ["uint16"]
7+
node_attr_dtypes = [{"position": "double[4]"}]
8+
edge_attr_dtypes = [{"score": "float64", "color": "uint8"}]
169

1710

1811
@pytest.mark.parametrize("node_dtype", node_dtypes)

0 commit comments

Comments
 (0)