great_expectations.core.expectation_diagnostics.expectation_test_data_cases

Module Contents

Classes

TestData()

dict() -> new empty dictionary

Backend()

Backends with some level of testing and support

ExpectationTestCase()

A single test case, with input arguments and output

ExpectationLegacyTestCaseAdapter(*, title, exact_match_out, out, suppress_test_for=[], **kwargs)

This class provides an adapter between the test cases developed prior to Great Expectations’ 0.14 release and the newer ExpectationTestCase dataclass

ExpectationTestDataCases()

Pairs a test dataset and a list of test cases to execute against that data.

class great_expectations.core.expectation_diagnostics.expectation_test_data_cases.TestData

Bases: dict

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)

__test__ = False
class great_expectations.core.expectation_diagnostics.expectation_test_data_cases.Backend

Bases: enum.Enum

Backends with some level of testing and support

BIGQUERY = CONCEPT_ONLY
MSSQL = EXPERIMENTAL
SQLITE = BETA
PYSPARK = PRODUCTION
class great_expectations.core.expectation_diagnostics.expectation_test_data_cases.ExpectationTestCase

Bases: great_expectations.types.SerializableDictDot

A single test case, with input arguments and output

title :str
input :Dict[str, Any]
output :Dict[str, Any]
exact_match_out :bool
suppress_test_for :List[str]
only_for :Optional[List[str]]
class great_expectations.core.expectation_diagnostics.expectation_test_data_cases.ExpectationLegacyTestCaseAdapter(*, title, exact_match_out, out, suppress_test_for=[], **kwargs)

Bases: great_expectations.core.expectation_diagnostics.expectation_test_data_cases.ExpectationTestCase

This class provides an adapter between the test cases developed prior to Great Expectations’ 0.14 release and the newer ExpectationTestCase dataclass

Notes: * Legacy test cases used “in” (a python reserved word). This has been changed to “input”. * To maintain parallelism, we’ve also made the corresponding change from “out” to “output”. * To avoid any ambiguity, ExpectationLegacyTestCaseAdapter only accepts keyword arguments. Positional arguments are not allowed.

class great_expectations.core.expectation_diagnostics.expectation_test_data_cases.ExpectationTestDataCases

Bases: great_expectations.types.SerializableDictDot

Pairs a test dataset and a list of test cases to execute against that data.

data :TestData
tests :List[ExpectationTestCase]
schemas :Dict[Backend, Dict[str, str]]
test_backends :Optional[List[Dict]]