Skip to content

Commit

Permalink
mark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-stauffer committed Feb 13, 2025
1 parent daca188 commit 4b030d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/metrics/test_metric_results.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pytest

from great_expectations.metrics.metric_results import (
MetricErrorResult,
TableColumnsResult,
Expand All @@ -10,6 +12,7 @@


class TestMetricResultInstantiation:
@pytest.mark.unit
def test_unexpected_count_result(self):
metric_id = MetricConfigurationID(
metric_name="column_values.null.unexpected_count",
Expand All @@ -24,6 +27,7 @@ def test_unexpected_count_result(self):
)
assert metric_result.dict() == {"id": metric_id, "value": metric_value}

@pytest.mark.unit
def test_unexpected_values_result(self):
metric_id = MetricConfigurationID(
metric_name="column_values.null.unexpected_values",
Expand All @@ -43,6 +47,7 @@ def test_unexpected_values_result(self):
)
assert metric_result.dict() == {"id": metric_id, "value": metric_value}

@pytest.mark.unit
def test_table_columns_metric_result(self):
metric_id = MetricConfigurationID(
metric_name="table.columns",
Expand All @@ -59,6 +64,7 @@ def test_table_columns_metric_result(self):
)
assert metric_result.dict() == {"id": metric_id, "value": metric_value}

@pytest.mark.unit
def test_table_column_types_result(self):
metric_id = MetricConfigurationID(
metric_name="table.column_types",
Expand All @@ -78,6 +84,7 @@ def test_table_column_types_result(self):
assert all(isinstance(val, _ColumnType) for val in metric_result.value)
assert metric_result.dict() == {"id": metric_id, "value": metric_value}

@pytest.mark.unit
def test_metric_error_result(self):
metric_id = MetricConfigurationID(
metric_name="column.mean",
Expand Down

0 comments on commit 4b030d4

Please sign in to comment.