Skip to content

Commit c06fbc8

Browse files
committed
Tests messages
1 parent 88467b2 commit c06fbc8

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tests/test_trade_pipeline.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def test_make_order(self):
246246
self.assertEqual(
247247
notifications_data.count,
248248
0,
249-
"There is only one notification",
249+
"User has no notification",
250250
)
251251

252252
def test_make_order_on_blocked_country(self):
@@ -364,7 +364,7 @@ def test_publish_order(self):
364364
self.assertEqual(
365365
notifications_data.count,
366366
1,
367-
"There is only one notification",
367+
"User has a new order notification",
368368
)
369369
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
370370

@@ -397,7 +397,7 @@ def test_pause_unpause_order(self):
397397
self.assertEqual(
398398
notifications_data.count,
399399
2,
400-
"There is only one notification",
400+
"User has a new order start notification",
401401
)
402402
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
403403

@@ -454,7 +454,7 @@ def test_make_and_take_order(self):
454454
self.assertEqual(
455455
notifications_data.count,
456456
2,
457-
"There is only one notification",
457+
"User has a new order start notification",
458458
)
459459
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
460460

@@ -486,8 +486,8 @@ def test_make_and_lock_contract(self):
486486
notifications_data = trade.response.json()
487487
self.assertEqual(
488488
notifications_data.count,
489-
2,
490-
"There is only one notification",
489+
3,
490+
"User has a bond locked notification",
491491
)
492492
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
493493

@@ -518,7 +518,7 @@ def test_make_and_lock_contract(self):
518518
self.assertEqual(
519519
notifications_data.count,
520520
2,
521-
"There is only one notification",
521+
"User has a bond locked notification",
522522
)
523523
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
524524

@@ -555,7 +555,7 @@ def test_trade_to_locked_escrow(self):
555555
self.assertEqual(
556556
notifications_data.count,
557557
3,
558-
"There is only one notification",
558+
"User has a scrow locked notification",
559559
)
560560
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
561561

@@ -589,7 +589,7 @@ def test_trade_to_submitted_address(self):
589589
self.assertEqual(
590590
notifications_data.count,
591591
4,
592-
"There is only one notification",
592+
"User has a new order ready notification",
593593
)
594594
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
595595

@@ -625,8 +625,8 @@ def test_trade_to_submitted_invoice(self):
625625
notifications_data = trade.response.json()
626626
self.assertEqual(
627627
notifications_data.count,
628-
5,
629-
"There is only one notification",
628+
4,
629+
"User has a new order ready notification",
630630
)
631631
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
632632

@@ -661,7 +661,7 @@ def test_trade_to_confirm_fiat_sent_LN(self):
661661
self.assertEqual(
662662
notifications_data.count,
663663
6,
664-
"There is only one notification",
664+
"User has a new fiat sent notification",
665665
)
666666
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
667667

@@ -711,7 +711,7 @@ def test_trade_to_confirm_fiat_received_LN(self):
711711
self.assertEqual(
712712
notifications_data.count,
713713
7,
714-
"There is only one notification",
714+
"User has a new fiat received notification",
715715
)
716716
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
717717

@@ -829,7 +829,7 @@ def test_collaborative_cancel_order_in_chat(self):
829829
self.assertEqual(
830830
notifications_data.count,
831831
6,
832-
"There is only one notification",
832+
"User has a new order cancelled notification",
833833
)
834834
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
835835

@@ -872,7 +872,7 @@ def test_created_order_expires(self):
872872
self.assertEqual(
873873
notifications_data.count,
874874
6,
875-
"There is only one notification",
875+
"User has a new order expired notification",
876876
)
877877
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
878878

@@ -916,7 +916,7 @@ def test_public_order_expires(self):
916916
self.assertEqual(
917917
notifications_data.count,
918918
6,
919-
"There is only one notification",
919+
"User has a new order expired notification",
920920
)
921921
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
922922

@@ -962,7 +962,7 @@ def test_taken_order_expires(self):
962962
self.assertEqual(
963963
notifications_data.count,
964964
6,
965-
"There is only one notification",
965+
"User has a new order expired notification",
966966
)
967967
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
968968

@@ -1061,7 +1061,7 @@ def test_chat(self):
10611061
self.assertEqual(
10621062
notifications_data.count,
10631063
8,
1064-
"There is only one notification",
1064+
"User has a new chat notification",
10651065
)
10661066
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)
10671067

0 commit comments

Comments
 (0)