Skip to content

Commit dc1b729

Browse files
Merge pull request #465 from neutrinoceros/tst/meaningful-test-grids
TST: use meaningful grid definitions in tests
2 parents 76c1892 + fbd95dd commit dc1b729

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ def test_inconsistent_grid_data(data, invalid_attr, expected):
404404
geometry="cartesian",
405405
grid={
406406
"cell_edges": {
407-
"x": np.array([0.0, 0.0]),
408-
"y": np.array([0.0, 0.0, 0.0]),
407+
"x": np.array([0.0, 1.0]),
408+
"y": np.array([0.0, 2.0, 4.0]),
409409
},
410410
"fields": {
411411
"density": data,
@@ -419,8 +419,8 @@ def test_validate_empty_fields():
419419
geometry="cartesian",
420420
grid={
421421
"cell_edges": {
422-
"x": np.array([0.0, 0.0]),
423-
"y": np.array([0.0, 0.0, 0.0]),
422+
"x": np.array([0.0, 1.0]),
423+
"y": np.array([0.0, 2.0, 4.0]),
424424
},
425425
"fields": {},
426426
},

0 commit comments

Comments
 (0)