From 55a28493a0a9cfc3f1a0133a60117747bba739e1 Mon Sep 17 00:00:00 2001 From: Mohit yadav Date: Thu, 16 May 2024 21:35:53 +0200 Subject: [PATCH] spelling in error message fixed --- akm_tools/validation/custom_exceptions.py | 2 +- tests/test_custom_exceptions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/akm_tools/validation/custom_exceptions.py b/akm_tools/validation/custom_exceptions.py index 22dfb22..9545c66 100644 --- a/akm_tools/validation/custom_exceptions.py +++ b/akm_tools/validation/custom_exceptions.py @@ -11,7 +11,7 @@ def __init__(self, instances: List[Dict]): class BaseInstanceOverwiteException(Exception): def __init__(self, base_instance, extended_instance): err_msg = ( - f"The extended instace :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n" + f"The extended instance :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n" ) super().__init__(err_msg) self.message = err_msg diff --git a/tests/test_custom_exceptions.py b/tests/test_custom_exceptions.py index 72b9388..81111e0 100644 --- a/tests/test_custom_exceptions.py +++ b/tests/test_custom_exceptions.py @@ -26,7 +26,7 @@ def test_BaseInstanceOverwiteException(): raise BaseInstanceOverwiteException(base_instance, extended_instance) assert ( str(excinfo.value) - == f"The extended instace :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n" + == f"The extended instance :\n{extended_instance}\nis overwriting properties of base instance\n{base_instance}\n" )