Skip to content

Commit

Permalink
fix attribute error exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Erwin Lejeune committed Oct 5, 2022
1 parent e35cabc commit 88a5b0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_serialized_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ def test_order_details():
assert(order_details.exchange_rate == "100")
assert(order_details.exchange_quantity == "1.324")
assert(order_details.timestamp == 1314242424)
assert(order_details.status == "completed")

with pytest.raises(AttributeError):
assert(order_details.random == "random")

with pytest.raises(AttributeError):
assert(order_details.status == "completed")

0 comments on commit 88a5b0b

Please sign in to comment.