From 55edb404b754c3dd817289e35d67505a476e7dbf Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Wed, 18 Sep 2019 12:59:16 +0200 Subject: #915: Fix incorrect method and code in invalid GET requests Some tests should perform GET requests however they incorrectly use POST. Return codes for these tests have also been fixed. --- tests/units/test_0004_post_shell_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/units/test_0004_post_shell_run.py') diff --git a/tests/units/test_0004_post_shell_run.py b/tests/units/test_0004_post_shell_run.py index 7be1fa9..2a330be 100644 --- a/tests/units/test_0004_post_shell_run.py +++ b/tests/units/test_0004_post_shell_run.py @@ -13,8 +13,8 @@ class TestPostShellRunMethods(unittest.TestCase): self.assertEqual(returned.status_code, 200) def test_get(self): - returned = requests.post(self.url, headers=self.headers) - self.assertEqual(returned.status_code, 404) + returned = requests.get(self.url, headers=self.headers) + self.assertEqual(returned.status_code, 405) if __name__ == '__main__': unittest.main() -- cgit v1.2.3-18-g5258