diff --git a/app/data/heroes.csv b/app/data/heroes.csv index c9c3e6de..4805afb0 100644 --- a/app/data/heroes.csv +++ b/app/data/heroes.csv @@ -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 diff --git a/tests/views/test_hero_routes.py b/tests/views/test_hero_routes.py index f51ef152..a21f3c65 100644 --- a/tests/views/test_hero_routes.py +++ b/tests/views/test_hero_routes.py @@ -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(