mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 01:26:16 +00:00
raise Exception instead of str (#3322)
This commit is contained in:
@@ -196,7 +196,7 @@ class PetApiTests(unittest.TestCase):
|
||||
|
||||
try:
|
||||
self.pet_api.get_pet_by_id(pet_id=self.pet.id)
|
||||
raise "expected an error"
|
||||
raise Exception("expected an error")
|
||||
except ApiException as e:
|
||||
self.assertEqual(404, e.status)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user