Skip to content

Commit

Permalink
lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Molinelli authored and Evan Molinelli committed Dec 2, 2024
1 parent b97cc18 commit 6895543
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cellxgene_schema_cli/tests/test_schema_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
from cellxgene_schema.utils import getattr_anndata
from cellxgene_schema.validate import (
ASSAY_VISIUM_11M,
ERROR_SUFFIX_IS_SINGLE,
ERROR_SUFFIX_VISIUM,
ERROR_SUFFIX_VISIUM_11M,
ERROR_SUFFIX_VISIUM_AND_IS_SINGLE_TRUE,
ERROR_SUFFIX_IS_SINGLE,
SPATIAL_HIRES_IMAGE_MAX_DIMENSION_SIZE,
SPATIAL_HIRES_IMAGE_MAX_DIMENSION_SIZE_VISIUM_11MM,
VISIUM_11MM_AND_IS_SINGLE_TRUE_MATRIX_SIZE,
Expand Down Expand Up @@ -388,13 +388,15 @@ def test_raw_values__multiple_invalid_in_tissue_errors(
validator.validate_adata()
if assay_ontology_term_id == ASSAY_VISIUM_11M:
assert (
validator.errors[0] == f"ERROR: When {ERROR_SUFFIX_VISIUM_11M} and {ERROR_SUFFIX_IS_SINGLE}, the raw matrix must be the "
validator.errors[0]
== f"ERROR: When {ERROR_SUFFIX_VISIUM_11M} and {ERROR_SUFFIX_IS_SINGLE}, the raw matrix must be the "
"unfiltered feature-barcode matrix 'raw_feature_bc_matrix'. It must have exactly "
f"{validator.visium_and_is_single_true_matrix_size} rows. Raw matrix row count is 2."
)
else:
assert (
validator.errors[0] == f"ERROR: When {ERROR_SUFFIX_VISIUM} and {ERROR_SUFFIX_IS_SINGLE}, the raw matrix must be the "
validator.errors[0]
== f"ERROR: When {ERROR_SUFFIX_VISIUM} and {ERROR_SUFFIX_IS_SINGLE}, the raw matrix must be the "
"unfiltered feature-barcode matrix 'raw_feature_bc_matrix'. It must have exactly "
f"{validator.visium_and_is_single_true_matrix_size} rows. Raw matrix row count is 2."
)
Expand Down

0 comments on commit 6895543

Please sign in to comment.