- changed example

- url argument added in get_ports

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
This commit is contained in:
SushantBawiskar
2021-04-28 17:32:06 +05:30
parent c62022066a
commit 25d6d2e526
2 changed files with 4 additions and 5 deletions

View File

@@ -196,8 +196,8 @@ class cv_test(Realm):
break
#Get port listing
def get_ports(self):
response = self.json_get("/ports/")
def get_ports(self, url="/ports/"):
response = self.json_get(url)
return response
def show_text_blob(self, config_name, blob_test_name, brief):
@@ -422,7 +422,6 @@ class cv_test(Realm):
"text": Rawline
}
rsp = self.json_post(req_url, data)
time.sleep(2)
# This is for chamber view buttons