From d85e0d5ac05eaac951cd9b0e70d7fec3cbeec2c7 Mon Sep 17 00:00:00 2001 From: Trent Smith Date: Fri, 22 Sep 2023 15:04:32 -0700 Subject: [PATCH] fix test --- cellxgene_schema_cli/cellxgene_schema/validate.py | 2 +- cellxgene_schema_cli/tests/test_validate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cellxgene_schema_cli/cellxgene_schema/validate.py b/cellxgene_schema_cli/cellxgene_schema/validate.py index b7564bbcd..f4ccb517c 100644 --- a/cellxgene_schema_cli/cellxgene_schema/validate.py +++ b/cellxgene_schema_cli/cellxgene_schema/validate.py @@ -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}") diff --git a/cellxgene_schema_cli/tests/test_validate.py b/cellxgene_schema_cli/tests/test_validate.py index b2b0c7a07..da94ed5e1 100644 --- a/cellxgene_schema_cli/tests/test_validate.py +++ b/cellxgene_schema_cli/tests/test_validate.py @@ -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)