From 194f28ea0b18d878c4cbb0a4e328d35ff61c61bf Mon Sep 17 00:00:00 2001 From: Forsythia-olive Date: Fri, 13 Dec 2024 17:37:04 -0800 Subject: [PATCH 1/2] Create readme for test cases --- testcases/Readme.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 testcases/Readme.md diff --git a/testcases/Readme.md b/testcases/Readme.md new file mode 100644 index 0000000..162b654 --- /dev/null +++ b/testcases/Readme.md @@ -0,0 +1,33 @@ +# Test suite developer notes + +This repository contains test cases for validating different functionalities in the project. The test cases are written in Python and utilize the pytest framework for running and validating the results. + +### Prerequisites + +Before running the test cases, ensure the following dependencies are installed: + +1. pytest (pip install pytest) + +### Running the tests + +Tests are executed by running the 'pytest' command from the root directory of the project. + +### Test Files Overview + +The following test files are included: + +1. test_mean_cross_validation_score.py +Tests the mean_cross_val_scores function. +Validates classification model performance (e.g., RandomForestClassifier, LogisticRegression) using cross-validation. + +2. test_validate_train_data.py +Tests the validate_category_distribution function. +Ensures that categorical data distributions meet specified thresholds with tolerance. +Covers cases such as valid distribution, invalid distribution, missing categories, empty input, and wider tolerance. + +3. test_write_csv.py +Tests CSV file writing functionality. +Validates if data is correctly written to CSV files. +Running Tests + + From de8a9b6fd15759f57f298cd1c781ae5e8878d401 Mon Sep 17 00:00:00 2001 From: Forsythia-olive <120102464+Forsythia-olive@users.noreply.github.com> Date: Fri, 13 Dec 2024 17:50:09 -0800 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4fa3a54..b52f825 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,6 @@ RUN mamba update --quiet --file /tmp/conda-linux-64.lock \ && fix-permissions "/home/${NB_USER}" RUN pip install deepchecks==0.18.1 - \ No newline at end of file + + +