Skip to content

Commit

Permalink
chore: Drop version api
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed May 20, 2024
1 parent c74dcbd commit 86929e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions frappe/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ def throw_permission_error():
frappe.throw(_("Not permitted"), frappe.PermissionError)


@frappe.whitelist(allow_guest=True)
def version():
return frappe.__version__


@frappe.whitelist(allow_guest=True)
def logout():
frappe.local.login_manager.logout()
Expand Down
10 changes: 0 additions & 10 deletions frappe/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,16 +234,6 @@ def setUp(self):
generate_keys("Administrator")
frappe.db.commit()

def test_version(self):
# test 1: test for /api/method/version
response = self.get(f"{self.METHOD_PATH}/version")
json = frappe._dict(response.json)

self.assertEqual(response.status_code, 200)
self.assertIsInstance(json, dict)
self.assertIsInstance(json.message, str)
self.assertEqual(Version(json.message), Version(frappe.__version__))

def test_ping(self):
# test 2: test for /api/method/ping
response = self.get(f"{self.METHOD_PATH}/ping")
Expand Down

0 comments on commit 86929e5

Please sign in to comment.