Spaces:
Sleeping
Sleeping
rename method test_output() to test_response()
Browse files- tests/model_tests.py +1 -1
tests/model_tests.py
CHANGED
@@ -9,7 +9,7 @@ class TestClassifier(unittest.TestCase):
|
|
9 |
'Oman', 'Tunisia', 'Lebanon', 'Morocco', 'Djibouti','United_Arab_Emirates','Kuwait',
|
10 |
'Libya', 'Bahrain', 'Qatar', 'Yemen', 'Palestine', 'Jordan', 'Somalia', 'Sudan']
|
11 |
|
12 |
-
def
|
13 |
"""Test if the response of the /classify API endpoint is correct"""
|
14 |
request_data = {"text": "حاجة حلوة اكيد"}
|
15 |
response = requests.post(self.API_URL, json=request_data)
|
|
|
9 |
'Oman', 'Tunisia', 'Lebanon', 'Morocco', 'Djibouti','United_Arab_Emirates','Kuwait',
|
10 |
'Libya', 'Bahrain', 'Qatar', 'Yemen', 'Palestine', 'Jordan', 'Somalia', 'Sudan']
|
11 |
|
12 |
+
def test_response(self):
|
13 |
"""Test if the response of the /classify API endpoint is correct"""
|
14 |
request_data = {"text": "حاجة حلوة اكيد"}
|
15 |
response = requests.post(self.API_URL, json=request_data)
|