From 45711db04ff2d6d5ac0ebaf59be33fb2e7650ec5 Mon Sep 17 00:00:00 2001 From: Diego Crespo Quinta Date: Thu, 22 Oct 2020 19:46:24 +0200 Subject: #915 Fix expected returned codes in GET /session and GET /software tests Fix incorrect status code. --- tests/units/test_0006_post_session.py | 2 +- tests/units/test_0012_post_software.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/units/test_0006_post_session.py b/tests/units/test_0006_post_session.py index 6116a27..c7ddb38 100644 --- a/tests/units/test_0006_post_session.py +++ b/tests/units/test_0006_post_session.py @@ -28,7 +28,7 @@ class TestPostSessionMethods(unittest.TestCase): def test_get(self): returned = requests.get(self.url, headers=self.headers, json={ 'client': ['192.168.56.11'] }) - self.assertEqual(returned.status_code, 405) + self.assertEqual(returned.status_code, 200) if __name__ == '__main__': unittest.main() diff --git a/tests/units/test_0012_post_software.py b/tests/units/test_0012_post_software.py index 47e63c3..f298e35 100644 --- a/tests/units/test_0012_post_software.py +++ b/tests/units/test_0012_post_software.py @@ -31,7 +31,7 @@ class TestPostSoftwareMethods(unittest.TestCase): returned = requests.get(self.url, headers=self.headers, json={ 'client' : ['192.168.56.11'], 'disk' : 1, 'partition' : 1 }) - self.assertEqual(returned.status_code, 405) + self.assertEqual(returned.status_code, 200) if __name__ == '__main__': unittest.main() -- cgit v1.2.3-18-g5258