Skip to content

Commit f9d9c0f

Browse files
committed
refactor flake8
1 parent 5a935d9 commit f9d9c0f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

GenderCheck/test_calculate_gender.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,14 @@ def test_get_gender_from_bam(self, bam, mapping_qual, locus_y, ratio_y, expected
3232

3333

3434
class TestCompareGender():
35-
''' Test function CompareGender
36-
1) test_gender and true_gender identical, should be PASS
37-
2) test_gender and true_gender not identical , should be FAIL
38-
3) true_gender unknown, should be PASS
39-
4) true_gender not_detected, should be FAIL
40-
'''
4135
@pytest.mark.parametrize("sample_id,analysis_id,test_gender,true_gender,expected", [
36+
# test_gender and true_gender identical, should be PASS
4237
("test_sample", "test_analyse", "male", "male", "test_sample\ttest_analyse\tmale\tmale\tPASS\n"),
38+
# test_gender and true_gender not identical , should be FAIL
4339
("test_sample", "test_analyse", "male", "female", "test_sample\ttest_analyse\tmale\tfemale\tFAIL\n"),
40+
# true_gender unknown, should be PASS
4441
("test_sample", "test_analyse", "male", "unknown", "test_sample\ttest_analyse\tmale\tunknown\tPASS\n"),
42+
# true_gender not_detected, should be FAIL
4543
("test_sample", "test_analyse", "male", "not_detected", "test_sample\ttest_analyse\tmale\tnot_detected\tFAIL\n"),
4644
])
4745
def test_compare_gender(self, sample_id, analysis_id, test_gender, true_gender, expected):

0 commit comments

Comments
 (0)