Fix GET /hardware test url

master
Diego Crespo Quinta 2021-03-22 21:23:07 +01:00 committed by OpenGnSys Support Team
parent ab32ed87c4
commit 1c2a0cad8b
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@ import unittest
class TestGetHardwareMethods(unittest.TestCase):
def setUp(self):
self.url = 'http://localhost:8888/session'
self.url = 'http://localhost:8888/hardware'
self.headers = {'Authorization' : '07b3bfe728954619b58f0107ad73acc1'}
self.json = { 'client' : [ '192.168.2.1' ] }
self.json = { 'client' : ['192.168.56.11'] }
def test_get(self):
returned = requests.get(self.url, headers=self.headers, json=self.json)