Skip to content

Commit

Permalink
updated max_round to 25 from 30
Browse files Browse the repository at this point in the history
  • Loading branch information
borolepratik committed Jan 23, 2024
1 parent 2992ead commit 29a2a85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
MAX_SUPPORTED_YEAR = datetime.today().year

MIN_SUPPORTED_ROUND = 1
MAX_SUPPORTED_ROUND = 30
MAX_SUPPORTED_ROUND = 25
24 changes: 12 additions & 12 deletions app/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3338,9 +3338,9 @@ def test_get_standings_bad_round_only_upper_limit():
{
"type": "less_than_equal",
"loc": ["query", "round"],
"msg": "Input should be less than or equal to 30",
"input": "31",
"ctx": {"le": 30},
"msg": "Input should be less than or equal to 25",
"input": "26",
"ctx": {"le": 25},
"url": "https://errors.pydantic.dev/2.5/v/less_than_equal",
}
]
Expand Down Expand Up @@ -3372,9 +3372,9 @@ def test_get_standings_good_year_bad_round_upper_limit():
{
"type": "less_than_equal",
"loc": ["query", "round"],
"msg": "Input should be less than or equal to 30",
"input": "31",
"ctx": {"le": 30},
"msg": "Input should be less than or equal to 25",
"input": "26",
"ctx": {"le": 25},
"url": "https://errors.pydantic.dev/2.5/v/less_than_equal",
}
]
Expand Down Expand Up @@ -3460,9 +3460,9 @@ def test_get_standings_bad_year_and_round_upper_limit():
{
"type": "less_than_equal",
"loc": ["query", "round"],
"msg": "Input should be less than or equal to 30",
"input": "31",
"ctx": {"le": 30},
"msg": "Input should be less than or equal to 25",
"input": "26",
"ctx": {"le": 25},
"url": "https://errors.pydantic.dev/2.5/v/less_than_equal",
},
]
Expand All @@ -3487,9 +3487,9 @@ def test_get_standings_bad_year_lower_limit_round_upper_limit():
{
"type": "less_than_equal",
"loc": ["query", "round"],
"msg": "Input should be less than or equal to 30",
"input": "31",
"ctx": {"le": 30},
"msg": "Input should be less than or equal to 25",
"input": "26",
"ctx": {"le": 25},
"url": "https://errors.pydantic.dev/2.5/v/less_than_equal",
},
]
Expand Down

0 comments on commit 29a2a85

Please sign in to comment.