Skip to content

Commit

Permalink
Bump speedate to v0.14.1 and prep for v0.20.1 (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle authored Jul 3, 2024
1 parent b7fa254 commit 0e6b377
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 42 deletions.
51 changes: 15 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pydantic-core"
version = "2.20.0"
version = "2.20.1"
edition = "2021"
license = "MIT"
homepage = "https://github.com/pydantic/pydantic-core"
Expand Down Expand Up @@ -31,12 +31,12 @@ rust-version = "1.75"
# but needs a bit of work to make sure it's not used in the codebase
pyo3 = { version = "0.22.0", features = ["generate-import-lib", "num-bigint", "py-clone"] }
regex = "1.10.4"
strum = { version = "0.25.0", features = ["derive"] }
strum_macros = "0.26.1"
strum = { version = "0.26.3", features = ["derive"] }
strum_macros = "0.26.4"
serde_json = {version = "1.0.116", features = ["arbitrary_precision", "preserve_order"]}
enum_dispatch = "0.3.13"
serde = { version = "1.0.203", features = ["derive"] }
speedate = "0.14.0"
speedate = "0.14.4"
smallvec = "1.13.2"
ahash = "0.8.10"
url = "2.5.0"
Expand Down
10 changes: 8 additions & 2 deletions tests/validators/test_timedelta.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,16 @@ def test_timedelta_kwargs_strict():


def test_invalid_constraint():
with pytest.raises(SchemaError, match='timedelta.gt\n Input should be a valid timedelta, invalid digit in'):
with pytest.raises(
SchemaError,
match='Invalid Schema:\ntimedelta.gt\n Input should be a valid timedelta, invalid character in hour',
):
validate_core_schema({'type': 'timedelta', 'gt': 'foobar'})

with pytest.raises(SchemaError, match='timedelta.le\n Input should be a valid timedelta, invalid digit in'):
with pytest.raises(
SchemaError,
match='Invalid Schema:\ntimedelta.le\n Input should be a valid timedelta, invalid character in hour',
):
validate_core_schema({'type': 'timedelta', 'le': 'foobar'})


Expand Down

0 comments on commit 0e6b377

Please sign in to comment.