コード例 #1
0
def test_parse_wrong_sex():
    # GIVEN a individual with wrong sex format
    sample_info = {"sample_id": "1", "sex": "flale", "phenotype": "affected"}
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #2
0
def test_parse_missing_phenotype():
    # GIVEN a individual without phenotype
    sample_info = {"sample_id": "1", "sex": "male"}
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #3
0
def test_parse_missing_sex():
    # GIVEN a individual without sex
    sample_info = {"sample_id": "1", "phenotype": "affected"}
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #4
0
ファイル: test_parse_case.py プロジェクト: ninanorgren/scout
def test_parse_missing_phenotype():
    # GIVEN a individual without phenotype
    sample_info = {
        'sample_id': '1',
        'sex': 'male',
    }
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #5
0
ファイル: test_parse_case.py プロジェクト: ninanorgren/scout
def test_parse_missing_sex():
    # GIVEN a individual without sex
    sample_info = {
        'sample_id': '1',
        'phenotype': 'affected',
    }
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #6
0
def test_parse_missing_phenotype():
    # GIVEN a individual without phenotype
    sample_info = {
        'sample_id': '1',
        'sex': 'male',
    }
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #7
0
def test_parse_missing_sex():
    # GIVEN a individual without sex
    sample_info = {
        'sample_id': '1',
        'phenotype': 'affected',
    }
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #8
0
ファイル: test_parse_case.py プロジェクト: ninanorgren/scout
def test_parse_wrong_sex():
    # GIVEN a individual with wrong sex format
    sample_info = {
        'sample_id': '1',
        'sex': 'flale',
        'phenotype': 'affected',
    }
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)
コード例 #9
0
def test_parse_wrong_sex():
    # GIVEN a individual with wrong sex format
    sample_info = {
        'sample_id': '1',
        'sex': 'flale',
        'phenotype': 'affected',
    }
    # WHEN a individual is parsed
    with pytest.raises(PedigreeError):
        # THEN a PedigreeError should be raised
        parse_individual(sample_info)