From bcc2915fadec9f16dd873a0fd355a9662d8e11b8 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Mon, 1 Jun 2020 08:13:11 +0000 Subject: [PATCH] delete unused tests, need to redo them for new class view --- api/tacticalrmm/clients/tests.py | 54 -------------------------------- 1 file changed, 54 deletions(-) diff --git a/api/tacticalrmm/clients/tests.py b/api/tacticalrmm/clients/tests.py index a59da8f3..c4849547 100644 --- a/api/tacticalrmm/clients/tests.py +++ b/api/tacticalrmm/clients/tests.py @@ -5,44 +5,6 @@ from .models import Client, Site class TestClientViews(BaseTestCase): - def test_initial_setup(self): - url = "/clients/initialsetup/" - - payload = { - "client": "Amazon", - "site": "NY Office", - "timezone": "America/Los_Angeles", - } - r = self.client.post(url, payload, format="json") - self.assertEqual(r.status_code, 200) - - payload = { - "client": "Amaz|on", - "site": "NY Off|ice |*&@#$", - "timezone": "ASDjnb23k4@!#!@#(*!^@Y$", - } - r = self.client.post(url, payload, format="json") - self.assertEqual(r.status_code, 400) - - self.check_not_authenticated("post", url) - - def test_add_client(self): - url = "/clients/addclient/" - - payload = {"client": "Amazon", "site": "NY Office"} - r = self.client.post(url, payload, format="json") - self.assertEqual(r.status_code, 200) - - payload = {"client": "Amaz|on", "site": "NY Off|ice |*&@#$"} - r = self.client.post(url, payload, format="json") - self.assertEqual(r.status_code, 400) - - payload = {"client": "Google", "site": "NY Office"} - r = self.client.post(url, payload, format="json") - self.assertEqual(r.status_code, 400) - - self.check_not_authenticated("post", url) - def test_add_site(self): url = "/clients/addsite/" @@ -60,14 +22,6 @@ class TestClientViews(BaseTestCase): self.check_not_authenticated("post", url) - def test_installer_list_clients(self): - url = "/clients/installer/listclients/" - - r = self.client.get(url) - self.assertEqual(r.status_code, 200) - - self.check_not_authenticated("get", url) - def test_list_clients(self): url = "/clients/listclients/" @@ -113,11 +67,3 @@ class TestClientViews(BaseTestCase): self.assertEqual(r.status_code, 200) self.check_not_authenticated("get", url) - - def test_installer_list_sites(self): - url = "/clients/installer/Google/sites/" - - r = self.client.get(url) - self.assertEqual(r.status_code, 200) - - self.check_not_authenticated("get", url)