From d5611d03b99cfcf9572ddd125558e31e8766d1aa Mon Sep 17 00:00:00 2001 From: Xx_DrkLeo_xX Date: Wed, 27 Mar 2024 17:39:34 +0100 Subject: [PATCH] Tweak the test --- athlete/test.py | 3 --- medal/test.py | 3 --- sport/test.py | 2 -- 3 files changed, 8 deletions(-) diff --git a/athlete/test.py b/athlete/test.py index f70a792..cc32f9a 100755 --- a/athlete/test.py +++ b/athlete/test.py @@ -4,9 +4,6 @@ import json HOST = "http://localhost:5000" -# Get root -assert 200 == requests.get(HOST + "/").status_code - # Get list of athletes as a json object get_root = requests.get(HOST + "/athlete").text if get_root != "[]\n": diff --git a/medal/test.py b/medal/test.py index 0cd019c..596487b 100755 --- a/medal/test.py +++ b/medal/test.py @@ -4,9 +4,6 @@ import json HOST = "http://localhost:5000" -# Get root -assert 200 == requests.get(HOST + "/").status_code - # Get list of medals as a json object get_root = requests.get(HOST + "/medal").text diff --git a/sport/test.py b/sport/test.py index 3b4007d..d5af0b7 100755 --- a/sport/test.py +++ b/sport/test.py @@ -4,8 +4,6 @@ import json HOST = "http://localhost:5000" -# Get root -assert 200 == requests.get(HOST + "/").status_code # Get list of sports as a json object get_root = requests.get(HOST + "/sport").text