Skip to content

Commit

Permalink
Updated tests post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
MillenniumFalconMechanic committed Apr 30, 2024
1 parent 07ae9d9 commit 4d4fb2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cellxgene_schema_cli/tests/test_schema_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2029,12 +2029,20 @@ def test_obsm_values_spatial_embedding_missing__is_single_false(self, validator_
validator = validator_with_visium_assay
validator.adata.uns["spatial"] = {"is_single": False}
del validator.adata.obsm["spatial"]
# Format adata.obs into valid shape for Visium and is_single False.
validator.adata.obs.pop("array_col")
validator.adata.obs.pop("array_row")
validator.adata.obs.pop("in_tissue")
validator.validate_adata()
assert validator.errors == []

def test_obsm_values_spatial_embedding_present__is_single_false(self, validator_with_visium_assay):
validator = validator_with_visium_assay
validator.adata.uns["spatial"] = {"is_single": False}
# Format adata.obs into valid shape for Visium and is_single False.
validator.adata.obs.pop("array_col")
validator.adata.obs.pop("array_row")
validator.adata.obs.pop("in_tissue")
validator.validate_adata()
assert validator.errors == []

Expand Down

0 comments on commit 4d4fb2b

Please sign in to comment.