Skip to content

Commit

Permalink
remove tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
rxu17 committed Feb 2, 2025
1 parent 2a06a5d commit e19d06d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_bpc_redcap_export_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,11 @@ def test_that_check_oncotree_codes_gives_expected_warning_when_invalid_codes(


def test_that_check_oncotree_codes_gives_no_warning_when_all_codes_valid(caplog):
input_data = (pd.DataFrame(dict(ONCOTREE_CODE=["RCC", "OVARY"])),)
oncotree_dict = (
{
"RCC": {"CANCER_TYPE": "Renal Cell Carcinoma"},
"OVARY": {"CANCER_TYPE": "Ovarian Cancer"},
},
)
input_data = pd.DataFrame(dict(ONCOTREE_CODE=["RCC", "OVARY"]))
oncotree_dict = {
"RCC": {"CANCER_TYPE": "Renal Cell Carcinoma"},
"OVARY": {"CANCER_TYPE": "Ovarian Cancer"},
}
with caplog.at_level(logging.WARNING):
bpc_export.check_oncotree_codes(df=input_data, oncotree_dict=oncotree_dict)
assert (
Expand Down

0 comments on commit e19d06d

Please sign in to comment.