delete unused tests, need to redo them for new class view

This commit is contained in:
wh1te909 2020-06-01 08:13:11 +00:00
parent aa2890c0d8
commit bcc2915fad
1 changed files with 0 additions and 54 deletions

View File

@ -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)