Skip to content

Commit

Permalink
fix: unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeall committed Aug 14, 2024
1 parent 3fff371 commit c2c3298
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/clubs/test_clubs_players.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ def test_get_club_players(
"currentClub": Or(None, And(str, len_greater_than_0)),
"height": And(str, len_greater_than_0, regex_height),
"foot": And(str, len_greater_than_0),
"joinedOn": And(str, len_greater_than_0, regex_date_mmm_dd_yyyy),
"joinedOn": Or("", And(str, len_greater_than_0, regex_date_mmm_dd_yyyy)),
"joined": Or("", And(str, len_greater_than_0)),
"signedFrom": Or("", And(str, len_greater_than_0)),
"contract": Or(None, And(str, len_greater_than_0, regex_market_value)),
"marketValue": And(str, len_greater_than_0, regex_market_value),
"status": Or("", And(str, len_greater_than_0)),
},
Expand Down
2 changes: 1 addition & 1 deletion tests/players/test_players_injuries.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_get_player_injuries(player_id, page_number, len_greater_than_0, regex_i
"season": And(str, len_greater_than_0),
"injury": And(str, len_greater_than_0),
"from": And(str, len_greater_than_0, regex_date_mmm_dd_yyyy),
"until": And(str, len_greater_than_0, regex_date_mmm_dd_yyyy),
Optional("until"): And(str, len_greater_than_0, regex_date_mmm_dd_yyyy),
"days": And(str, len_greater_than_0),
Optional("gamesMissed"): And(str, len_greater_than_0, regex_integer),
Optional("gamesMissedClubs"): list[str],
Expand Down
2 changes: 1 addition & 1 deletion tests/players/test_players_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_get_player_profile_8198(len_greater_than_0):
"url": And(str, len_greater_than_0),
"name": And(str, len_greater_than_0),
"description": And(str, len_greater_than_0),
"fullName": And(str, len_greater_than_0),
"nameInHomeCountry": And(str, len_greater_than_0),
"imageURL": And(str, len_greater_than_0),
"dateOfBirth": And(str, len_greater_than_0),
"placeOfBirth": {
Expand Down

0 comments on commit c2c3298

Please sign in to comment.