Skip to content

Commit

Permalink
Switch regex strategy to sampling strategy to improve performance (#2998
Browse files Browse the repository at this point in the history
)

* Switch regex strategy to sampling strategy to improve performance

* Increase deadline
  • Loading branch information
jdangerx authored Nov 2, 2023
1 parent e7aedda commit c11b1a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/io_managers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def test_ferc_xbrl_sqlite_io_manager_dedupes(mocker, tmp_path):
example_schema = pandera.DataFrameSchema(
{
"entity_id": pandera.Column(
str, pandera.Check.str_matches(r"[0-9a-zA-Z]+"), nullable=False
str, pandera.Check.isin("C0123456789"), nullable=False
),
"date": pandera.Column("datetime64[ns]", nullable=False),
"utility_type": pandera.Column(
Expand All @@ -365,11 +365,12 @@ def test_ferc_xbrl_sqlite_io_manager_dedupes(mocker, tmp_path):
"publication_time": pandera.Column("datetime64[ns]", nullable=False),
"int_factoid": pandera.Column(int),
"float_factoid": pandera.Column(float),
"str_factoid": pandera.Column("str"),
"str_factoid": pandera.Column(str),
}
)


@hypothesis.settings(print_blob=True, deadline=400)
@hypothesis.given(example_schema.strategy(size=3))
def test_filter_for_freshest_data(df):
# XBRL context is the identifying metadata for reported values
Expand Down

0 comments on commit c11b1a4

Please sign in to comment.