diff options
author | Diego Crespo Quinta <diegocrespodcq98@gmail.com> | 2020-10-22 19:46:24 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-10-22 22:37:36 +0200 |
commit | 45711db04ff2d6d5ac0ebaf59be33fb2e7650ec5 (patch) | |
tree | 4a45b06520ad95cd794aba1b783fe9895739861b /tests/units | |
parent | 1d451acff5f6b088a1475e89dd4e8580eef7df47 (diff) |
#915 Fix expected returned codes in GET /session and GET /software tests
Fix incorrect status code.
Diffstat (limited to 'tests/units')
-rw-r--r-- | tests/units/test_0006_post_session.py | 2 | ||||
-rw-r--r-- | tests/units/test_0012_post_software.py | 2 |
2 files changed, 2 insertions, 2 deletions
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() |