Skip to content

Commit 43958da

Browse files
committed
Fix cowswap place_order test
1 parent 42251dd commit 43958da

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

gnosis/eth/tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def just_test_if_polygon_node() -> str:
6262
"id": 1,
6363
},
6464
).ok:
65-
pytest.skip("Cannot connect to poylgon node", allow_module_level=True)
65+
pytest.skip("Cannot connect to polygon node", allow_module_level=True)
6666
except IOError:
6767
pytest.skip(
6868
"Problem connecting to the polygon node", allow_module_level=True

gnosis/protocol/tests/test_gnosis_protocol_api.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,7 @@ def test_place_order(self):
151151
)
152152

153153
if type(order_id) is dict:
154-
if order_id["errorType"] == "NoLiquidity":
155-
pytest.xfail("NoLiquidity Error")
156-
elif order_id["errorType"] == "InsufficientBalance":
157-
pytest.xfail("InsufficientBalance")
158-
159-
self.assertEqual(order_id[:2], "0x")
160-
self.assertEqual(len(order_id), 114)
154+
pytest.xfail(order_id["errorType"])
155+
else:
156+
self.assertEqual(order_id[:2], "0x")
157+
self.assertEqual(len(order_id), 114)

0 commit comments

Comments
 (0)