Beispiel #1
0
def test_read_cancer_json_custom_fields_no_header(tsv_sheet_cancer_no_header):
    with pytest.raises(io_tsv.TSVSheetException) as e_info:
        io_tsv.read_cancer_tsv_json_data(tsv_sheet_cancer_no_header)
    expected = (
        'Unexpected column seen in header row of body: inssStage, lohChr1p, '
        'mycnCn, ncbiTaxon, ngsLibraryNice, patientStatus, shimada4Class, '
        'testSampleNice, timeToDeathDays, timeToEventDays')
    assert expected == str(e_info.value)
Beispiel #2
0
def test_read_tumor_json_no_header(tsv_sheet_cancer_no_header):
    sheet_struc = io_tsv.read_cancer_tsv_json_data(tsv_sheet_cancer_no_header)
    assert EXPECTED_CANCER_SHEET_JSON_NO_HEADER == json.dumps(sheet_struc,
                                                              indent='    ')
Beispiel #3
0
def test_read_cancer_json_custom_fields_header(tsv_sheet_cancer_header):
    sheet_struc = io_tsv.read_cancer_tsv_json_data(tsv_sheet_cancer_header)
    assert EXPECTED_CANCER_SHEET_JSON_HEADER == json.dumps(
        sheet_struc, indent='    ')