From 42bbf48b6beb2b2aed0c85afab4cc69e9922b48b Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 12 Aug 2016 19:32:03 +0530 Subject: [PATCH] [test] fix for get_url --- frappe/core/doctype/user/test_user.py | 2 +- frappe/tests/test_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/core/doctype/user/test_user.py b/frappe/core/doctype/user/test_user.py index 80e2e16bb2..1bdc419c8c 100644 --- a/frappe/core/doctype/user/test_user.py +++ b/frappe/core/doctype/user/test_user.py @@ -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 diff --git a/frappe/tests/test_api.py b/frappe/tests/test_api.py index 47733c323b..9cdfd8839f 100644 --- a/frappe/tests/test_api.py +++ b/frappe/tests/test_api.py @@ -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"},