fix django tests in travis by adding redis service

This commit is contained in:
wh1te909 2020-06-15 17:20:11 +00:00
parent 97a95541a3
commit 990474216f
3 changed files with 2 additions and 5 deletions

View File

@ -15,6 +15,7 @@ matrix:
python: "3.7"
services:
- postgresql
- redis
before_script:
- psql -c 'CREATE DATABASE travisci;' -U postgres
@ -36,6 +37,7 @@ matrix:
python: "3.8"
services:
- postgresql
- redis
before_script:
- psql -c 'CREATE DATABASE travisci;' -U postgres

View File

@ -17,10 +17,6 @@ app.result_backend = "redis://" + settings.REDIS_HOST + ":6379"
app.accept_content = ["application/json"]
app.result_serializer = "json"
app.task_serializer = "json"
if "TRAVIS" in os.environ:
app.task_always_eager = True
app.conf.task_track_started = True
app.autodiscover_tasks()

View File

@ -15,7 +15,6 @@ 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):