[test] fix for get_url
This commit is contained in:
parent
5621576b3c
commit
42bbf48b6b
2 changed files with 2 additions and 2 deletions
|
|
@ -161,7 +161,7 @@ class TestUser(unittest.TestCase):
|
|||
|
||||
frappe.db.commit()
|
||||
|
||||
res = requests.post(get_url()+':8000', params={'cmd': 'login', 'usr': 'test@example.com', 'pwd': 'testpassword',
|
||||
res = requests.post(get_url(), params={'cmd': 'login', 'usr': 'test@example.com', 'pwd': 'testpassword',
|
||||
'device': 'desktop'})
|
||||
|
||||
# While site is expired status code returned is 417 Failed Expectation
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ class TestAPI(unittest.TestCase):
|
|||
frappe.db.sql('delete from `tabToDo` where description like "Test API%"')
|
||||
frappe.db.commit()
|
||||
|
||||
server = FrappeClient(get_url()+":8000", "Administrator", "admin", verify=False)
|
||||
server = FrappeClient(get_url(), "Administrator", "admin", verify=False)
|
||||
|
||||
server.insert_many([
|
||||
{"doctype": "ToDo", "description": "Test API 1"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue