Skip to content

Commit

Permalink
fix call to run validator function in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Molinelli authored and Evan Molinelli committed Dec 3, 2024
1 parent 7bc44a2 commit afb73a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cellxgene_schema_cli/tests/test_schema_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,13 +640,13 @@ def test_assay_ontology_term_id__as_categorical(self, validator_with_visium_assa
validator: Validator = validator_with_visium_assay

# check encoding as string
validator._validate_obsm()
validator._check_spatial_obs()
assert validator.errors == []
validator.reset()

# force encoding as 'categorical'
validator.adata.obs["assay_ontology_term_id"] = validator.adata.obs["assay_ontology_term_id"].astype("category")
validator._validate_obsm()
validator._check_spatial_obs()
assert validator.errors == []

def test_cell_type_ontology_term_id_invalid_term(self, validator_with_adata):
Expand Down

0 comments on commit afb73a7

Please sign in to comment.