From 6c27410aa6e5e22502166b09b77327846f7d52e6 Mon Sep 17 00:00:00 2001 From: danlu1 Date: Tue, 3 Dec 2024 01:28:14 +0000 Subject: [PATCH] add test case for empty_dataframe_with_required_column --- tests/test_process_functions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_process_functions.py b/tests/test_process_functions.py index 9640ec69..5463e8be 100644 --- a/tests/test_process_functions.py +++ b/tests/test_process_functions.py @@ -772,6 +772,12 @@ def test_check_values_in_column_no_column(input_df, col, values): ["cfDNA", "Tumor", "test_value"], True, ), + ( + pd.DataFrame({"SAMPLE_ID": [], "SAMPLE_CLASS": []}), + "SAMPLE_CLASS", + ["cfDNA", "Tumor", "test_value"], + False, + ), ], ids=[ "no_expected_single_value", @@ -779,6 +785,7 @@ def test_check_values_in_column_no_column(input_df, col, values): "have_expected_single_value", "have_expected_value_list", "have_partial_expected_value_list", + "empty_dataframe_with_required_column", ], ) def test_check_values_in_column_has_column(input_df, col, values, expected_results):