summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0011_post_hardware.py
diff options
context:
space:
mode:
authorIsabel Arrans <isabelarrans@gmail.com>2020-10-23 18:55:17 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-10-24 12:53:11 +0200
commitb11608152e9e2a9af32e15a100d3d034222ad3e4 (patch)
tree6148a685b287b0ea752019a73d85a224b1889917 /tests/units/test_0011_post_hardware.py
parentb0d18cd887f654cd4b607655ab3370e00eb656ec (diff)
#915 restore more tests
Diffstat (limited to 'tests/units/test_0011_post_hardware.py')
-rw-r--r--tests/units/test_0011_post_hardware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/test_0011_post_hardware.py b/tests/units/test_0011_post_hardware.py
index 1f3e160..105c029 100644
--- a/tests/units/test_0011_post_hardware.py
+++ b/tests/units/test_0011_post_hardware.py
@@ -21,8 +21,8 @@ class TestPostHardwareMethods(unittest.TestCase):
self.assertEqual(returned.status_code, 400)
def test_get(self):
- returned = requests.get(self.url, headers=self.headers)
- self.assertEqual(returned.status_code, 405)
+ returned = requests.get(self.url, headers=self.headers, json={ "scope": { "id": 6, "type": "computer" }})
+ self.assertEqual(returned.status_code, 200)
if __name__ == '__main__':
unittest.main()