Skip to content

Commit

Permalink
Tests messages
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Jun 21, 2024
1 parent 88467b2 commit c06fbc8
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tests/test_trade_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def test_make_order(self):
self.assertEqual(
notifications_data.count,
0,
"There is only one notification",
"User has no notification",
)

def test_make_order_on_blocked_country(self):
Expand Down Expand Up @@ -364,7 +364,7 @@ def test_publish_order(self):
self.assertEqual(
notifications_data.count,
1,
"There is only one notification",
"User has a new order notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -397,7 +397,7 @@ def test_pause_unpause_order(self):
self.assertEqual(
notifications_data.count,
2,
"There is only one notification",
"User has a new order start notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -454,7 +454,7 @@ def test_make_and_take_order(self):
self.assertEqual(
notifications_data.count,
2,
"There is only one notification",
"User has a new order start notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -486,8 +486,8 @@ def test_make_and_lock_contract(self):
notifications_data = trade.response.json()
self.assertEqual(
notifications_data.count,
2,
"There is only one notification",
3,
"User has a bond locked notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -518,7 +518,7 @@ def test_make_and_lock_contract(self):
self.assertEqual(
notifications_data.count,
2,
"There is only one notification",
"User has a bond locked notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -555,7 +555,7 @@ def test_trade_to_locked_escrow(self):
self.assertEqual(
notifications_data.count,
3,
"There is only one notification",
"User has a scrow locked notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -589,7 +589,7 @@ def test_trade_to_submitted_address(self):
self.assertEqual(
notifications_data.count,
4,
"There is only one notification",
"User has a new order ready notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -625,8 +625,8 @@ def test_trade_to_submitted_invoice(self):
notifications_data = trade.response.json()
self.assertEqual(
notifications_data.count,
5,
"There is only one notification",
4,
"User has a new order ready notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -661,7 +661,7 @@ def test_trade_to_confirm_fiat_sent_LN(self):
self.assertEqual(
notifications_data.count,
6,
"There is only one notification",
"User has a new fiat sent notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -711,7 +711,7 @@ def test_trade_to_confirm_fiat_received_LN(self):
self.assertEqual(
notifications_data.count,
7,
"There is only one notification",
"User has a new fiat received notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -829,7 +829,7 @@ def test_collaborative_cancel_order_in_chat(self):
self.assertEqual(
notifications_data.count,
6,
"There is only one notification",
"User has a new order cancelled notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -872,7 +872,7 @@ def test_created_order_expires(self):
self.assertEqual(
notifications_data.count,
6,
"There is only one notification",
"User has a new order expired notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -916,7 +916,7 @@ def test_public_order_expires(self):
self.assertEqual(
notifications_data.count,
6,
"There is only one notification",
"User has a new order expired notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -962,7 +962,7 @@ def test_taken_order_expires(self):
self.assertEqual(
notifications_data.count,
6,
"There is only one notification",
"User has a new order expired notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down Expand Up @@ -1061,7 +1061,7 @@ def test_chat(self):
self.assertEqual(
notifications_data.count,
8,
"There is only one notification",
"User has a new chat notification",
)
self.assertEqual(notifications_data[0]["order_id"], trade.order_id)

Expand Down

0 comments on commit c06fbc8

Please sign in to comment.