Skip to content

Commit

Permalink
removing redundant exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
elkezza committed May 28, 2024
1 parent f8c4dd2 commit a5d26bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def test_client_error_handling(requests_mock):
client.list_templates()
except ExoscaleAPIServerException as e:
assert "Server error 503" in str(e)
except Exception as e:
assert "503 Server Error" in str(e)
assert '{"message":"Endpoint template temporarily unavailable"}' in str(e)


if __name__ == "__main__":
Expand Down

0 comments on commit a5d26bd

Please sign in to comment.