From 8d17bea7cd25d72a787639e1ed7d4d1e3e26b749 Mon Sep 17 00:00:00 2001 From: Olga Filippova <36808731+0lgaF@users.noreply.github.com> Date: Thu, 7 Jul 2022 14:14:50 +0300 Subject: [PATCH] Fix names (#262) Co-authored-by: 0lgaF --- src/evidently/tests/data_integrity_tests.py | 2 +- src/evidently/tests/data_quality_tests.py | 2 +- tests/tests/test_data_integrity_tests.py | 2 +- tests/tests/test_data_quality_tests.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/evidently/tests/data_integrity_tests.py b/src/evidently/tests/data_integrity_tests.py index 9f2fc4bea0..0ebb6657ed 100644 --- a/src/evidently/tests/data_integrity_tests.py +++ b/src/evidently/tests/data_integrity_tests.py @@ -391,7 +391,7 @@ def __init__( class TestColumnNANShare(BaseIntegrityByColumnsConditionTest): """Test the share of NANs in a column""" - name = "Share of NA Values in Columns" + name = "Share of NA Values" def get_condition(self) -> TestValueCondition: if self.condition.is_set(): diff --git a/src/evidently/tests/data_quality_tests.py b/src/evidently/tests/data_quality_tests.py index 5cb9f17b4c..388c145f13 100644 --- a/src/evidently/tests/data_quality_tests.py +++ b/src/evidently/tests/data_quality_tests.py @@ -1110,7 +1110,7 @@ def render_html(self, obj: TestNumberOfOutListValues) -> TestHtmlInfo: class TestShareOfOutListValues(BaseDataQualityValueListMetricsTest): - name = "Share Out-of-List Values" + name = "Share of Out-of-List Values" def get_condition(self) -> TestValueCondition: if self.condition.is_set(): diff --git a/tests/tests/test_data_integrity_tests.py b/tests/tests/test_data_integrity_tests.py index 891a8e2776..c974036ca9 100644 --- a/tests/tests/test_data_integrity_tests.py +++ b/tests/tests/test_data_integrity_tests.py @@ -396,7 +396,7 @@ def test_data_integrity_test_columns_nan_share_json_render() -> None: assert test_info == { "description": "The share of NA values in feature1 is 0.25. The test threshold is eq=0.25 ± 0.025.", "group": "data_integrity", - "name": "Share of NA Values in Columns", + "name": "Share of NA Values", "parameters": { "condition": {"eq": {"absolute": 1e-12, "relative": 0.1, "value": 0.25}}, "nans_by_columns": {"feature1": 1, "feature2": 1}, diff --git a/tests/tests/test_data_quality_tests.py b/tests/tests/test_data_quality_tests.py index 78d29b733a..2dde77d6ed 100644 --- a/tests/tests/test_data_quality_tests.py +++ b/tests/tests/test_data_quality_tests.py @@ -584,7 +584,7 @@ def test_data_quality_test_share_of_values_not_in_list_json_render() -> None: "description": "The share of values out of list in the column feature1 is 0.25 (1 out of 4)." " The test threshold is eq=0 ± 1e-12.", "group": "data_quality", - "name": "Share Out-of-List Values", + "name": "Share of Out-of-List Values", "parameters": { "condition": {"eq": {"absolute": 1e-12, "relative": 1e-06, "value": 0}}, "share_not_in_list": 0.25,