Skip to content

Commit

Permalink
clearer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Sep 7, 2023
1 parent 5fe76ec commit a881d75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions anndata/tests/test_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_del_set_equiv_X():


@pytest.mark.parametrize(
("obs", "var", "shape"),
("obs", "var", "shape_expected"),
[
pytest.param(dict(obs_names=["1", "2"]), None, (2, 0), id="obs"),
pytest.param(None, dict(var_names=["a", "b"]), (0, 2), id="var"),
Expand All @@ -78,10 +78,10 @@ def test_del_set_equiv_X():
),
],
)
def test_init_x_as_none_shape_from_obs_var(obs, var, shape):
def test_init_x_as_none_shape_from_obs_var(obs, var, shape_expected):
adata = AnnData(None, obs, var)
assert adata.X is None
assert adata.shape == shape
assert adata.shape == shape_expected


def test_init_x_as_none_explicit_shape():
Expand Down

0 comments on commit a881d75

Please sign in to comment.