#915: more descriptive function name in test

This test sends a POST with no body, which is illegal, use a function
name that describes this.
master
Roberto Hueso Gómez 2019-09-18 12:51:40 +02:00 committed by OpenGnSys Support Team
parent 46d791ae44
commit 741524f59b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class TestGetClientsMethods(unittest.TestCase):
returned = requests.get(self.url, headers=self.headers)
self.assertEqual(returned.status_code, 200)
def test_post(self):
def test_post_without_data(self):
returned = requests.post(self.url, headers=self.headers)
self.assertEqual(returned.status_code, 404)