diff --git a/tests/test_trade_pipeline.py b/tests/test_trade_pipeline.py index f91152539..2bad3de07 100644 --- a/tests/test_trade_pipeline.py +++ b/tests/test_trade_pipeline.py @@ -1,12 +1,12 @@ from datetime import datetime from decimal import Decimal - +from unittest.mock import patch from decouple import config from django.contrib.auth.models import User from django.urls import reverse from api.models import Currency, Order -from api.tasks import cache_market +from api.tasks import cache_market, send_notification from django.contrib.admin.sites import AdminSite from control.models import BalanceLog from control.tasks import compute_node_balance, do_accounting @@ -953,6 +953,7 @@ def test_escrow_locked_expires(self): self.assert_order_logs(data["id"]) + @patch("api.tasks.send_notification.delay", send_notification) def test_chat(self): """ Tests the chatting REST functionality