mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-05 05:00:21 +00:00
Update unit tests
This commit is contained in:
@ -1121,7 +1121,7 @@ class TradeTest(BaseAPITestCase):
|
|||||||
self.assertResponse(trade.response)
|
self.assertResponse(trade.response)
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
data["bad_request"], "This order has been cancelled by the maker"
|
trade.response.json()["bad_request"], "This order has been cancelled by the maker"
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_cancel_order_different_cancel_status(self):
|
def test_cancel_order_different_cancel_status(self):
|
||||||
@ -1146,7 +1146,7 @@ class TradeTest(BaseAPITestCase):
|
|||||||
self.assertResponse(trade.response)
|
self.assertResponse(trade.response)
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
data["bad_request"],
|
trade.response.json()["bad_request"],
|
||||||
f"Current order status is {Order.Status.PAU}, not {Order.Status.PUB}."
|
f"Current order status is {Order.Status.PAU}, not {Order.Status.PUB}."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user