Skip to content

Commit 6c27410

Browse files
committed
add test case for empty_dataframe_with_required_column
1 parent a74ca79 commit 6c27410

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_process_functions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,13 +772,20 @@ def test_check_values_in_column_no_column(input_df, col, values):
772772
["cfDNA", "Tumor", "test_value"],
773773
True,
774774
),
775+
(
776+
pd.DataFrame({"SAMPLE_ID": [], "SAMPLE_CLASS": []}),
777+
"SAMPLE_CLASS",
778+
["cfDNA", "Tumor", "test_value"],
779+
False,
780+
),
775781
],
776782
ids=[
777783
"no_expected_single_value",
778784
"no_expected_value_list",
779785
"have_expected_single_value",
780786
"have_expected_value_list",
781787
"have_partial_expected_value_list",
788+
"empty_dataframe_with_required_column",
782789
],
783790
)
784791
def test_check_values_in_column_has_column(input_df, col, values, expected_results):

0 commit comments

Comments
 (0)