Skip to content

Commit 986646d

Browse files
committed
fixed various pre-commit problems
1 parent 8020153 commit 986646d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/dcqc/tests/h5ad_htan_validator_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
class H5adHtanValidatorTest(ExternalBaseTest):
66
"""
77
Based on [HTAN H5AD Validator](https://github.com/ncihtan/h5ad)
8-
This is an h5ad validator for HTAN Phase 2 single cell/single nuclei RNA-sequencing data.
8+
This is an h5ad validator for HTAN Phase 2 single
9+
cell/single nuclei RNA-sequencing data.
910
"""
1011

1112
tier = TestTier.INTERNAL_CONFORMANCE

tests/test_external_tests.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,8 @@ def test_that_the_exit_code_is_1_when_it_should_be(self):
464464
"HTAN h5ad File Validator\n"
465465
"File: htan_bad.h5ad\n"
466466
"Running cellxgene-schema\n"
467-
"Cellxgene run has errors. Please note errors or warnings in the output file.\n"
467+
"Cellxgene run has errors. "
468+
"Please note errors or warnings in the output file.\n"
468469
"Running HTAN-specific validation\n"
469470
"HTAN Validation Failed.\n"
470471
"Please check output file for errors.\n"
@@ -483,7 +484,8 @@ def test_that_the_exit_code_is_0_when_it_should_be(self):
483484
"HTAN h5ad File Validator\n"
484485
"File: htan_good.h5ad\n"
485486
"Running cellxgene-schema\n"
486-
"Cellxgene run successful. Please check the output file to see if warnings exist.\n"
487+
"Cellxgene run successful. "
488+
"Please check the output file to see if warnings exist.\n"
487489
"Running HTAN-specific validation\n"
488490
"Validation Passed!\n"
489491
"\n"
@@ -507,9 +509,7 @@ def test_that_wrong_file_type_has_1_exit_code(self):
507509
)
508510
assert executor.exit_code == "1"
509511

510-
def test_that_the_test_correctly_interprets_exit_code_0_and_1(
511-
self, mocker
512-
):
512+
def test_that_the_test_correctly_interprets_exit_code_0_and_1(self, mocker):
513513
# 1 is pass, 0 is fail
514514
with TemporaryDirectory() as tmp_dir:
515515
path_0 = Path(tmp_dir, "code_0.txt")
@@ -531,4 +531,4 @@ def test_that_the_test_correctly_interprets_exit_code_0_and_1(
531531
test, "_find_process_outputs", return_value=fail_outputs
532532
)
533533
test_status = test.get_status()
534-
assert test_status == TestStatus.FAIL
534+
assert test_status == TestStatus.FAIL

0 commit comments

Comments
 (0)