From 39622c53731f0481ba3fce383909a3f809e783aa Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Wed, 26 Jun 2024 16:09:51 +0200 Subject: [PATCH] Fix chat --- tests/test_trade_pipeline.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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