Skip to content

Commit

Permalink
Bump pydantic (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesmoke05 authored Sep 26, 2023
1 parent 111da53 commit 73d6daf
Show file tree
Hide file tree
Showing 11 changed files with 152 additions and 156 deletions.
224 changes: 112 additions & 112 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gunicorn = "~21.2.0"
orjson = "~3.9.4"
psycopg = {extras = ["c"], version = "~3.1.10"}
pycryptodome = "~3.18"
pydantic = "~2.2.0"
pydantic = "~2.4.0"
pytz = "~2023.3"
requests = "~2.31.0"
shared-memory-dict = "~0.7.2"
Expand Down
10 changes: 5 additions & 5 deletions tests/test_app_routers_bond_lock_events_GET.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,14 +598,14 @@ def test_error_1_2(self, client, db):
},
{
"ctx": {
"expected": "'account_address','lock_address','recipient_address','value' "
"or 'block_timestamp'"
"expected": "'account_address', 'lock_address', "
"'recipient_address', 'value' or "
"'block_timestamp'"
},
"input": "test",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'account_address','lock_address','recipient_address','value' "
"or 'block_timestamp'",
"msg": "Input should be 'account_address', 'lock_address', "
"'recipient_address', 'value' or 'block_timestamp'",
"type": "enum",
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,13 @@ def test_error_3(self, client, db):
"detail": [
{
"ctx": {
"expected": "'block_timestamp','locked_address','target_address' "
"or 'amount'"
"expected": "'block_timestamp', 'locked_address', "
"'target_address' or 'amount'"
},
"input": "block_timestamp12345",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'block_timestamp','locked_address','target_address' or "
"'amount'",
"msg": "Input should be 'block_timestamp', 'locked_address', "
"'target_address' or 'amount'",
"type": "enum",
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,13 @@ def test_error_3(self, client, db):
"detail": [
{
"ctx": {
"expected": "'block_timestamp','locked_address','target_address' "
"or 'amount'"
"expected": "'block_timestamp', 'locked_address', "
"'target_address' or 'amount'"
},
"input": "block_timestamp12345",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'block_timestamp','locked_address','target_address' or "
"'amount'",
"msg": "Input should be 'block_timestamp', 'locked_address', "
"'target_address' or 'amount'",
"type": "enum",
}
],
Expand Down
8 changes: 4 additions & 4 deletions tests/test_app_routers_bond_transfers_{token_Address}_GET.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,13 +719,13 @@ def test_error_3(self, client, db):
"detail": [
{
"ctx": {
"expected": "'block_timestamp','from_address','to_address' "
"or 'amount'"
"expected": "'block_timestamp', 'from_address', "
"'to_address' or 'amount'"
},
"input": "block_timestamp12345",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'block_timestamp','from_address','to_address' or 'amount'",
"msg": "Input should be 'block_timestamp', 'from_address', "
"'to_address' or 'amount'",
"type": "enum",
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1398,14 +1398,14 @@ def test_error_1_2(self, client, db):
},
{
"ctx": {
"expected": "'token_address','lock_address','recipient_address','value' "
"or 'block_timestamp'"
"expected": "'token_address', 'lock_address', "
"'recipient_address', 'value' or "
"'block_timestamp'"
},
"input": "test",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'token_address','lock_address','recipient_address','value' "
"or 'block_timestamp'",
"msg": "Input should be 'token_address', 'lock_address', "
"'recipient_address', 'value' or 'block_timestamp'",
"type": "enum",
},
],
Expand Down
10 changes: 5 additions & 5 deletions tests/test_app_routers_share_lock_events_GET.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,14 +598,14 @@ def test_error_1_2(self, client, db):
},
{
"ctx": {
"expected": "'account_address','lock_address','recipient_address','value' "
"or 'block_timestamp'"
"expected": "'account_address', 'lock_address', "
"'recipient_address', 'value' or "
"'block_timestamp'"
},
"input": "test",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'account_address','lock_address','recipient_address','value' "
"or 'block_timestamp'",
"msg": "Input should be 'account_address', 'lock_address', "
"'recipient_address', 'value' or 'block_timestamp'",
"type": "enum",
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,13 @@ def test_error_3(self, client, db):
"detail": [
{
"ctx": {
"expected": "'block_timestamp','locked_address','target_address' "
"or 'amount'"
"expected": "'block_timestamp', 'locked_address', "
"'target_address' or 'amount'"
},
"input": "block_timestamp12345",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'block_timestamp','locked_address','target_address' or "
"'amount'",
"msg": "Input should be 'block_timestamp', 'locked_address', "
"'target_address' or 'amount'",
"type": "enum",
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,13 @@ def test_error_3(self, client, db):
"detail": [
{
"ctx": {
"expected": "'block_timestamp','locked_address','target_address' "
"or 'amount'"
"expected": "'block_timestamp', 'locked_address', "
"'target_address' or 'amount'"
},
"input": "block_timestamp12345",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'block_timestamp','locked_address','target_address' or "
"'amount'",
"msg": "Input should be 'block_timestamp', 'locked_address', "
"'target_address' or 'amount'",
"type": "enum",
}
],
Expand Down
8 changes: 4 additions & 4 deletions tests/test_app_routers_share_transfers_{token_Address}_GET.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,13 +719,13 @@ def test_error_3(self, client, db):
"detail": [
{
"ctx": {
"expected": "'block_timestamp','from_address','to_address' "
"or 'amount'"
"expected": "'block_timestamp', 'from_address', "
"'to_address' or 'amount'"
},
"input": "block_timestamp12345",
"loc": ["query", "sort_item"],
"msg": "Input should be "
"'block_timestamp','from_address','to_address' or 'amount'",
"msg": "Input should be 'block_timestamp', 'from_address', "
"'to_address' or 'amount'",
"type": "enum",
}
],
Expand Down

0 comments on commit 73d6daf

Please sign in to comment.