Skip to content

Commit

Permalink
feat: Apply S9 health pool (#108)
Browse files Browse the repository at this point in the history
* Apply S9 health pool

* Updated tests to not fail when modifying heroes CSV data

---------

Co-authored-by: TeKrop <tekrop@gmail.com>
  • Loading branch information
Rapougnac and TeKrop authored Apr 11, 2024
1 parent 4f1ffd4 commit 45d5d57
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 41 deletions.
80 changes: 40 additions & 40 deletions app/data/heroes.csv
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
key,name,role,health,armor,shields
ana,Ana,support,200,0,0
ashe,Ashe,damage,200,0,0
baptiste,Baptiste,support,200,0,0
bastion,Bastion,damage,200,100,0
brigitte,Brigitte,support,150,50,0
cassidy,Cassidy,damage,225,0,0
dva,D.Va,tank,350,300,0
doomfist,Doomfist,tank,450,0,0
echo,Echo,damage,200,0,0
genji,Genji,damage,200,0,0
hanzo,Hanzo,damage,200,0,0
illari,Illari,support,200,0,0
junker-queen,Junker Queen,tank,450,0,0
junkrat,Junkrat,damage,200,0,0
kiriko,Kiriko,support,200,0,0
lifeweaver,Lifeweaver,support,175,0,50
lucio,Lúcio,support,200,0,0
mauga,Mauga,tank,300,200,0
mei,Mei,damage,250,0,0
mercy,Mercy,support,200,0,0
moira,Moira,support,200,0,0
orisa,Orisa,tank,275,275,0
pharah,Pharah,damage,200,0,0
ramattra,Ramattra,tank,200,100,0
reaper,Reaper,damage,250,0,0
reinhardt,Reinhardt,tank,350,250,0
roadhog,Roadhog,tank,700,0,0
sigma,Sigma,tank,350,0,200
sojourn,Sojourn,damage,200,0,0
soldier-76,Soldier: 76,damage,200,0,0
sombra,Sombra,damage,200,0,0
symmetra,Symmetra,damage,100,0,100
torbjorn,Torbjörn,damage,200,50,0
tracer,Tracer,damage,150,0,0
venture,Venture,damage,200,0,0
widowmaker,Widowmaker,damage,175,0,0
winston,Winston,tank,350,200,0
wrecking-ball,Wrecking Ball,tank,450,100,150
zarya,Zarya,tank,250,0,225
zenyatta,Zenyatta,support,75,0,150
ana,Ana,support,250,0,0
ashe,Ashe,damage,250,0,0
baptiste,Baptiste,support,250,0,0
bastion,Bastion,damage,250,100,0
brigitte,Brigitte,support,200,50,0
cassidy,Cassidy,damage,275,0,0
dva,D.Va,tank,350,375,0
doomfist,Doomfist,tank,525,0,0
echo,Echo,damage,250,0,0
genji,Genji,damage,250,0,0
hanzo,Hanzo,damage,250,0,0
illari,Illari,support,250,0,0
junker-queen,Junker Queen,tank,525,0,0
junkrat,Junkrat,damage,250,0,0
kiriko,Kiriko,support,250,0,0
lifeweaver,Lifeweaver,support,225,0,50
lucio,Lúcio,support,250,0,0
mauga,Mauga,tank,525,200,0
mei,Mei,damage,300,0,0
mercy,Mercy,support,250,0,0
moira,Moira,support,250,0,0
orisa,Orisa,tank,275,350,0
pharah,Pharah,damage,250,0,0
ramattra,Ramattra,tank,425,100,0
reaper,Reaper,damage,300,0,0
reinhardt,Reinhardt,tank,400,300,0
roadhog,Roadhog,tank,800,0,0
sigma,Sigma,tank,350,0,275
sojourn,Sojourn,damage,250,0,0
soldier-76,Soldier: 76,damage,250,0,0
sombra,Sombra,damage,250,0,0
symmetra,Symmetra,damage,100,0,150
torbjorn,Torbjörn,damage,250,50,0
tracer,Tracer,damage,175,0,0
venture,Venture,damage,250,0,0
widowmaker,Widowmaker,damage,200,0,0
winston,Winston,tank,375,250,0
wrecking-ball,Wrecking Ball,tank,450,175,150
zarya,Zarya,tank,325,0,225
zenyatta,Zenyatta,support,75,0,175
9 changes: 8 additions & 1 deletion tests/views/test_hero_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ def test_get_hero(
):
response = client.get(f"/heroes/{hero_name}")
assert response.status_code == status.HTTP_200_OK
assert response.json() == hero_json_data

response_json = response.json()
del response_json["hitpoints"]

hero_data = hero_json_data.copy()
del hero_data["hitpoints"]

assert response_json == hero_data


@pytest.mark.parametrize(
Expand Down

0 comments on commit 45d5d57

Please sign in to comment.