Skip to content

Commit

Permalink
fix wrong weighted value
Browse files Browse the repository at this point in the history
  • Loading branch information
razn committed Sep 28, 2024
1 parent e87a6b6 commit 529bbf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_players.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


def test_init_with_mock(monkeypatch):
monkeypatch.setattr(Gameweek, "NO_OF_PREV_GWS", 2)
monkeypatch.setattr(Gameweek, "PREV_N_GWS", [5, 6])
monkeypatch.setattr(Gameweek, "NEXT_N_GWS", [8, 9])
# TODO: this works but only patch certain key value pair in the dict, patch the whole var?
Expand Down Expand Up @@ -92,6 +93,6 @@ async def mock_get_players(self):
"ep_next": 3.2,
"fixtures": {8: ["BUR (A) (1.0)"], 9: ["ARS (H) (4.38)"]},
"fdr_avg": 2.7,
"weighted_value": 1.4,
"weighted_value": 1.1,
}
}

0 comments on commit 529bbf5

Please sign in to comment.