repo_id
stringclasses
400 values
cross_repo_split
stringclasses
1 value
commit_index
int32
0
1.19k
commit_sha
stringlengths
40
40
in_repo_split
stringclasses
3 values
test_file
stringlengths
7
121
file_split
stringclasses
3 values
split_group
stringlengths
18
150
lineno
int32
1
5.24k
col_offset
int32
0
165
assertion_type
stringclasses
35 values
test_function
stringlengths
0
141
prefix
large_stringlengths
7
258k
target
stringlengths
1
29.2k
assertion_event_type
stringclasses
2 values
assertion_event_id
stringlengths
64
64
assertion_anchor
large_stringlengths
14
176k
old_target
stringlengths
1
11.2k
old_lineno
int32
2
4.91k
old_col_offset
int32
0
165
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
221
4
assert
test_check_strategy_chained_continuous
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
compare_op(example, assert_value)
modified
7f555f91b600d1c85f3d80440a24b865584d6ab63c569b93a899a39d85d4046b
assert|test_check_strategy_chained_continuous|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unitt...
compare_op(example, assert_value)
220
4
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
616
4
assert
test_index_strategy
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
(~example.duplicated()).all()
modified
b507daac1cefdd4bba85e220116b337a34c1b74daf47749edb702ced096bf328
assert|test_index_strategy|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import Mag...
(~example.duplicated()).all()
615
4
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
688
9
pytest.raises
test_field_element_strategy
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
pa.errors.BaseStrategyOnlyError)
modified
94da741b63f0343061dd9be3171d7e7b2a840bc599675afc9b15ecf02d0f4b08
pytest.raises|test_field_element_strategy|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest....
pa.errors.BaseStrategyOnlyError)
687
9
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
715
8
assert
test_check_nullable_field_strategy
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
example.notna().all()
modified
f029b640a8a46c4d4389dc78db24be3ebab6aa6ff9594b42812eecfaed4d2fbe
assert|test_check_nullable_field_strategy|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest....
example.notna().all()
714
8
unionai-oss/pandera
train
162
60ac7ef668e5ea23dcbbf94df2ef1708a898aa64
train
tests/core/test_pandas_engine.py
test
unionai-oss/pandera:tests/core/test_pandas_engine.py
29
4
assert
test_pandas_data_type
"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dtypes()) ) def test_pandas_...
pd_dtype_from_str
modified
57af9262e764ae5818da4e68b8de1f41be2bc74da5e3f2a1fbcd578c6725acab
assert|test_pandas_data_type|"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dtypes(...
pd_dtype_from_str
27
4
unionai-oss/pandera
train
162
60ac7ef668e5ea23dcbbf94df2ef1708a898aa64
train
tests/core/test_pandas_engine.py
test
unionai-oss/pandera:tests/core/test_pandas_engine.py
62
8
assert
test_pandas_category_dtype
"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dtypes()) ) def test_pandas_...
CATEGORIES
added
ab39bddd278a035a7eef97823f3857d7b4c7f14b6b0a1e84c603cd06e719d1cb
assert|test_pandas_category_dtype|"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dt...
null
null
null
unionai-oss/pandera
train
162
60ac7ef668e5ea23dcbbf94df2ef1708a898aa64
train
tests/core/test_pandas_engine.py
test
unionai-oss/pandera:tests/core/test_pandas_engine.py
71
9
pytest.raises
test_pandas_category_dtype_error
"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dtypes()) ) def test_pandas_...
TypeError)
added
a6e59fa99dc37c0b66257926dbaf82102c2edbffe67e41fb785ec7d2fbf00ef7
pytest.raises|test_pandas_category_dtype_error|"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_...
null
null
null
unionai-oss/pandera
train
162
60ac7ef668e5ea23dcbbf94df2ef1708a898aa64
train
tests/core/test_pandas_engine.py
test
unionai-oss/pandera:tests/core/test_pandas_engine.py
107
13
pytest.raises
test_pandas_boolean_native_type_error
"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dtypes()) ) def test_pandas_...
TypeError)
added
9dc52ae86a39532cdde0cb6b2368d3d384fd14ee35b7d92a7b9665158f4fe565
pytest.raises|test_pandas_boolean_native_type_error|"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine...
null
null
null
unionai-oss/pandera
train
163
d62f8206ea366a53fbe0d1da66ce8081d8660554
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
115
13
pytest.raises
_test_datatype_with_schema
"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from pandera.typing import DataFra...
TypeError)
modified
75b60b8a73be52ab989de6dc1109f517c3cfb4a15d4658075d193bd64bdc8990
pytest.raises|_test_datatype_with_schema|"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_eng...
TypeError)
113
13
unionai-oss/pandera
train
163
d62f8206ea366a53fbe0d1da66ce8081d8660554
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
330
9
pytest.raises
test_unique
"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from pandera.typing import DataFra...
pa.errors.SchemaError, match="columns .+ not unique")
modified
5ce26e48eeb3ba7eb51553561bf01aaf4b327563431a72b6800cff96af2d1f9f
pytest.raises|test_unique|"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from pander...
pa.errors.SchemaError, match="columns .+ not unique")
327
9
unionai-oss/pandera
train
163
d62f8206ea366a53fbe0d1da66ce8081d8660554
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
629
4
assert
test_init_pyspark_pandas_dataframe
"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from pandera.typing import DataFra...
isinstance( DataFrame[InitSchema]({"col1": [1], "col2": [1.0], "col3": ["1"]}), DataFrame, )
added
bd40aa03138953d05a9c44e0dc6f95cb5233b4ba240dfbd38b6c2f92b4a752b1
assert|test_init_pyspark_pandas_dataframe|"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_en...
null
null
null
unionai-oss/pandera
train
163
d62f8206ea366a53fbe0d1da66ce8081d8660554
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
646
9
pytest.raises
test_init_pyspark_dataframe_errors
"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from pandera.typing import DataFra...
pa.errors.SchemaError)
added
872baee6e05d9d78a0d792008eb9afadf114b4574aa4b58bccd337846156e402
pytest.raises|test_init_pyspark_dataframe_errors|"""Test pandera on pyspark data structures.""" import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pa...
null
null
null
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
484
4
assert
test_get_dataframe_schema_statistics
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
expectation
modified
391c5b6ba68c14b76a290f887b4476ff07593577b61d8636aa1fb2a2c8d87745
assert|test_get_dataframe_schema_statistics|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float...
expectation
483
4
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
498
4
assert
test_get_series_schema_statistics
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
{ "dtype": pandas_engine.Engine.dtype(int), "nullable": False, "checks": { "greater_than_or_equal_to": {"min_value": 0}, "less_than_or_equal_to": {"max_value": 100}, }, "name": None, "coerce": False, "unique": False, }
modified
f105b41a87d3b2ec2214e625e2db254bb0cc6b7d01e58043f9b828e6e997a7b2
assert|test_get_series_schema_statistics|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) D...
{ "dtype": pandas_engine.Engine.dtype(int), "nullable": False, "checks": { "greater_than_or_equal_to": {"min_value": 0}, "less_than_or_equal_to": {"max_value": 100}, }, "name": None, "coerce": False, }
497
4
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
604
13
pytest.raises
test_parse_checks_and_statistics_roundtrip
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
ValueError)
modified
5bf84086d66285a3326f0947f2ccc486e0d460b521fe9e18aec89de383cc7535
pytest.raises|test_parse_checks_and_statistics_roundtrip|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engin...
ValueError)
601
13
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
623
4
assert
test_parse_checks_and_statistics_no_param
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
expectation
modified
a509c1124b5531893349ba1b09c2fa0818854ece3f4979ae1f96f4766cef6bfa
assert|test_parse_checks_and_statistics_no_param|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(...
expectation
620
4
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
385
4
assert
test_to_yaml
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
YAML_SCHEMA.strip()
modified
018bd9f543f8b78edaf74b389b3f58ddd23763cc662a2e5fa167a8d57d6d59a9
assert|test_to_yaml|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine ...
YAML_SCHEMA.strip()
384
4
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
420
9
pytest.raises
test_from_yaml_unregistered_checks
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
AttributeError, match=".*custom checks.*")
modified
53534b32f85f40d735fa71f706f84ef1b124bcaf8c2004098da4eae2e0efc74d
pytest.raises|test_from_yaml_unregistered_checks|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera....
AttributeError, match=".*custom checks.*")
419
9
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
428
9
pytest.raises
test_from_yaml_load_required_fields
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
pandera.errors.SchemaDefinitionError, match=".*must be a mapping.*")
modified
01a41175a285c81cb889cac1ec86ae25bb38e73909799aa08b4241a846b27b6f
pytest.raises|test_from_yaml_load_required_fields|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera...
pandera.errors.SchemaDefinitionError, match=".*must be a mapping.*")
427
9
unionai-oss/pandera
train
164
c0c2d408f0f7d34abced02887f3f98158580712c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
986
12
assert
test_frictionless_schema_primary_key
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
not schema.columns[key].unique
modified
5ebcadd7b9bd04c348cf076903bbb88b70b0757495e482141dd560667c5569ee
assert|test_frictionless_schema_primary_key|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engin...
not schema.columns[key].unique
985
12
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/core/test_schema_components.py
train
unionai-oss/pandera:tests/core/test_schema_components.py
698
13
pytest.raises
test_multiindex_ordered
"""Testing the components of the Schema objects.""" import copy from typing import Any, List, Optional, Tuple, Type import pandas as pd import pytest from pandera import ( Check, Column, DataFrameSchema, DateTime, Float, Index, Int, MultiIndex, SeriesSchema, String, errors...
errors.SchemaErrors)
modified
0a2728d8c48064c62963c861fc584229196bdf8962a09c0b995c3a5447900bd8
pytest.raises|test_multiindex_ordered|"""Testing the components of the Schema objects.""" import copy from typing import Any, List, Optional, Tuple, Type import pandas as pd import pytest from pandera import ( Check, Column, DataFrameSchema, DateTime, Float, Index, Int, MultiIndex, SeriesSchema, String, errors, ) from ...
errors.SchemaErrors)
698
13
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/core/test_schema_components.py
train
unionai-oss/pandera:tests/core/test_schema_components.py
783
9
pytest.raises
test_multiindex_unordered_init_exception
"""Testing the components of the Schema objects.""" import copy from typing import Any, List, Optional, Tuple, Type import pandas as pd import pytest from pandera import ( Check, Column, DataFrameSchema, DateTime, Float, Index, Int, MultiIndex, SeriesSchema, String, errors...
errors.SchemaInitError)
modified
ae97246cb075e6b602488e46ca4264a98ef0a76735aefd3281077d714628bd2b
pytest.raises|test_multiindex_unordered_init_exception|"""Testing the components of the Schema objects.""" import copy from typing import Any, List, Optional, Tuple, Type import pandas as pd import pytest from pandera import ( Check, Column, DataFrameSchema, DateTime, Float, Index, Int, MultiIndex, SeriesSchema, String...
errors.SchemaInitError)
783
9
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,521
8
assert
test_capture_check_errors
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
'KeyError("fail")'
modified
f886754f3f8f20e81c0fc7cd8edbd6ac4da87dc294d23be37228db83e29bc72a
assert|test_capture_check_errors|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as n...
'KeyError("fail")'
1,522
8
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,699
4
assert
test_update_columns
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
test_schema.columns["col2"].unique
added
b924b1286affe9dc117f15fe959c217553a5b1ef60a79500d066af2d5840a1ef
assert|test_update_columns|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np impo...
null
null
null
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
370
4
assert
test_inferred_schema_io
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
schema_from_yaml
modified
694e92bcb8e27dd1021ff967d5c98478192ca507d91c1b999015f5b54d40ff48
assert|test_inferred_schema_io|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pan...
schema_from_yaml
370
4
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
927
9
pytest.raises
test_frictionless_schema_parses_correctly
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
pandera.errors.SchemaErrors)
modified
69d574bd8b9c4f4656f2056f022596409cfc299333d547aa8a15b3d65302e1f1
pytest.raises|test_frictionless_schema_parses_correctly|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from p...
pandera.errors.SchemaErrors)
927
9
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
862
13
pytest.raises
test_unsatisfiable_checks
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
hypothesis.errors.Unsatisfiable)
modified
364853b33b96dff73b60432f743df73f87f602e3844b4820a21ef483e2c2cebc
pytest.raises|test_unsatisfiable_checks|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mo...
hypothesis.errors.Unsatisfiable)
862
13
unionai-oss/pandera
train
165
6800848e9ca83f973c04114a3e7a76e51f0c67ef
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
922
13
pytest.raises
test_schema_component_with_no_pdtype
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
pa.errors.SchemaDefinitionError)
modified
b31cc5467e8874f391eabcfe55fd2bf7868aedcb180838c6fea3b0c54455e301
pytest.raises|test_schema_component_with_no_pdtype|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from ...
pa.errors.SchemaDefinitionError)
922
13
unionai-oss/pandera
train
166
7e6324febf0b4718f87134bd2a708b1a930cb929
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
355
9
pytest.raises
test_check_single_index
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Iterable, Optional, TypeVar import pandas...
pa.errors.SchemaErrors, match=err_msg)
modified
9ef1f3d5fef965ac105ed4a2c59527724ca2738d99172884b2b4faa11d07bec3
pytest.raises|test_check_single_index|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Itera...
pa.errors.SchemaErrors, match=err_msg)
354
9
unionai-oss/pandera
train
166
7e6324febf0b4718f87134bd2a708b1a930cb929
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
481
4
assert
test_inherit_schemamodel_fields
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Iterable, Optional, TypeVar import pandas...
Child.to_schema()
modified
2bd7eee3896efe4ac4a663e21ca6ddf25546e0c76b4ab276191f36e026951794
assert|test_inherit_schemamodel_fields|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Iter...
Child.to_schema()
480
4
unionai-oss/pandera
train
166
7e6324febf0b4718f87134bd2a708b1a930cb929
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
732
4
assert
test_config_docstrings
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Iterable, Optional, TypeVar import pandas...
Model.to_schema().description
modified
2fbd9fe21009b7950b2735f3723d8d4ec54518a9b5310757a12d942062957fb8
assert|test_config_docstrings|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Iterable, Opt...
Model.to_schema().description
731
4
unionai-oss/pandera
train
166
7e6324febf0b4718f87134bd2a708b1a930cb929
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
999
4
assert
test_validate_coerce_on_init
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Iterable, Optional, TypeVar import pandas...
isinstance(pandas_df, pd.DataFrame)
modified
43d6d064b218e0a6c1ed125affe1573531d246c437853fb8c59390bd57def342
assert|test_validate_coerce_on_init|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from decimal import Decimal # pylint:disable=C0415 from typing import Any, Generic, Iterabl...
isinstance(pandas_df, pd.DataFrame)
998
4
unionai-oss/pandera
train
167
73dc7574078cad6be4894e5024b9f6852bd29aba
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
285
12
assert
test_schema_property
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
"int_isin"
added
78e5c539bc19bf13a81cfc966c5793903c2f451e13c3df7f2f671ea0ff7388f0
assert|test_schema_property|"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits...
null
null
null
unionai-oss/pandera
train
167
73dc7574078cad6be4894e5024b9f6852bd29aba
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
298
8
assert
test_pickling_parser_error
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
pickled
added
92327e5606c19f45ae9512a2e9f91153fa6bb62fb3a7e69f4596428865c161ce
assert|test_pickling_parser_error|"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and ...
null
null
null
unionai-oss/pandera
train
167
73dc7574078cad6be4894e5024b9f6852bd29aba
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
300
8
assert
test_pickling_parser_error
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
str(exc)
added
9ba25384268bf573d3d93b0ccd3c3a0452eed43e626d972219e0e333da0da4c2
assert|test_pickling_parser_error|"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and ...
null
null
null
unionai-oss/pandera
train
167
73dc7574078cad6be4894e5024b9f6852bd29aba
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
301
8
assert
test_pickling_parser_error
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
str(exc.failure_cases)
added
f938c58bbc45bc24cba3c93558f8bcd4b2e3ad1acee5ec6780c0b67869277d6e
assert|test_pickling_parser_error|"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and ...
null
null
null
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
83
8
assert
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
isinstance(exc_unpickled.foo_a, str)
modified
3fc5413ef682d5f051ce629c2dc017b40c5be1aa4f6645ee57d342ad040725ff
assert||"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to...
isinstance(exc_unpickled.foo_a, str)
82
8
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
239
12
assert
test_pickling
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
pickle.dumps(exc)
modified
d3047d43b488f13a37eecce3cf640ced26e4ac99776668141a5b1053ba842410
assert|test_pickling|"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pi...
pickle.dumps(exc)
238
12
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
308
12
assert
test_message_contains_schema_name
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
matched
added
dd869197800a337d33408b9a005adec93a6d03369c7b2623552f2613c9d45726
assert|test_message_contains_schema_name|"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklabilit...
null
null
null
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
324
8
assert
test_pickling_parser_error
"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and limits the pickled size to 2 GiB....
str(exc.failure_cases)
added
95fffa769d47752b6f870c67ce70aeae5c4e69c75ce41f0807c00e97d43289ce
assert|test_pickling_parser_error|"""Test pickling behavior of SchemaError and SchemaErrors. See issue #713: In a multiprocessing or concurrent.futures.ProcessPoolExecutor situation if a subprocess does not handle the SchemaError itself, it is pickled and piped back to the main process. This requires picklability, and ...
null
null
null
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,318
4
assert
test_lazy_dataframe_unique
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
isinstance(schema.validate(data, lazy=False), pd.DataFrame)
modified
9cd7c3f078fce3d2bd5d002df4ad3bc0e56689d7cabf8a5e5e676e203d1e0956
assert|test_lazy_dataframe_unique|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as ...
isinstance(schema.validate(data, lazy=False), pd.DataFrame)
1,318
4
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,486
12
assert
test_lazy_series_validation_error
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
err.failure_cases.schema_context.values
modified
421b4c48acdc3436cc3fba89efa2b19e0cbbbd1912f22f50b97371cd10122dc5
assert|test_lazy_series_validation_error|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import nu...
err.failure_cases.schema_context.values
1,486
12
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,621
12
assert
test_set_index_append
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
isinstance(test_schema.index, MultiIndex)
modified
29fa7e16f9528fe88f20f74c05e06674b085a3f3fd6fa03dcebdde6fee20c321
assert|test_set_index_append|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np im...
isinstance(test_schema.index, MultiIndex)
1,621
12
unionai-oss/pandera
train
168
0d10f395e1227cb2f99a7826045ecb224594ea89
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,670
9
pytest.raises
test_invalid_keys
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
errors.SchemaInitError)
modified
c5d87a794996350db81add8ca043e84d11e3a792c1c2ac61f78184373e1f4ba1
pytest.raises|test_invalid_keys|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np...
errors.SchemaInitError)
1,670
9
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/core/test_logical_dtypes.py
train
unionai-oss/pandera:tests/core/test_logical_dtypes.py
164
9
pytest.raises
test_invalid_decimal_params
"""Tests logical dtypes.""" from decimal import Decimal from types import ModuleType from typing import Any, Generator, Iterable, List, Optional, cast import numpy as np import pandas as pd import pytest from pandas.testing import assert_series_equal import pandera as pa from pandera.engines import pandas_engine fro...
ValueError)
added
256f73f0dadf899ddf7178a387256018f1a9659eac9f040fd88f0e5eb867fb80
pytest.raises|test_invalid_decimal_params|"""Tests logical dtypes.""" from decimal import Decimal from types import ModuleType from typing import Any, Generator, Iterable, List, Optional, cast import numpy as np import pandas as pd import pytest from pandas.testing import assert_series_equal import pandera as pa from p...
null
null
null
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,086
9
pytest.raises
test_generic_optional_field
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
SchemaError)
modified
93f17276e2f696fc7116eb42b8ff7ebb31ffa7248973cb1f35d74e1968540aa3
pytest.raises|test_generic_optional_field|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd impo...
SchemaError)
1,084
9
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/core/test_pandas_engine.py
test
unionai-oss/pandera:tests/core/test_pandas_engine.py
61
4
assert
test_pandas_category_dtype
"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dtypes()) ) def test_pandas_...
dtype.check(coerced_data.dtype)
modified
513d7f413f0fa75c4911b4dae1f6a321f6e7d10d979889b2a1677ecd148c7146
assert|test_pandas_category_dtype|"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dt...
dtype.check(coerced_data.dtype)
58
4
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/core/test_pandas_engine.py
test
unionai-oss/pandera:tests/core/test_pandas_engine.py
74
9
pytest.raises
test_pandas_category_dtype_error
"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_registered_dtypes()) ) def test_pandas_...
TypeError)
modified
03fdcda7bf70f5ab4e1505640c903fccaf56d80d137546422e9ee69b608886ec
pytest.raises|test_pandas_category_dtype_error|"""Test numpy engine.""" import hypothesis.strategies as st import pandas as pd import pytest from hypothesis import given from pandera.engines import pandas_engine from pandera.errors import ParserError @pytest.mark.parametrize( "data_type", list(pandas_engine.Engine.get_...
TypeError)
71
9
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/dask/test_dask.py
train
unionai-oss/pandera:tests/dask/test_dask.py
63
9
pytest.raises
test_dataframe_schema
""" Tests that basic Pandera functionality works for Dask objects. """ from typing import cast import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing.dask import DataFrame, Index, Series class IntSchema(pa.SchemaModel): # pylint: disable=missing-class-docstring ...
pa.errors.SchemaError)
modified
a188055df73ad5ad2048c4b880180ce55926f2f41f0217febf16c00cf3d5e73b
pytest.raises|test_dataframe_schema|""" Tests that basic Pandera functionality works for Dask objects. """ from typing import cast import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing.dask import DataFrame, Index, Series class IntSchema(pa.SchemaModel): # pylint: disabl...
pa.errors.SchemaError)
61
9
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/dask/test_dask.py
train
unionai-oss/pandera:tests/dask/test_dask.py
129
4
assert
test_init_dask_dataframe
""" Tests that basic Pandera functionality works for Dask objects. """ from typing import cast import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing.dask import DataFrame, Index, Series class IntSchema(pa.SchemaModel): # pylint: disable=missing-class-docstring ...
isinstance( DataFrame[InitSchema](ddf.dask, ddf._name, ddf._meta, ddf.divisions), DataFrame, )
added
e1e292e2c82b2bdfbc57cd5990704067d023b780a3651ad43d118a03e029e833
assert|test_init_dask_dataframe|""" Tests that basic Pandera functionality works for Dask objects. """ from typing import cast import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing.dask import DataFrame, Index, Series class IntSchema(pa.SchemaModel): # pylint: disable=mi...
null
null
null
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
84
4
assert
_test_datatype_with_schema
"""Unit tests for modin data structures.""" import typing from unittest.mock import MagicMock import modin.pandas as mpd import pandas as pd import pytest import pandera as pa from pandera import extensions from pandera.engines import numpy_engine, pandas_engine from pandera.typing.modin import DataFrame, Index, Ser...
isinstance(schema(data_container_cls(sample)), data_container_cls)
added
f0301ef7f3f2de2ef5df52783b750508585abd26d882a87cbb3c5071fb338920
assert|_test_datatype_with_schema|"""Unit tests for modin data structures.""" import typing from unittest.mock import MagicMock import modin.pandas as mpd import pandas as pd import pytest import pandera as pa from pandera import extensions from pandera.engines import numpy_engine, pandas_engine from pandera.typing.mod...
null
null
null
unionai-oss/pandera
train
169
2680841ecbcac54160c8ea3a78444c9c448b0c03
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
82
9
pytest.raises
test_unsupported_pandas_dtype_strategy
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
TypeError, match=r"is currently unsupported")
modified
df0a0a70335cd47718898679734167b999602011442ed5f9503f433e569d22fd
pytest.raises|test_unsupported_pandas_dtype_strategy|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set fro...
TypeError, match=r"is currently unsupported")
81
9
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
65
4
assert
test_mypy_pandas_dataframe
# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subprocess import sys import typing from pathl...
{ "msg": ( "Incompatible return value type (got " '"pandas.core.frame.DataFrame", expected ' '"pandera.typing.pandas.DataFrame[SchemaOut]")' ), "errcode": "return-value", }
modified
2a4eab68cc945a1408eaf64c5b8d77260bef8e35a957a27cc3189e45df917c60
assert|test_mypy_pandas_dataframe|# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subprocess imp...
{ "msg": ( "Incompatible return value type (got " '"pandas.core.frame.DataFrame", expected ' '"pandera.typing.pandas.DataFrame[SchemaOut]")' ), "errcode": "return-value", }
65
4
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
105
8
assert
test_pandera_runtime_errors
# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subprocess import sys import typing from pathl...
"age"
modified
280524f7a6680161528195002b9e5799c67d07b30d89d88fc7237fd181117f36
assert|test_pandera_runtime_errors|# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subprocess im...
"age"
105
8
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
184
12
assert
test_pandas_stubs_false_positives
# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subprocess import sys import typing from pathl...
expected_errors[lineno]["msg"]
modified
a69a6258e8f205c71b56c120721eec89e0071ee68e7a29b40de41dbe2feabf27
assert|test_pandas_stubs_false_positives|# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subproc...
expected_errors[lineno]["msg"]
184
12
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
186
12
assert
test_pandas_stubs_false_positives
# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subprocess import sys import typing from pathl...
expected_errors[lineno]["msg"]
modified
4c2d47c425b5497eb40ee7cf8dcfdfa17aecbcdef1a945bbdafbe813f7f6ee3b
assert|test_pandas_stubs_false_positives|# pylint: skip-file """Unit tests for static type checking of dataframes. This module uses subprocess and the pytest.capdf fixture to capture the output of calling mypy on the python modules in the tests/core/static folder. """ import importlib import os import re import subproc...
expected_errors[lineno]["msg"]
186
12
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
290
17
pytest.raises
test_nullable
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
OverflowError, match="mktime argument out of range")
modified
78556323c74e731c8c41a9476a1d616523ae352d3053694ed8186ddd2986cfd5
pytest.raises|test_nullable|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines i...
OverflowError, match="mktime argument out of range")
293
17
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
409
4
assert
test_dtype_coercion
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
isinstance(to_schema(sample), ps.DataFrame)
added
c5003b015e33aeb41e6429af6338f7f76335d657ab44550929c421e1a220e729
assert|test_dtype_coercion|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines im...
null
null
null
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
519
8
assert
test_schema_model
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
expected_failures
added
896159d8305f112150b4884be2e6ca93ab60f3837f24a8c2c63e7be3fdaa77ba
assert|test_schema_model|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines impo...
null
null
null
unionai-oss/pandera
train
170
866a3000c4350d9ccc9e28a33775826447dc9d4a
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
549
4
assert
test_check_comparison_operators
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
not invalid_check_result.check_passed
added
694a8e59140b004b0fa705a8b165a62b05669d282eabac2559904ab3cb9fabb7
assert|test_check_comparison_operators|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pander...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
406
4
assert
test_required_column
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
isinstance(required_schema(data), ps.DataFrame)
added
23e4c2baef8fe6b781554df9bc5b956ee7ca7697ceb2b8944479913a7ecde1d6
assert|test_required_column|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines i...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
439
8
assert
test_dtype_coercion
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
isinstance(to_schema(sample), ps.DataFrame)
added
dbb1aa823626f1927598b96b4973f3f79b757e422035039e10b215d50aa921f5
assert|test_dtype_coercion|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines im...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
525
12
assert
test_custom_checks
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
(err.failure_cases["failure_case"] == -1).all()
added
952be18a698d5e467ffb774784020cd30858e9449841615d1e816646b17adbe9
assert|test_custom_checks|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines imp...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
591
4
assert
test_check_comparison_operators
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
valid_check_result.check_passed
added
bf2943da3347c52d959d0366b3b51322479e6b8f27358b73fa39b97e6031f531
assert|test_check_comparison_operators|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pander...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
209
4
assert
test_check_strategy_chained_continuous
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
compare_op(example, assert_value)
added
d40fc758da01bdbc3f6ccd4272965163d1a16bb6b652b8848e1846664e50e5d5
assert|test_check_strategy_chained_continuous|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unitt...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
244
4
assert
test_in_range_strategy
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
data.draw(strat)
added
f7b4f7051be223bddaa7daff1f1185d1469639dca5ed57c167e85a6ad65beda8
assert|test_in_range_strategy|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import ...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
329
4
assert
test_str_pattern_checks
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
re.search(pattern, example)
added
5f35e6e60f05d99653a2f5e68643882533fc83e0ddc4d63f7879c97e27f5dd61
assert|test_str_pattern_checks|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import...
null
null
null
unionai-oss/pandera
train
171
1b85e6afba93295b3f7ef1321a04325c4774cc44
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
801
13
pytest.raises
test_unsatisfiable_checks
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
hypothesis.errors.Unsatisfiable)
added
a11d3af57649d2cb268445b817c833fc25fc43a0c11a4a5b3b74cbe6070103ef
pytest.raises|test_unsatisfiable_checks|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mo...
null
null
null
unionai-oss/pandera
train
172
e8d22bd4b9c9e3e51d8de8ccd338eb6023e36c93
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
446
9
pytest.raises
test_series_schema_multiple_validators
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
errors.SchemaError)
modified
4480b9ef1d894271248e090b62be9fe583606e77504c2770b88e5110f733650f
pytest.raises|test_series_schema_multiple_validators|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Uni...
errors.SchemaError)
446
9
unionai-oss/pandera
train
172
e8d22bd4b9c9e3e51d8de8ccd338eb6023e36c93
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
529
13
pytest.raises
test_dataframe_schema_check_function_types
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
errors.SchemaError)
modified
d1b5b94c4a19396f3f96f9dc92cabd55501e6d96c7058a4082e7867bedcc8b69
pytest.raises|test_dataframe_schema_check_function_types|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type,...
errors.SchemaError)
529
13
unionai-oss/pandera
train
172
e8d22bd4b9c9e3e51d8de8ccd338eb6023e36c93
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
572
13
pytest.raises
test_coerce_dtype_in_dataframe
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
errors.SchemaError, match=r"^Error while coercing .+ to type u{0,1}int[0-9]{1,2}: " r"Could not coerce .+ data_container into type")
modified
6ecb5242481d9b458ac900da8f26c3f6d34c4737669f76a047a2bc6bb1f027cb
pytest.raises|test_coerce_dtype_in_dataframe|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union impor...
errors.SchemaError, match=r"^Error while coercing .+ to type u{0,1}int[0-9]{1,2}: " r"Could not coerce .+ data_container into type")
572
13
unionai-oss/pandera
train
172
e8d22bd4b9c9e3e51d8de8ccd338eb6023e36c93
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
887
8
assert
test_schema_get_dtypes
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
{"col1": Engine.dtype(int)}
modified
e059b16ccbc1e238586fba076df59e1471d46e6ce7072d6a0f9582c1609623ed
assert|test_schema_get_dtypes|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np i...
{"col1": Engine.dtype(int)}
887
8
unionai-oss/pandera
train
173
ecaae8d9ddbddc5ba6cc1a49b1bdbbaaed5bfa48
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,677
9
pytest.raises
test_invalid_keys
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
errors.SchemaInitError)
modified
9bbcf81b446774fa34c1d2fb229890d7c3f578489fdad97a8e88bc88084dc374
pytest.raises|test_invalid_keys|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np...
errors.SchemaInitError)
1,674
9
unionai-oss/pandera
train
173
ecaae8d9ddbddc5ba6cc1a49b1bdbbaaed5bfa48
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,706
4
assert
test_update_columns
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
test_schema.columns["col2"].unique
added
4fd0a0881e50cf13030915e677e737f6a7a2f70c1838a349fca1140803a14310
assert|test_update_columns|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np impo...
null
null
null
unionai-oss/pandera
train
173
ecaae8d9ddbddc5ba6cc1a49b1bdbbaaed5bfa48
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,844
13
pytest.raises
test_schema_level_unique_keyword
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
errors.SchemaError)
added
fa4b17c373ae774cd58b8c8170d274dab2febc5333006e902a9c8cf8c09820ba
pytest.raises|test_schema_level_unique_keyword|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union imp...
null
null
null
unionai-oss/pandera
train
173
ecaae8d9ddbddc5ba6cc1a49b1bdbbaaed5bfa48
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,867
4
assert
test_column_set_unique
"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np import pandas as pd import py...
test_schema.columns["a"].unique
added
efaa25a02ab8acacd9cca5b6b4a82cbd594e852bff886e06c735447cd931f21f
assert|test_column_set_unique|"""Testing creation and manipulation of DataFrameSchema objects.""" # pylint: disable=too-many-lines,redefined-outer-name import copy from datetime import datetime, timedelta from functools import partial from typing import Any, Callable, Dict, List, Tuple, Type, Union import numpy as np i...
null
null
null
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/core/test_dtypes.py
train
unionai-oss/pandera:tests/core/test_dtypes.py
572
4
assert
test_is_bool
"""Tests a variety of python and pandas dtypes, and tests some specific coercion examples.""" # pylint doesn't know about __init__ generated with dataclass # pylint:disable=unexpected-keyword-arg,no-value-for-parameter import dataclasses import datetime import inspect from decimal import Decimal from typing import Any,...
expected
added
85e85aa4887600d994188401dbf64976d7f7a16782abb8cb7b45adc725eb218f
assert|test_is_bool|"""Tests a variety of python and pandas dtypes, and tests some specific coercion examples.""" # pylint doesn't know about __init__ generated with dataclass # pylint:disable=unexpected-keyword-arg,no-value-for-parameter import dataclasses import datetime import inspect from decimal import Decimal fro...
null
null
null
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/core/test_dtypes.py
train
unionai-oss/pandera:tests/core/test_dtypes.py
603
4
assert
test_is_datetime
"""Tests a variety of python and pandas dtypes, and tests some specific coercion examples.""" # pylint doesn't know about __init__ generated with dataclass # pylint:disable=unexpected-keyword-arg,no-value-for-parameter import dataclasses import datetime import inspect from decimal import Decimal from typing import Any,...
expected
added
7eacab5a0762030cdda1e3c8e6e909437b88b51f6cf57a804c7ca63f9ca95ec4
assert|test_is_datetime|"""Tests a variety of python and pandas dtypes, and tests some specific coercion examples.""" # pylint doesn't know about __init__ generated with dataclass # pylint:disable=unexpected-keyword-arg,no-value-for-parameter import dataclasses import datetime import inspect from decimal import Decimal...
null
null
null
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/core/test_logical_dtypes.py
train
unionai-oss/pandera:tests/core/test_logical_dtypes.py
155
13
pytest.raises
test_logical_datatype_coerce
"""Tests logical dtypes.""" from datetime import date, datetime from decimal import Decimal from types import ModuleType from typing import Any, Generator, Iterable, List, cast import numpy as np import pandas as pd import pytest from pandas.testing import assert_series_equal import pandera as pa from pandera.engine...
ParserError)
added
4470d0807e2c92f28402dfd6daecc39b54b4bad06ca55f156cec8e2e719d7df4
pytest.raises|test_logical_datatype_coerce|"""Tests logical dtypes.""" from datetime import date, datetime from decimal import Decimal from types import ModuleType from typing import Any, Generator, Iterable, List, cast import numpy as np import pandas as pd import pytest from pandas.testing import assert_series_equal ...
null
null
null
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/core/test_logical_dtypes.py
train
unionai-oss/pandera:tests/core/test_logical_dtypes.py
225
9
pytest.raises
test_invalid_decimal_params
"""Tests logical dtypes.""" from datetime import date, datetime from decimal import Decimal from types import ModuleType from typing import Any, Generator, Iterable, List, cast import numpy as np import pandas as pd import pytest from pandas.testing import assert_series_equal import pandera as pa from pandera.engine...
ValueError)
added
7436925ac2a6be7a4d7aa5825d6f9303b4996ff73a6befae17b0326c73a37a87
pytest.raises|test_invalid_decimal_params|"""Tests logical dtypes.""" from datetime import date, datetime from decimal import Decimal from types import ModuleType from typing import Any, Generator, Iterable, List, cast import numpy as np import pandas as pd import pytest from pandas.testing import assert_series_equal i...
null
null
null
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
526
12
assert
test_custom_checks
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
(err.failure_cases["failure_case"] == -1).all()
modified
4cbba3a779164bc70c6ad98a0a42b4525f1a79b2a833261ff673faab1cbd8b37
assert|test_custom_checks|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines imp...
(err.failure_cases["failure_case"] == -1).all()
525
12
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/pyspark/test_schemas_on_pyspark.py
val
unionai-oss/pandera:tests/pyspark/test_schemas_on_pyspark.py
665
13
pytest.raises
test_check_decorators
"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas...
pa.errors.SchemaError)
modified
d56d3ac7f6c697b4e053baf670755b9280342597a55b4e4cee159a5b7fdfa275
pytest.raises|test_check_decorators|"""Test pandera on pyspark data structures.""" import re import typing from unittest.mock import MagicMock import pandas as pd import pyspark.pandas as ps import pytest from pyspark import SparkContext import pandera as pa from pandera import dtypes, extensions, system from pandera.e...
pa.errors.SchemaError)
664
13
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
479
9
pytest.raises
test_dataframe_strategy
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
pa.errors.BaseStrategyOnlyError)
modified
b153a65d21c29bed8542327fe752f1ac65406ea9f13746187881378d6bc78064
pytest.raises|test_dataframe_strategy|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock...
pa.errors.BaseStrategyOnlyError)
478
9
unionai-oss/pandera
train
174
9ed9a2bfa67634caecdbe04a4b4e202329f7b65c
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
688
8
assert
test_check_nullable_dataframe_strategy
# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unittest.mock import MagicMock import numpy as np...
example.notna().all(axis=None)
modified
4efc0f430759b49ca39d15a775ab90957a8028f9fe714edf3087048972673468
assert|test_check_nullable_dataframe_strategy|# pylint: disable=undefined-variable,redefined-outer-name,invalid-name,undefined-loop-variable,too-many-lines # noqa """Unit tests for pandera data generating strategies.""" import datetime import operator import re from typing import Any, Callable, Optional, Set from unitt...
example.notna().all(axis=None)
687
8
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
493
4
assert
test_get_dataframe_schema_statistics
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
expectation
added
cbb6ee966a5d1bb3b7c6146575d269cdd5a9f02ce6f130d76b478ee43f842c95
assert|test_get_dataframe_schema_statistics|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float...
null
null
null
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
507
4
assert
test_get_series_schema_statistics
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
{ "dtype": pandas_engine.Engine.dtype(int), "nullable": False, "checks": { "greater_than_or_equal_to": {"min_value": 0}, "less_than_or_equal_to": {"max_value": 100}, }, "name": None, "coerce": False, "unique": False, }
added
b991c4945f0cf3f89a09c644857bacf72af06fa35b5e6b1e2e0b4d648f6f78ad
assert|test_get_series_schema_statistics|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) D...
null
null
null
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
620
4
assert
test_parse_checks_and_statistics_roundtrip
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
set(checks)
added
eec709fcf3d55d75d7829753be1117e092f70bf3859c30ade93407c7d16004ee
assert|test_parse_checks_and_statistics_roundtrip|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype...
null
null
null
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/core/test_schema_statistics.py
train
unionai-oss/pandera:tests/core/test_schema_statistics.py
636
4
assert
test_parse_checks_and_statistics_no_param
# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(float) DEFAULT_INT = pandas_engine.Engine.dtype...
set(checks)
added
bd548dcf1e860295ee254d8df1aacf45ac4ddba3b924a7e84dcab650586d57bc
assert|test_parse_checks_and_statistics_no_param|# pylint: disable=W0212 """Unit tests for inferring statistics of pandas objects.""" import pandas as pd import pytest import pandera as pa from pandera import dtypes, schema_statistics from pandera.engines import pandas_engine DEFAULT_FLOAT = pandas_engine.Engine.dtype(...
null
null
null
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
589
4
assert
test_to_yaml
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
YAML_SCHEMA.strip()
added
aa41c5f2da6eeff3ee4fc465d339e2288f69b5e2a0fb7cd4a87031afb0d35bcc
assert|test_to_yaml|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine ...
null
null
null
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
674
8
assert
test_io_yaml
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
schema
added
3c255ee626d47f6fa64fe9eee738c9d26bfafb4b401b3788eca5b33c96847856
assert|test_io_yaml|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine ...
null
null
null
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
795
9
pytest.raises
test_to_yaml_registered_dataframe_check
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
pandera.errors.SchemaError)
added
51dca525f00a7a701f5ac47227cd4c324dbb920cdb5ccbaf6cfa35f34b039618
pytest.raises|test_to_yaml_registered_dataframe_check|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pan...
null
null
null
unionai-oss/pandera
train
175
da8ee94f8ee37a055a774b17b722e7b0ca2d4a9c
train
tests/io/test_io.py
train
unionai-oss/pandera:tests/io/test_io.py
1,206
12
assert
test_frictionless_schema_primary_key
"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engines import pandas_engine try: from pa...
not schema.columns[key].unique
added
e1d61416e4f4e108c0406911af937a620b017aace28eccea80ba607c2896e369
assert|test_frictionless_schema_primary_key|"""Unit tests for io module""" import platform import tempfile from pathlib import Path from unittest import mock import pandas as pd import pytest from packaging import version import pandera import pandera.extensions as pa_ext import pandera.typing as pat from pandera.engin...
null
null
null
unionai-oss/pandera
train
176
bc6d8f618962523abe88ac0343f3d118f5b0e08b
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
853
4
assert
test_inherit_alias
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
pa.Column(int, name="_c")
modified
6ea28a14b2b8994477e6145c5193143ba45f29869c370e366e4a917cf6a9cac9
assert|test_inherit_alias|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import...
3
850
4
unionai-oss/pandera
train
176
bc6d8f618962523abe88ac0343f3d118f5b0e08b
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,035
4
assert
test_validate_coerce_on_init
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
isinstance(pandas_df, pd.DataFrame)
added
88476a1a3515b240058f2b3d7efc664987cd44a678779aedf9fa0a3a41e36d2b
assert|test_validate_coerce_on_init|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pyt...
null
null
null
unionai-oss/pandera
train
176
bc6d8f618962523abe88ac0343f3d118f5b0e08b
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,151
9
pytest.raises
test_generic_model_multiple_inheritance
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
SchemaError)
added
732768fae37274485be975c0413b2e6c2d6a6e43bfcb15fc7d734c2c69cfb0b0
pytest.raises|test_generic_model_multiple_inheritance|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import panda...
null
null
null
unionai-oss/pandera
train
176
bc6d8f618962523abe88ac0343f3d118f5b0e08b
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,211
9
pytest.raises
test_multiple_generic
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
SchemaError)
added
951f06646b9d3e907d6c864be2c2da2d87adcf6bee0cbd9c623c81250e3e7e30
pytest.raises|test_multiple_generic|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pyt...
null
null
null
unionai-oss/pandera
train
177
8dd841405f93164422220782261e607e8da45afa
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,068
4
assert
test_from_records_validates_the_schema
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
isinstance(pandas_df, pd.DataFrame)
added
a703205725db80f4e218c9b7a73cd32b4b9cd9e84eb916808d4b3791c51ae952
assert|test_from_records_validates_the_schema|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd ...
null
null
null
unionai-oss/pandera
train
177
8dd841405f93164422220782261e607e8da45afa
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,138
4
assert
test_from_records_sorts_the_columns
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
isinstance(pandera_validated_df, DataFrame)
added
f8efdf8adf5c9719679933273d9086c4e973ce5378a4026434e3a2ca72128e1b
assert|test_from_records_sorts_the_columns|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd imp...
null
null
null
unionai-oss/pandera
train
177
8dd841405f93164422220782261e607e8da45afa
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,198
9
pytest.raises
test_generic_model_single_generic_field
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
SchemaError)
added
c1ea99006478d1b646ee96becb41410896e61f5076f53938de50a65513918b10
pytest.raises|test_generic_model_single_generic_field|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import panda...
null
null
null
unionai-oss/pandera
train
177
8dd841405f93164422220782261e607e8da45afa
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,300
9
pytest.raises
test_multiple_generic
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pytest import pandera as pa import pa...
SchemaError)
added
e443a800eca6b22770d7a6d62652df98d49c439f5d4e4048baf714df82c92409
pytest.raises|test_multiple_generic|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from copy import deepcopy from typing import Any, Generic, Iterable, Optional, TypeVar import pandas as pd import pyt...
null
null
null