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
142
cdf46676de64c36dd5105bbdb721256b79279f69
train
tests/core/test_pydantic.py
train
unionai-oss/pandera:tests/core/test_pydantic.py
73
9
pytest.raises
test_invalid_typed_dataframe
"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, ValidationError except ImportError: ...
ValueError)
added
aead5e058a995d110f87b59852dae653f4914ff989a7c5e30f63d7a8fb245b8b
pytest.raises|test_invalid_typed_dataframe|"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, Val...
null
null
null
unionai-oss/pandera
train
142
cdf46676de64c36dd5105bbdb721256b79279f69
train
tests/core/test_pydantic.py
train
unionai-oss/pandera:tests/core/test_pydantic.py
79
4
assert
test_schemamodel
"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, ValidationError except ImportError: ...
isinstance( SchemaModelPydantic(pa_schema=SimpleSchema), SchemaModelPydantic, )
added
0a48b1e88e7166fc2ebd277e6768bc6689b838e9a800ac94c495ca04f7002f4d
assert|test_schemamodel|"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, ValidationError except...
null
null
null
unionai-oss/pandera
train
142
cdf46676de64c36dd5105bbdb721256b79279f69
train
tests/core/test_pydantic.py
train
unionai-oss/pandera:tests/core/test_pydantic.py
123
9
pytest.raises
test_schemamodel_inheritance
"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, ValidationError except ImportError: ...
ValidationError)
added
1a18bf066c112a3391d7e482c8a7d9f77abd952acf0fb79f9eff465db3280069
pytest.raises|test_schemamodel_inheritance|"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, Val...
null
null
null
unionai-oss/pandera
train
142
cdf46676de64c36dd5105bbdb721256b79279f69
train
tests/core/test_pydantic.py
train
unionai-oss/pandera:tests/core/test_pydantic.py
143
9
pytest.raises
test_invalid_dataframeschema
"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, ValidationError except ImportError: ...
ValidationError)
added
35376ef62a6bb37a8af6d25fb87a4d21ff6237956456646e63562205c7933779
pytest.raises|test_invalid_dataframeschema|"""Unit tests for pydantic compatibility.""" # pylint:disable=too-few-public-methods,missing-class-docstring from typing import Optional import pandas as pd import pytest import pandera as pa from pandera.typing import DataFrame, Series try: from pydantic import BaseModel, Val...
null
null
null
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/koalas/test_schemas_on_koalas.py
test
unionai-oss/pandera:tests/koalas/test_schemas_on_koalas.py
377
13
pytest.raises
test_dtype_coercion
"""Test pandera on koalas data structures.""" import typing from unittest.mock import MagicMock import databricks.koalas as ks import pandas as pd import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from tests.strategies.test_strat...
pa.errors.SchemaError, match="non-nullable series")
added
e4020c08e72b3ab2a06e9af0f4074c28e1649cbc44f056ca8d9d4d5bc8633fb8
pytest.raises|test_dtype_coercion|"""Test pandera on koalas data structures.""" import typing from unittest.mock import MagicMock import databricks.koalas as ks import pandas as pd import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine f...
null
null
null
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/koalas/test_schemas_on_koalas.py
test
unionai-oss/pandera:tests/koalas/test_schemas_on_koalas.py
486
4
assert
test_check_comparison_operators
"""Test pandera on koalas data structures.""" import typing from unittest.mock import MagicMock import databricks.koalas as ks import pandas as pd import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from tests.strategies.test_strat...
valid_check_result.check_passed
added
9d77ee4b25befc4a99263096cbc59cacc9125d3bef38d5cbcd830826d2f16372
assert|test_check_comparison_operators|"""Test pandera on koalas data structures.""" import typing from unittest.mock import MagicMock import databricks.koalas as ks import pandas as pd import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_eng...
null
null
null
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
232
9
pytest.raises
test_unique
"""Unit tests for modin data structures.""" import os 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 tests.strategies.test_strategies import...
pa.errors.SchemaError, match="series .+ contains duplicate values")
added
eefe0d941c837c5ab5d5f6f6fada7a9377a00fd4ee1cd5f1ca50c09b94919164
pytest.raises|test_unique|"""Unit tests for modin data structures.""" import os 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 tests.strategies...
null
null
null
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
288
4
assert
test_dtype_coercion
"""Unit tests for modin data structures.""" import os 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 tests.strategies.test_strategies import...
isinstance(to_schema(sample), mpd.DataFrame)
added
ce2db5faa7d93e09ab97c077b7d16a61fc33160a138d94e75a6af1dd55bcbe97
assert|test_dtype_coercion|"""Unit tests for modin data structures.""" import os 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 tests.strategie...
null
null
null
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
394
4
assert
test_check_comparison_operators
"""Unit tests for modin data structures.""" import os 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 tests.strategies.test_strategies import...
valid_check_result.check_passed
added
8e8a04bc786e428290cfb2ac840fb900a75a87db1267bcb4f1e1cc75510644be
assert|test_check_comparison_operators|"""Unit tests for modin data structures.""" import os 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 tes...
null
null
null
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
97
4
assert
test_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...
expected_type
modified
5b7f3f42024e77e49ea20e42128fc9d2e59926eb46007166afa88981677cce3f
assert|test_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 imp...
expected_type
97
4
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
293
4
assert
test_isin_notin_strategies
# 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...
values
modified
6d6a1b2f76c3092f7a23a2179406340eb4cd0d5c26f68ebd2bb821f5c666d71c
assert|test_isin_notin_strategies|# 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 imp...
values
293
4
unionai-oss/pandera
train
143
b7f65168bbb7a8d674c5085fca823c8b9affb8c1
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
855
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
58571df3050795cac2d132cf2df62a7af7164666e04bdc3d73b96bd59db0f147
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)
855
13
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/core/test_pandas_accessor.py
train
unionai-oss/pandera:tests/core/test_pandas_accessor.py
41
8
assert
test_dataframe_series_add_schema
"""Unit tests for pandas_accessor module.""" from typing import Union from unittest.mock import patch import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=True), ...
schema1
modified
c12416fede58a18699d25e7c2043a3d6489cf5ed3cf8b54c7e36f973c4cf3412
assert|test_dataframe_series_add_schema|"""Unit tests for pandas_accessor module.""" from typing import Union from unittest.mock import patch import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=Tr...
schema1
40
8
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/core/test_pandas_accessor.py
train
unionai-oss/pandera:tests/core/test_pandas_accessor.py
51
4
assert
test_dataframe_series_add_schema
"""Unit tests for pandas_accessor module.""" from typing import Union from unittest.mock import patch import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=True), ...
schema2
modified
2e9e72f2873fb41ce0728eb15f355a09f0a799f0715e38abb497e0db729517e0
assert|test_dataframe_series_add_schema|"""Unit tests for pandas_accessor module.""" from typing import Union from unittest.mock import patch import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=Tr...
schema2
50
4
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/dask/test_dask.py
train
unionai-oss/pandera:tests/dask/test_dask.py
32
9
pytest.raises
test_model_validation
""" Tests that basic Pandera functionality works for Dask objects. """ import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing import DaskDataFrame, Series class IntSchema(pa.SchemaModel): # pylint: disable=missing-class-docstring col: Series[int] class StrSche...
pa.errors.SchemaError)
added
44330dfa2c18b85d099b31751196242633a21aee1cdca7c965ac3dee2141990b
pytest.raises|test_model_validation|""" Tests that basic Pandera functionality works for Dask objects. """ import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing import DaskDataFrame, Series class IntSchema(pa.SchemaModel): # pylint: disable=missing-class-docstring col: S...
null
null
null
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/dask/test_dask.py
train
unionai-oss/pandera:tests/dask/test_dask.py
81
9
pytest.raises
test_series_schema
""" Tests that basic Pandera functionality works for Dask objects. """ import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing import DaskDataFrame, Series class IntSchema(pa.SchemaModel): # pylint: disable=missing-class-docstring col: Series[int] class StrSche...
pa.errors.SchemaError)
added
7d26b67346e88955e000ea0283b87ace421c3c48871ae53f51139ce2699b4db7
pytest.raises|test_series_schema|""" Tests that basic Pandera functionality works for Dask objects. """ import dask.dataframe as dd import pandas as pd import pytest import pandera as pa from pandera.typing import DaskDataFrame, Series class IntSchema(pa.SchemaModel): # pylint: disable=missing-class-docstring col: Seri...
null
null
null
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/dask/test_dask_accessor.py
train
unionai-oss/pandera:tests/dask/test_dask_accessor.py
43
8
assert
test_dataframe_series_add_schema
"""Unit tests for dask_accessor module.""" from typing import Union import dask.dataframe as dd import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=True), ...
None
added
7fdb35751ffa3433b81d07f76e5c03eb339aab12bdb56a9eb1e9987c8ce86672
assert|test_dataframe_series_add_schema|"""Unit tests for dask_accessor module.""" from typing import Union import dask.dataframe as dd import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=True), p...
null
null
null
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/dask/test_dask_accessor.py
train
unionai-oss/pandera:tests/dask/test_dask_accessor.py
50
8
assert
test_dataframe_series_add_schema
"""Unit tests for dask_accessor module.""" from typing import Union import dask.dataframe as dd import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=True), ...
schema1
added
baff2da403862e55135470eef7e7a0c654f03d953d9baf4680cc544687937252
assert|test_dataframe_series_add_schema|"""Unit tests for dask_accessor module.""" from typing import Union import dask.dataframe as dd import pandas as pd import pytest import pandera as pa @pytest.mark.parametrize( "schema1, schema2, data, invalid_data", [ [ pa.DataFrameSchema({"col": pa.Column(int)}, coerce=True), p...
null
null
null
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/dask/test_dask_not_installed.py
train
unionai-oss/pandera:tests/dask/test_dask_not_installed.py
13
13
pytest.raises
test_dask_not_installed
"""Tests behavior when dask is not installed. """ import sys from unittest import mock import pandas as pd import pytest def test_dask_not_installed() -> None: """Test that Pandera and its modules can be imported and continue to work without dask""" with mock.patch.dict("sys.modules", {"dask": None}): ...
ImportError)
added
277ccd535775329beda792af84fe9d3414ca73f9b5b10c128a645646ee3e96e7
pytest.raises|test_dask_not_installed|"""Tests behavior when dask is not installed. """ import sys from unittest import mock import pandas as pd import pytest def test_dask_not_installed() -> None: """Test that Pandera and its modules can be imported and continue to work without dask""" with mock.patch.dict("sys.module...
null
null
null
unionai-oss/pandera
train
144
02063c8d127dd02d5efd1a8d34320c955bc69f9f
train
tests/dask/test_dask_not_installed.py
train
unionai-oss/pandera:tests/dask/test_dask_not_installed.py
37
8
assert
test_dask_not_installed
"""Tests behavior when dask is not installed. """ import sys from unittest import mock import pandas as pd import pytest def test_dask_not_installed() -> None: """Test that Pandera and its modules can be imported and continue to work without dask""" with mock.patch.dict("sys.modules", {"dask": None}): ...
pandera.typing.AnnotationInfo(annotation).is_generic_df
added
7fbf899a875486f1e5318ffadd9a986b07346e83aa1050fb1917fae565c61061
assert|test_dask_not_installed|"""Tests behavior when dask is not installed. """ import sys from unittest import mock import pandas as pd import pytest def test_dask_not_installed() -> None: """Test that Pandera and its modules can be imported and continue to work without dask""" with mock.patch.dict("sys.modules", {"d...
null
null
null
unionai-oss/pandera
train
145
46dc3a2af1c30b31d9bf7c0e3eecfdcbd89d6512
train
tests/core/test_static_type_checking.py
test
unionai-oss/pandera:tests/core/test_static_type_checking.py
63
4
assert
test_mypy_pandas_dataframe
"""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 os import re import subprocess import sys import typing from pathlib import Path import pytest import...
{ "msg": ( "Incompatible return value type (got " '"pandas.core.frame.DataFrame", expected ' '"pandera.typing.DataFrame[SchemaOut]")' ), "errcode": "return-value", }
added
7948e9a2bd74ca3f2e2fdd81d1dd5a4dffd9e229f6c5c4d9d7ed7f772bb93902
assert|test_mypy_pandas_dataframe|"""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 os import re import subprocess import sys import typing from pathlib im...
null
null
null
unionai-oss/pandera
train
145
46dc3a2af1c30b31d9bf7c0e3eecfdcbd89d6512
train
tests/core/test_static_type_checking.py
test
unionai-oss/pandera:tests/core/test_static_type_checking.py
71
4
assert
test_mypy_pandas_dataframe
"""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 os import re import subprocess import sys import typing from pathlib import Path import pytest import...
{ "msg": ( 'Argument 1 to "fn" has incompatible type ' '"pandas.core.frame.DataFrame"; expected ' '"pandera.typing.DataFrame[Schema]"' ), "errcode": "arg-type", }
added
32146cacdc745203782a29c203114c8f567bbe0212201be900af6586007b3d94
assert|test_mypy_pandas_dataframe|"""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 os import re import subprocess import sys import typing from pathlib im...
null
null
null
unionai-oss/pandera
train
145
46dc3a2af1c30b31d9bf7c0e3eecfdcbd89d6512
train
tests/core/test_static_type_checking.py
test
unionai-oss/pandera:tests/core/test_static_type_checking.py
79
4
assert
test_mypy_pandas_dataframe
"""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 os import re import subprocess import sys import typing from pathlib import Path import pytest import...
{ "msg": ( 'Argument 1 to "fn" has incompatible type ' '"DataFrame[AnotherSchema]"; expected "DataFrame[Schema]"' ), "errcode": "arg-type", }
added
479a29e2ba2810e9586193821c2d225b6d7f246ee3591ce7fa582fecc02943b6
assert|test_mypy_pandas_dataframe|"""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 os import re import subprocess import sys import typing from pathlib im...
null
null
null
unionai-oss/pandera
train
145
46dc3a2af1c30b31d9bf7c0e3eecfdcbd89d6512
train
tests/core/test_static_type_checking.py
test
unionai-oss/pandera:tests/core/test_static_type_checking.py
102
8
assert
test_pandera_runtime_errors
"""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 os import re import subprocess import sys import typing from pathlib import Path import pytest import...
"age"
added
379a475fe304e387848524a1ac5417cae7f3910814a793cb34b8761e5299f779
assert|test_pandera_runtime_errors|"""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 os import re import subprocess import sys import typing from pathlib i...
null
null
null
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
439
9
pytest.raises
test_check_regex
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import pytest import pandera as pa i...
pa.errors.SchemaErrors, match="1 schema errors were found")
added
ceef847208d4b4a9b5eae672dce6bea017b57f682b339b2fce65732e889c64c8
pytest.raises|test_check_regex|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import p...
null
null
null
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/core/test_static_type_checking.py
test
unionai-oss/pandera:tests/core/test_static_type_checking.py
63
4
assert
test_mypy_pandas_dataframe
"""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 os import re import subprocess import sys import typing from pathlib import Path import pytest import...
{ "msg": ( "Incompatible return value type (got " '"pandas.core.frame.DataFrame", expected ' '"pandera.typing.pandas.DataFrame[SchemaOut]")' ), "errcode": "return-value", }
modified
60847ee67f8c5393fc0b82e4652f5bdeea999ab8344bd31508d833487c5164ef
assert|test_mypy_pandas_dataframe|"""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 os import re import subprocess import sys import typing from pathlib im...
{ "msg": ( "Incompatible return value type (got " '"pandas.core.frame.DataFrame", expected ' '"pandera.typing.DataFrame[SchemaOut]")' ), "errcode": "return-value", }
63
4
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/core/test_static_type_checking.py
test
unionai-oss/pandera:tests/core/test_static_type_checking.py
79
4
assert
test_mypy_pandas_dataframe
"""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 os import re import subprocess import sys import typing from pathlib import Path import pytest import...
{ "msg": ( 'Argument 1 to "fn" has incompatible type ' '"DataFrame[AnotherSchema]"; expected "DataFrame[Schema]"' ), "errcode": "arg-type", }
modified
7c648fef98bc2747eb726ac0126c8dff39cecd611ff0c23610a31db140e4c2cf
assert|test_mypy_pandas_dataframe|"""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 os import re import subprocess import sys import typing from pathlib im...
{ "msg": ( 'Argument 1 to "fn" has incompatible type ' '"DataFrame[AnotherSchema]"; expected "DataFrame[Schema]"' ), "errcode": "arg-type", }
79
4
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/core/test_typing.py
val
unionai-oss/pandera:tests/core/test_typing.py
393
13
pytest.raises
test_pandas_extension_dtype_redundant_field
"""Test typing annotations for the model api.""" # pylint:disable=missing-class-docstring,too-few-public-methods import re from typing import Any, Dict, Optional, Type import numpy as np import pandas as pd import pytest import pandera as pa from pandera.dtypes import DataType from pandera.typing import DataFrame, In...
TypeError, match=err_msg)
modified
9c512e2d4e03fc9952c9730a898113f804cb71e6c11980d8b688a07b80b6bb08
pytest.raises|test_pandas_extension_dtype_redundant_field|"""Test typing annotations for the model api.""" # pylint:disable=missing-class-docstring,too-few-public-methods import re from typing import Any, Dict, Optional, Type import numpy as np import pandas as pd import pytest import pandera as pa from pandera.dtypes ...
TypeError, match=err_msg)
393
13
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/dask/test_dask.py
train
unionai-oss/pandera:tests/dask/test_dask.py
57
9
pytest.raises
test_dataframe_schema
""" Tests that basic Pandera functionality works for Dask objects. """ 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 col: Series[int] class...
pa.errors.SchemaError)
modified
e1347812c359484cecda4ae8590acd76fab6f026a15854694f2bfa870c74208c
pytest.raises|test_dataframe_schema|""" Tests that basic Pandera functionality works for Dask objects. """ 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-docstrin...
pa.errors.SchemaError)
57
9
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/dask/test_dask.py
train
unionai-oss/pandera:tests/dask/test_dask.py
144
9
pytest.raises
test_init_pandas_dataframe_errors
""" Tests that basic Pandera functionality works for Dask objects. """ 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 col: Series[int] class...
pa.errors.SchemaError)
added
a8138a914f7ac69eda1ff6635b03765e6718834618dee07a99f9eb1cb69748c2
pytest.raises|test_init_pandas_dataframe_errors|""" Tests that basic Pandera functionality works for Dask objects. """ 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-cl...
null
null
null
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/koalas/test_schemas_on_koalas.py
test
unionai-oss/pandera:tests/koalas/test_schemas_on_koalas.py
341
13
pytest.raises
test_regex_columns
"""Test pandera on koalas data structures.""" import typing from unittest.mock import MagicMock import databricks.koalas as ks import pandas as pd import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine from pandera.typing import DataF...
pa.errors.SchemaError)
modified
8229720a605e653c1e9f9368a8163921e55b721cce4a9a05c379e3adf064a369
pytest.raises|test_regex_columns|"""Test pandera on koalas data structures.""" import typing from unittest.mock import MagicMock import databricks.koalas as ks import pandas as pd import pytest import pandera as pa from pandera import dtypes, extensions, system from pandera.engines import numpy_engine, pandas_engine fr...
pa.errors.SchemaError)
340
13
unionai-oss/pandera
train
146
735e7fe7fc6b67958ddf73b0b95349748d89e54c
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
210
13
pytest.raises
test_nullable
"""Unit tests for modin data structures.""" import os 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, ...
pa.errors.SchemaError)
modified
89a929a1cdbf8f758bec8bb6f756e63be1cfd9dd1da784f53bc59a10dbec5305
pytest.raises|test_nullable|"""Unit tests for modin data structures.""" import os 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...
pa.errors.SchemaError)
209
13
unionai-oss/pandera
train
147
32f60bdaf80968036bf046a08df8d82315a8d972
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
93
4
assert
test_dataframe_schema_case
"""Unit tests for modin data structures.""" import os import platform 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 im...
isinstance(schema.validate(mdf), mpd.DataFrame)
added
7ef8537493e1e667f81e5e6d90ee6f31c2e445d8f74192d74b606007e4abe042
assert|test_dataframe_schema_case|"""Unit tests for modin data structures.""" import os import platform 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_engi...
null
null
null
unionai-oss/pandera
train
147
32f60bdaf80968036bf046a08df8d82315a8d972
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
264
9
pytest.raises
test_required_column
"""Unit tests for modin data structures.""" import os import platform 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 im...
pa.errors.SchemaError)
added
536c95434100734bacf620a2dcd7a60a6c8d1ca588fa408fb9871592908805ed
pytest.raises|test_required_column|"""Unit tests for modin data structures.""" import os import platform 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_eng...
null
null
null
unionai-oss/pandera
train
147
32f60bdaf80968036bf046a08df8d82315a8d972
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
401
4
assert
test_check_comparison_operators
"""Unit tests for modin data structures.""" import os import platform 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 im...
not invalid_check_result.check_passed
added
8d950e1d175c5c15e45a61d0ed51cb442a13fd5a51eec9914f14f25e2e6fec79
assert|test_check_comparison_operators|"""Unit tests for modin data structures.""" import os import platform 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...
null
null
null
unionai-oss/pandera
train
147
32f60bdaf80968036bf046a08df8d82315a8d972
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
467
13
pytest.raises
test_check_decorators
"""Unit tests for modin data structures.""" import os import platform 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 im...
pa.errors.SchemaError)
modified
68a4a292da826754299a3eac8de833bc45bbc64432516caaf30175f4f82ef454
pytest.raises|test_check_decorators|"""Unit tests for modin data structures.""" import os import platform 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_en...
pa.errors.SchemaError)
470
13
unionai-oss/pandera
train
148
2e837acf2023da70de6bbabb95778d2f3eae48be
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
214
4
assert
test_nullable
"""Unit tests for modin data structures.""" import os import platform 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 im...
ks_nonnull_sample.notna().all().item()
modified
3fd018a1e705181624910ecbd81f863c41740a1abf64c2fafaf0fe098c3c4a5c
assert|test_nullable|"""Unit tests for modin data structures.""" import os import platform 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 pande...
ks_nonnull_sample.notna().all().item()
212
4
unionai-oss/pandera
train
148
2e837acf2023da70de6bbabb95778d2f3eae48be
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
232
4
assert
test_unique
"""Unit tests for modin data structures.""" import os import platform 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 im...
isinstance(series_schema(data_unique["field"]), mpd.Series)
modified
152eb375a2cf07377d5a1de323ed66fe586b936223d9e361c607559b87df42ba
assert|test_unique|"""Unit tests for modin data structures.""" import os import platform 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...
isinstance(series_schema(data_unique["field"]), mpd.Series)
230
4
unionai-oss/pandera
train
148
2e837acf2023da70de6bbabb95778d2f3eae48be
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
292
21
pytest.raises
test_dtype_coercion
"""Unit tests for modin data structures.""" import os import platform 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 im...
ValueError)
modified
6715018876c76a467e062745434f939c69af1b0bdbea14e7b5bf28abddabc2a7
pytest.raises|test_dtype_coercion|"""Unit tests for modin data structures.""" import os import platform 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_engi...
ValueError)
290
21
unionai-oss/pandera
train
148
2e837acf2023da70de6bbabb95778d2f3eae48be
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
510
9
pytest.raises
test_init_modin_dataframe_errors
"""Unit tests for modin data structures.""" import os import platform 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 im...
pa.errors.SchemaError)
modified
aa93911c859edf0ae3c44f4a5fec26f1040282016481c244ac313cb5e6bee442
pytest.raises|test_init_modin_dataframe_errors|"""Unit tests for modin data structures.""" import os import platform 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...
pa.errors.SchemaError)
508
9
unionai-oss/pandera
train
149
728796de392608cb901b54c9691fdc015f0c9ba3
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
547
13
pytest.raises
test_dataframe_with_regex
# 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...
ValueError)
modified
b23dec6dc76b0dfdb516bdaf8974b2a07592b92ca16ebef7d31a1e49a18a80f0
pytest.raises|test_dataframe_with_regex|# 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...
ValueError)
546
13
unionai-oss/pandera
train
149
728796de392608cb901b54c9691fdc015f0c9ba3
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
709
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
b8ae4f212c5cc1d8c464b7e0b05094a6ae2fcb92a13214ff35b09416ed63c52b
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()
708
8
unionai-oss/pandera
train
149
728796de392608cb901b54c9691fdc015f0c9ba3
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
856
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
04a682622136f7ac1831d4bd8bf41ac0ddc418c55e53689e437fc560df89ee2f
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)
855
13
unionai-oss/pandera
train
149
728796de392608cb901b54c9691fdc015f0c9ba3
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
916
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
c633868d78202ff8fde93307e78305c80fd769530efe10733954cf029eea1927
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)
915
13
unionai-oss/pandera
train
150
402833aed06579a5d7709f739e4563e4182baeb5
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
97
4
assert
test_dataframe_schema_case
"""Unit tests for modin data structures.""" import os import platform 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 im...
isinstance(schema.validate(mdf), mpd.DataFrame)
added
db1e6c0c8b5065e55569db423b169ede675af7c356042579ce22c04c84eeb236
assert|test_dataframe_schema_case|"""Unit tests for modin data structures.""" import os import platform 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_engi...
null
null
null
unionai-oss/pandera
train
150
402833aed06579a5d7709f739e4563e4182baeb5
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
241
9
pytest.raises
test_unique
"""Unit tests for modin data structures.""" import os import platform 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 im...
pa.errors.SchemaError, match="series .+ contains duplicate values")
modified
9017296c64d476502db4a74db577b7135c86cb545f3cb48b33ba6e18513df1cb
pytest.raises|test_unique|"""Unit tests for modin data structures.""" import os import platform 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 ...
pa.errors.SchemaError, match="series .+ contains duplicate values")
240
9
unionai-oss/pandera
train
150
402833aed06579a5d7709f739e4563e4182baeb5
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
378
8
assert
test_schema_model
"""Unit tests for modin data structures.""" import os import platform 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 im...
expected_failures
added
59f08345b8f5ae017a0ce0f679a457ba62c92f0d72ae58666e0b461a13c1a836
assert|test_schema_model|"""Unit tests for modin data structures.""" import os import platform 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 p...
null
null
null
unionai-oss/pandera
train
150
402833aed06579a5d7709f739e4563e4182baeb5
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
498
4
assert
test_init_modin_dataframe
"""Unit tests for modin data structures.""" import os import platform 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 im...
isinstance( DataFrame[InitSchema]({"col1": [1], "col2": [1.0], "col3": ["1"]}), DataFrame, )
added
0313bdbba416c7b0830e00d0111b70c4223e08a6dd1b0870f5ff97bfa4e03d2d
assert|test_init_modin_dataframe|"""Unit tests for modin data structures.""" import os import platform 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_engin...
null
null
null
unionai-oss/pandera
train
151
97c8a6fb99bbf674a1a7e73763781d7739a20578
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
345
12
assert
test_custom_checks
"""Unit tests for modin data structures.""" import os import platform 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 im...
(err.failure_cases["failure_case"] == -1).all()
modified
d6d9678af0379b6b4b4f1b809068885e3d43a0c8b4c5112dcd4bda079a706fbe
assert|test_custom_checks|"""Unit tests for modin data structures.""" import os import platform 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 ...
(err.failure_cases["failure_case"] == -1).all()
345
12
unionai-oss/pandera
train
151
97c8a6fb99bbf674a1a7e73763781d7739a20578
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
378
8
assert
test_schema_model
"""Unit tests for modin data structures.""" import os import platform 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 im...
expected_failures
modified
ddac913145e0659fbd488a4d65900d58cdfc9612b034f7721336dd8ac8c3ba08
assert|test_schema_model|"""Unit tests for modin data structures.""" import os import platform 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 p...
expected_failures
378
8
unionai-oss/pandera
train
151
97c8a6fb99bbf674a1a7e73763781d7739a20578
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
408
4
assert
test_check_comparison_operators
"""Unit tests for modin data structures.""" import os import platform 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 im...
not invalid_check_result.check_passed
modified
c07d5bd5d23a84a73afac107ecd627376ccd412fb35d640b1cf4b76b93cf59a3
assert|test_check_comparison_operators|"""Unit tests for modin data structures.""" import os import platform 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...
not invalid_check_result.check_passed
408
4
unionai-oss/pandera
train
151
97c8a6fb99bbf674a1a7e73763781d7739a20578
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
498
4
assert
test_init_modin_dataframe
"""Unit tests for modin data structures.""" import os import platform 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 im...
isinstance( DataFrame[InitSchema]({"col1": [1], "col2": [1.0], "col3": ["1"]}), DataFrame, )
modified
a65c9f4de86f73675ffaf959f8e7bd50b0eefa7df3fe4a140c635a592463af36
assert|test_init_modin_dataframe|"""Unit tests for modin data structures.""" import os import platform 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_engin...
isinstance( DataFrame[InitSchema]({"col1": [1], "col2": [1.0], "col3": ["1"]}), DataFrame, )
498
4
unionai-oss/pandera
train
152
ff53190c227ce62b487ed14719117934a9dd2d96
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
93
4
assert
test_dataframe_schema_case
"""Unit tests for modin data structures.""" import os 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, ...
isinstance(schema.validate(mdf), mpd.DataFrame)
added
a9c52c2fd3c34c12914c346cef5714578bce9ee7aac3f21263b39a48037732c6
assert|test_dataframe_schema_case|"""Unit tests for modin data structures.""" import os 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....
null
null
null
unionai-oss/pandera
train
152
ff53190c227ce62b487ed14719117934a9dd2d96
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
108
4
assert
_test_datatype_with_schema
"""Unit tests for modin data structures.""" import os 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, ...
isinstance(schema(data_container_cls(sample)), data_container_cls)
added
96ad2869dbb4ea75ac118ad53da36286c424880da3470e4679f8848d94bc1762
assert|_test_datatype_with_schema|"""Unit tests for modin data structures.""" import os 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....
null
null
null
unionai-oss/pandera
train
152
ff53190c227ce62b487ed14719117934a9dd2d96
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
215
13
pytest.raises
test_nullable
"""Unit tests for modin data structures.""" import os 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, ...
pa.errors.SchemaError)
added
a16aa195472b400d82b7c46fa3133e59a8365cd6cff37286227ef515ef28c8b8
pytest.raises|test_nullable|"""Unit tests for modin data structures.""" import os 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...
null
null
null
unionai-oss/pandera
train
152
ff53190c227ce62b487ed14719117934a9dd2d96
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
475
13
pytest.raises
test_check_decorators
"""Unit tests for modin data structures.""" import os 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, ...
pa.errors.SchemaError)
modified
e056b3bd74873db858849b9af75e8735f54993998521bab32340ea24aad4fd0a
pytest.raises|test_check_decorators|"""Unit tests for modin data structures.""" import os 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 pander...
pa.errors.SchemaError)
474
13
unionai-oss/pandera
train
153
a5f2131798f22c253847715f106803e9f6a3bc56
train
tests/core/test_dtypes.py
train
unionai-oss/pandera:tests/core/test_dtypes.py
251
4
assert
test_datatype_call
"""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,...
["1", "2", "3", "4", "5"]
modified
34c616ef0e3f852bd00aea7bcb93a6fccea746c140c94b62f191af20ff3ff808
assert|test_datatype_call|"""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 Decim...
["1", "2", "3", "4", "5"]
252
4
unionai-oss/pandera
train
153
a5f2131798f22c253847715f106803e9f6a3bc56
train
tests/core/test_dtypes.py
train
unionai-oss/pandera:tests/core/test_dtypes.py
256
4
assert
test_datatype_alias
"""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,...
str(pd_dtype)
modified
6e131720c05d5542ad4038da81fcf97f708d6bc88880cb27bda7aa9876cd3627
assert|test_datatype_alias|"""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 Deci...
str(pd_dtype)
257
4
unionai-oss/pandera
train
153
a5f2131798f22c253847715f106803e9f6a3bc56
train
tests/core/test_dtypes.py
train
unionai-oss/pandera:tests/core/test_dtypes.py
492
4
assert
test_is_int
"""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
modified
3cb55b22aa1086f99f235407eaf8f7dca2c659b16c576910138e6764e224c9a4
assert|test_is_int|"""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...
expected
493
4
unionai-oss/pandera
train
153
a5f2131798f22c253847715f106803e9f6a3bc56
train
tests/core/test_dtypes.py
train
unionai-oss/pandera:tests/core/test_dtypes.py
534
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
modified
b0a0987f4983dcaf9f9d1fbbf53d87150a6fe05bad7d999ec81ac6fb959e288e
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...
expected
535
4
unionai-oss/pandera
train
154
6cf0d4e6fab04d0e94c6fe963edd14d38238f604
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
55
4
assert
test_mypy_pandas_dataframe
"""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 pathlib import Path impo...
{ "msg": ( 'Argument 1 to "pipe" of "NDFrame" has incompatible type ' '"Type[DataFrame[Any]]"; expected ' '"Union[Callable[..., DataFrame[SchemaOut]], ' 'Tuple[Callable[..., DataFrame[SchemaOut]], str]]"' ), "errcode": "arg-type", }
modified
c499f7a8390c07d3178a44f66673d1913847b44de743e9fd0d1e12e6d4cf7e2e
assert|test_mypy_pandas_dataframe|"""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 typin...
{ "msg": ( 'Argument 1 to "pipe" of "NDFrame" has incompatible type ' '"Type[DataFrame[Any]]"; expected ' '"Union[Callable[..., DataFrame[SchemaOut]], ' 'Tuple[Callable[..., DataFrame[SchemaOut]], str]]"' ), "errcode": "arg-type", }
54
4
unionai-oss/pandera
train
154
6cf0d4e6fab04d0e94c6fe963edd14d38238f604
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
72
4
assert
test_mypy_pandas_dataframe
"""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 pathlib import Path impo...
{ "msg": ( 'Argument 1 to "fn" has incompatible type ' '"pandas.core.frame.DataFrame"; expected ' '"pandera.typing.pandas.DataFrame[Schema]"' ), "errcode": "arg-type", }
modified
a3d6a33450e5c18f4203be4b0e62c2661717c65eb8fa7541ce52039a936cf194
assert|test_mypy_pandas_dataframe|"""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 typin...
{ "msg": ( 'Argument 1 to "fn" has incompatible type ' '"pandas.core.frame.DataFrame"; expected ' '"pandera.typing.pandas.DataFrame[Schema]"' ), "errcode": "arg-type", }
71
4
unionai-oss/pandera
train
154
6cf0d4e6fab04d0e94c6fe963edd14d38238f604
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
104
8
assert
test_pandera_runtime_errors
"""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 pathlib import Path impo...
"age"
modified
8dae0d68b94b851b084aebb428fa6ab835aedd741a77676c041ad55be32e37c3
assert|test_pandera_runtime_errors|"""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 typi...
"age"
103
8
unionai-oss/pandera
train
154
6cf0d4e6fab04d0e94c6fe963edd14d38238f604
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
170
4
assert
test_pandas_stubs_false_positives
"""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 pathlib import Path impo...
errors
added
83a3d765c9a89ccaff92719b12a2d5969516d8e0119269a2979360fa83e5ed47
assert|test_pandas_stubs_false_positives|"""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 impor...
null
null
null
unionai-oss/pandera
train
155
9448d0a80b8dd02910f9cc553ce00349584b107f
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
238
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)
added
5d94eacf73c46ccd744e95c23ac44b08adebc148bb07dcc72fc83390d5607eb6
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...
null
null
null
unionai-oss/pandera
train
155
9448d0a80b8dd02910f9cc553ce00349584b107f
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
250
12
assert
test_unpickling
"""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....
None
added
414de1a1ffa1433e5c6b092f6b201f0f79dadbb51ff8bd5c8f2fc0a65cbea18b
assert|test_unpickling|"""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 ...
null
null
null
unionai-oss/pandera
train
155
9448d0a80b8dd02910f9cc553ce00349584b107f
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
266
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....
str( exc_native.schema_errors )
added
2bc49ffc1df11693e747b85a0f2faff3cec95e4c715c6ea29f6cec2fa3db24e8
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...
null
null
null
unionai-oss/pandera
train
155
9448d0a80b8dd02910f9cc553ce00349584b107f
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
285
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
aadfd2e9cede0da21fd69b9f6a52227d0b3f6c1b1a041d7d47a584f4248c4295
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
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/core/test_checks.py
train
unionai-oss/pandera:tests/core/test_checks.py
451
8
assert
test_dataframe_check_schema_error
"""Tests the way Columns are Checked""" import copy import pandas as pd import pytest from pandera import ( Bool, Check, Column, DataFrameSchema, Float, Index, Int, SeriesSchema, String, error_formatters, errors, ) def test_vectorized_checks() -> None: """Test that u...
pd.isna( exc.failure_cases.query( "index == 2 & column == 'b'" ).failure_case.iloc[0] )
added
1864cffd2bb3e67f1e3a24e6a132e30fbe19600729a22e03d8a3fe62a30ecf78
assert|test_dataframe_check_schema_error|"""Tests the way Columns are Checked""" import copy import pandas as pd import pytest from pandera import ( Bool, Check, Column, DataFrameSchema, Float, Index, Int, SeriesSchema, String, error_formatters, errors, ) def test_vectorized_checks() -> None: """Test that using element...
null
null
null
unionai-oss/pandera
train
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/core/test_from_to_format_conversions.py
train
unionai-oss/pandera:tests/core/test_from_to_format_conversions.py
184
4
assert
test_to_format
# pylint: disable=missing-class-docstring,too-few-public-methods """Test conversion of data from and to different formats.""" import io import pandas as pd import pytest import pandera as pa class InSchema(pa.SchemaModel): str_col: pa.typing.Series[str] = pa.Field(unique=True, isin=[*"abcd"]) int_col: pa.t...
df.assign(float_col=1.1).equals(out_df)
added
bf01cad702dcf23b51129651c86933d8917692550f87fb3992e88522e3050608
assert|test_to_format|# pylint: disable=missing-class-docstring,too-few-public-methods """Test conversion of data from and to different formats.""" import io import pandas as pd import pytest import pandera as pa class InSchema(pa.SchemaModel): str_col: pa.typing.Series[str] = pa.Field(unique=True, isin=[*"abcd"]) int_...
null
null
null
unionai-oss/pandera
train
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
704
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 decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import pytest import pandera as pa i...
Model.to_schema().description
added
c770f00e4eeb8e45f75d29e4566314f4862b1e3ad01f9c9eb56dd1c1f9876aa2
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 decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import py...
null
null
null
unionai-oss/pandera
train
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,844
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...
not test_schema.columns["a"].unique
added
d639db6fb405fcfcc254c010955514813ddba3d256c414809e3126bf9e47d72e
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
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/fastapi/test_app.py
train
unionai-oss/pandera:tests/fastapi/test_app.py
73
4
assert
test_upload_file_endpoint
# pylint: disable=redefined-outer-name,unused-argument """Unit tests for using pandera types in fastapi endpoints.""" import io import subprocess import time from copy import deepcopy import pandas as pd import pytest import requests from hypothesis import given from tests.fastapi.models import Transactions, Transac...
"file"
added
535c92ca317b9c364c2d1af6643d32268260a548b639bfeecdab41544802a864
assert|test_upload_file_endpoint|# pylint: disable=redefined-outer-name,unused-argument """Unit tests for using pandera types in fastapi endpoints.""" import io import subprocess import time from copy import deepcopy import pandas as pd import pytest import requests from hypothesis import given from tests.fastapi.model...
null
null
null
unionai-oss/pandera
train
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/modin/test_schemas_on_modin.py
train
unionai-oss/pandera:tests/modin/test_schemas_on_modin.py
243
4
assert
test_unique
"""Unit tests for modin data structures.""" import os 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, ...
isinstance(schema(data_unique), mpd.DataFrame)
added
03171f843fdac424b3447ad00af17feee3cc835a8219f8766cb25d237763a12b
assert|test_unique|"""Unit tests for modin data structures.""" import os 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 im...
null
null
null
unionai-oss/pandera
train
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
56
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": ( 'Argument 1 to "pipe" of "NDFrame" has incompatible type ' '"Type[DataFrame[Any]]"; expected ' '"Union[Callable[..., DataFrame[SchemaOut]], ' 'Tuple[Callable[..., DataFrame[SchemaOut]], str]]"' ), "errcode": "arg-type", }
modified
fa0bf96839f8d00d62bf899e91f784f087dfa38fcd7165e312cc71f5252be914
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": ( 'Argument 1 to "pipe" of "NDFrame" has incompatible type ' '"Type[DataFrame[Any]]"; expected ' '"Union[Callable[..., DataFrame[SchemaOut]], ' 'Tuple[Callable[..., DataFrame[SchemaOut]], str]]"' ), "errcode": "arg-type", }
55
4
unionai-oss/pandera
train
156
99035ba8f08a592b1708d931659333bdb977ea7a
train
tests/strategies/test_strategies.py
train
unionai-oss/pandera:tests/strategies/test_strategies.py
299
4
assert
test_isin_notin_strategies
# 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...
values
added
429232352b51b6deef77e85bd3b550387593a0a6a776c9dfe62c42fbabd20f48
assert|test_isin_notin_strategies|# 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 imp...
null
null
null
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
697
4
assert
test_config
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import pytest import pandera as pa i...
Child.to_schema()
modified
20a018882d5ef4efd70bdca99bb5f3fb433d18a752dc962b06034c0d674a5f17
assert|test_config|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import pytest import...
Child.to_schema()
695
4
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
706
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 decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import pytest import pandera as pa i...
Model.to_schema().description
modified
5c963635b56e0482d53bb6fb2dad3c9a8479d1e1c82e92dc000ceb7caffd1a57
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 decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import py...
Model.to_schema().description
704
4
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
913
4
assert
test_field_name_access_inherit
"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd import pytest import pandera as pa i...
"_i3"
modified
9e3658dd4093d364f1aae17db8aa3b352c90fd14f7eeea189416c46cd3398add
assert|test_field_name_access_inherit|"""Tests schema creation and validation from type annotations.""" # pylint:disable=missing-class-docstring,missing-function-docstring,too-few-public-methods import re from decimal import Decimal # pylint:disable=C0415 from typing import Any, Iterable, Optional import pandas as pd i...
"_i3"
911
4
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,487
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
added
bf2d0e787dab7682e792a31400967b9a31a312de22bd74f175dcef098047a63b
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...
null
null
null
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
train
tests/core/test_schemas.py
test
unionai-oss/pandera:tests/core/test_schemas.py
1,892
4
assert
test_unique_and_set_duplicates_setters
"""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...
not test_schema.unique
added
47e96f83d5b8c327af8720618ebd070d269f81b45d5e0fbf719a878f24a91160
assert|test_unique_and_set_duplicates_setters|"""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 impo...
null
null
null
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
train
tests/mypy/test_static_type_checking.py
val
unionai-oss/pandera:tests/mypy/test_static_type_checking.py
182
8
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]["errcode"]
added
1f8837c8b5260bda8eb8b3e8490d0292910f4149192f040b8866868832467838
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...
null
null
null
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
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"]
added
ffc5870d9c10088c3cc1a2bda9345b5aaa263c8f710607250eabd8a2f089b727
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...
null
null
null
unionai-oss/pandera
train
157
86e6eea0ac2c3f527c41c2002c11a4ba61b648c2
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"]
added
956e28eb272e73ac4c1abeecb5679529c7006142873e2c18f6d58ef7a2bbd117
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...
null
null
null
unionai-oss/pandera
train
158
5a484321e4dc60ab28fc400765a8ea00bf035ded
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
127
13
pytest.raises
test_optional_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, Iterable, Optional import pandas as pd import pyte...
pa.errors.SchemaInitError, match="Index 'idx' cannot be Optional.")
added
a5e236e05c125ae064d759f8e27f6428f6a550342c63f02b4485174102a044fd
pytest.raises|test_optional_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, Iterable, Optional...
null
null
null
unionai-oss/pandera
train
158
5a484321e4dc60ab28fc400765a8ea00bf035ded
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
253
4
assert
test_multiindex_check_name
"""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, Iterable, Optional import pandas as pd import pyte...
isinstance(CheckNameSchema.validate(df), pd.DataFrame)
added
d287ac1f71cf48b316e7b290c59738c26a102cd72d87189c79d4b6582c4c1d8d
assert|test_multiindex_check_name|"""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, Iterable, Optional...
null
null
null
unionai-oss/pandera
train
158
5a484321e4dc60ab28fc400765a8ea00bf035ded
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
567
9
pytest.raises
test_inherit_field_checks
"""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, Iterable, Optional import pandas as pd import pyte...
pa.errors.SchemaErrors, match=err_msg)
added
b64e7b6afa3266a40720bb89362017f345d34f329e8165d601eb0fd6f0584bbe
pytest.raises|test_inherit_field_checks|"""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, Iterable, Op...
null
null
null
unionai-oss/pandera
train
158
5a484321e4dc60ab28fc400765a8ea00bf035ded
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
761
13
pytest.raises
test_check_types
"""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, Iterable, Optional import pandas as pd import pyte...
pa.errors.SchemaError)
added
eb38388123b398e741e0b97bdb776213a111123733936c684afdcab56eff4e5c
pytest.raises|test_check_types|"""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, Iterable, Optional im...
null
null
null
unionai-oss/pandera
train
159
2cef93bc89f12e9d6e86e618d61ad609f0412a56
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
949
4
assert
test_column_access_regex
"""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, Iterable, Optional import pandas as pd import pyte...
"column_([0-9])+"
modified
32ee204a73c38c25ba1854d69b3790c9dd94e748b93b5853fadff541f99bdfd2
assert|test_column_access_regex|"""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, Iterable, Optional i...
"column_([0-9])+"
947
4
unionai-oss/pandera
train
159
2cef93bc89f12e9d6e86e618d61ad609f0412a56
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
964
4
assert
test_schema_name_override
"""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, Iterable, Optional import pandas as pd import pyte...
"Foo"
modified
d1e84c5bb8e4528c33c8eb41c06163b11bd79679d542d159ac1868202c8f7bf6
assert|test_schema_name_override|"""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, Iterable, Optional ...
"Foo"
962
4
unionai-oss/pandera
train
159
2cef93bc89f12e9d6e86e618d61ad609f0412a56
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
968
4
assert
test_schema_name_override
"""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, Iterable, Optional import pandas as pd import pyte...
"foo"
modified
ad0265053632481e579fddc99d9b66346658463c4605aca96d7333278cad960d
assert|test_schema_name_override|"""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, Iterable, Optional ...
"foo"
966
4
unionai-oss/pandera
train
159
2cef93bc89f12e9d6e86e618d61ad609f0412a56
train
tests/core/test_model.py
train
unionai-oss/pandera:tests/core/test_model.py
1,000
9
pytest.raises
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, Iterable, Optional import pandas as pd import pyte...
pa.errors.SchemaError, match="^expected series 'price' to have type float64, got int64$")
added
c47c4594a5f6e50a52dd26d1a5237d2a944c0fdd08436a4305c40aebc35ad900
pytest.raises|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, Iterable,...
null
null
null
unionai-oss/pandera
train
160
4efed31217b832b7b609bc6065e09144757ab94b
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
238
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
4804740608b9c6822f6f4a510982c1dd6cdf84dae540346462fd495db5eaf95d
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
160
4efed31217b832b7b609bc6065e09144757ab94b
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
250
12
assert
test_unpickling
"""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....
None
modified
916fbc6170a66c3c23ef5ad570c78f186f298d2d56a2bdd2aa496eab2d2fe520
assert|test_unpickling|"""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 ...
None
250
12
unionai-oss/pandera
train
160
4efed31217b832b7b609bc6065e09144757ab94b
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
260
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_native, SchemaErrors)
modified
da3f74a502c1e7894a6f245a0df64466d63458ff9bf246cd2d7425b544d99fbc
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_native, SchemaErrors)
260
8
unionai-oss/pandera
train
160
4efed31217b832b7b609bc6065e09144757ab94b
train
tests/core/test_errors.py
train
unionai-oss/pandera:tests/core/test_errors.py
284
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)
modified
39501ada31226e649df076a41d84950de9162d30e9d306abc28b73ac73870ed7
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 ...
str(exc)
284
8
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/core/test_pydantic_dtype.py
train
unionai-oss/pandera:tests/core/test_pydantic_dtype.py
70
8
assert_*
test_pydantic_model
"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int class PydanticSchema(pa.Sch...
expected_failure_cases)
added
a0bf51062611fe9616e669332cb04a9408d348864137d58be48a1f2206490f5b
assert_*|test_pydantic_model|"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int class PydanticSchema(...
null
null
null
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/core/test_pydantic_dtype.py
train
unionai-oss/pandera:tests/core/test_pydantic_dtype.py
77
9
pytest.raises
test_pydantic_model_init_errors
"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int class PydanticSchema(pa.Sch...
pa.errors.SchemaInitError)
added
5344b516633cea86bbe16d9c3c492a9e5e4e7ea85eaca56a7e043da1bc586f5f
pytest.raises|test_pydantic_model_init_errors|"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int clas...
null
null
null
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/core/test_pydantic_dtype.py
train
unionai-oss/pandera:tests/core/test_pydantic_dtype.py
80
9
pytest.raises
test_pydantic_model_init_errors
"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int class PydanticSchema(pa.Sch...
pa.errors.SchemaInitError)
added
2c7412ab0a982d9a0f9c669b3f75c97c955a03a34329c475d2a3edf0040c0740
pytest.raises|test_pydantic_model_init_errors|"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int clas...
null
null
null
unionai-oss/pandera
train
161
3ea4f2c4a3a4443c13dd9741d35bb7c8cbb930ac
train
tests/core/test_pydantic_dtype.py
train
unionai-oss/pandera:tests/core/test_pydantic_dtype.py
86
9
pytest.raises
test_pydantic_model_init_errors
"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int class PydanticSchema(pa.Sch...
pa.errors.SchemaInitError)
added
12cd27301a1f530aedd81b360e4712bc3fa96904404607c18ae06efdec8bdeb0
pytest.raises|test_pydantic_model_init_errors|"""Unit tests for pydantic datatype.""" import pandas as pd import pytest from pydantic import BaseModel import pandera as pa from pandera.engines.pandas_engine import PydanticModel class Record(BaseModel): """Pydantic record model.""" name: str xcoord: int ycoord: int clas...
null
null
null