From 4ef77341148f2af285586b1dc503074ddf0c5bea Mon Sep 17 00:00:00 2001 From: Josh Krawczyk Date: Sat, 30 May 2020 11:51:55 -0400 Subject: [PATCH] Fix Django Tests --- api/tacticalrmm/checks/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/tacticalrmm/checks/tests.py b/api/tacticalrmm/checks/tests.py index 54292972..7f1c10e5 100644 --- a/api/tacticalrmm/checks/tests.py +++ b/api/tacticalrmm/checks/tests.py @@ -4,7 +4,7 @@ from .serializers import CheckSerializer # , PolicyChecksSerializer class TestCheckViews(BaseTestCase): def test_add_disk_check(self): - url = "/checks/addstandardcheck/" + url = "/checks/" disk_data = { "pk": self.agent.pk, "check_type": "diskspace", @@ -22,7 +22,7 @@ class TestCheckViews(BaseTestCase): self.check_not_authenticated("post", url) def test_add_policy_disk_check(self): - url = "/checks/addstandardcheck/" + url = "/checks/" policy_disk_data = { "policy": self.policy.pk, "check_type": "diskspace", @@ -32,7 +32,7 @@ class TestCheckViews(BaseTestCase): } resp = self.client.post(url, policy_disk_data, format="json") self.assertEqual(resp.status_code, 200) - data = PolicyChecksSerializer(self.policy).data + data = CheckSerializer(self.policy).data self.assertEqual(data["diskchecks"][0]["threshold"], 87) self.assertEqual(data["diskchecks"][0]["failures"], 1) self.assertEqual(data["diskchecks"][0]["disk"], "M:")