Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bento007 committed Sep 22, 2023
1 parent 9e73307 commit d85e0d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cellxgene_schema_cli/cellxgene_schema/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ def validate(
)
to_memory = (
add_labels_file is not None or write_check
) # if we're adding labels or doing a full validation, read to memory
) # if we're adding labels or doing a write_check, then read to memory
validator.validate_adata(h5ad_path, to_memory=to_memory, write_check=write_check)
logger.info(f"Validation complete in {datetime.now() - start} with status is_valid={validator.is_valid}")

Expand Down
2 changes: 1 addition & 1 deletion cellxgene_schema_cli/tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def test__validate_with_write_check_false(self, mock_write_check, mock_read_h5ad
@mock.patch("cellxgene_schema.validate.read_h5ad", wraps=read_h5ad)
@mock.patch("cellxgene_schema.validate.Validator.write_check")
def test__validate_with_write_check_true(self, mock_write_check, mock_read_h5ad):
validate(h5ad_valid, full=True)
validate(h5ad_valid, write_check=True)
mock_write_check.assert_called_once()
mock_read_h5ad.assert_called_with(h5ad_valid, True)

Expand Down

0 comments on commit d85e0d5

Please sign in to comment.