Skip to content

Commit b942da6

Browse files
committed
redo tests to handle larger stdouts from h5ad tool
1 parent 986646d commit b942da6

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

tests/test_external_tests.py

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -460,17 +460,11 @@ def test_that_the_exit_code_is_1_when_it_should_be(self):
460460
process.container, process.command, self.bad_h5ad_target.file.url
461461
)
462462
executor.execute()
463-
assert executor.std_out == (
464-
"HTAN h5ad File Validator\n"
465-
"File: htan_bad.h5ad\n"
466-
"Running cellxgene-schema\n"
467-
"Cellxgene run has errors. "
468-
"Please note errors or warnings in the output file.\n"
469-
"Running HTAN-specific validation\n"
470-
"HTAN Validation Failed.\n"
471-
"Please check output file for errors.\n"
472-
"\n"
473-
)
463+
assert "File: htan_bad.h5ad" in executor.std_out
464+
assert "Cellxgene run has errors. " in executor.std_out
465+
assert "HTAN Validation Failed." in executor.std_out
466+
assert "'cellxgene-schema output: Starting validation" in executor.std_out
467+
assert "HTAN-specific Validation Errors:" in executor.std_out
474468
assert executor.exit_code == "1"
475469

476470
@docker_enabled_test
@@ -480,16 +474,9 @@ def test_that_the_exit_code_is_0_when_it_should_be(self):
480474
process.container, process.command, self.good_h5ad_target.file.url
481475
)
482476
executor.execute()
483-
assert executor.std_out == (
484-
"HTAN h5ad File Validator\n"
485-
"File: htan_good.h5ad\n"
486-
"Running cellxgene-schema\n"
487-
"Cellxgene run successful. "
488-
"Please check the output file to see if warnings exist.\n"
489-
"Running HTAN-specific validation\n"
490-
"Validation Passed!\n"
491-
"\n"
492-
)
477+
assert "File: htan_good.h5ad" in executor.std_out
478+
assert "Cellxgene run successful." in executor.std_out
479+
assert "Validation Passed!" in executor.std_out
493480
assert executor.exit_code == "0"
494481

495482
@docker_enabled_test

0 commit comments

Comments
 (0)