From 2ec3896f27fb6636164f5f0e76160ddd2ed21a63 Mon Sep 17 00:00:00 2001 From: Josh Krawczyk Date: Sun, 14 Jun 2020 23:05:42 -0400 Subject: [PATCH] django test fix attempt --- api/tacticalrmm/tacticalrmm/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/tacticalrmm/tacticalrmm/test.py b/api/tacticalrmm/tacticalrmm/test.py index 3896d3a1..4f20cbb2 100644 --- a/api/tacticalrmm/tacticalrmm/test.py +++ b/api/tacticalrmm/tacticalrmm/test.py @@ -1,6 +1,8 @@ from django.test import TestCase from django.utils import timezone as djangotime +from unittest.mock import patch + from rest_framework.test import APIClient from rest_framework.test import force_authenticate @@ -12,7 +14,7 @@ from automation.models import Policy from core.models import CoreSettings from checks.models import Check - +@patch('automation.tasks.generate_agent_checks_from_policies_task.delay') class BaseTestCase(TestCase): def setUp(self):