Skip to content

Commit

Permalink
Fix names (#262)
Browse files Browse the repository at this point in the history
Co-authored-by: 0lgaF <[email protected]>
  • Loading branch information
0lgaF and 0lgaF authored Jul 7, 2022
1 parent 79b638b commit 8d17bea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/evidently/tests/data_integrity_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion src/evidently/tests/data_quality_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_data_integrity_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_data_quality_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8d17bea

Please sign in to comment.