Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DMcP89 committed Oct 18, 2024
1 parent 4ddba64 commit 34ccc74
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ def mock_player_details():

@pytest.fixture
def mock_player_stats():
return [{"mock": "stats"}]
return [
{
"mock": "stats",
"player_id": "39077",
"name": "Josh Allen",
"position_type": "o",
}
]


@pytest.fixture
Expand Down
27 changes: 26 additions & 1 deletion tests/test-player-details.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,32 @@
"coverage_type": "season",
"season": "2020"
},
"stats": [{
"stats": [
{
"stat": {
"stat_id": "0",
"value": "396"
}
},
{
"stat": {
"stat_id": "1",
"value": "572"
}
},
{
"stat": {
"stat_id": "2",
"value": "4544"
}
},
{
"stat": {
"stat_id": "3",
"value": "37"
}
},
{
"stat": {
"stat_id": "4",
"value": "2871"
Expand Down

0 comments on commit 34ccc74

Please sign in to comment.