Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#616 Interpollation crash tip

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-542-hydra-interpollation-error
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      tests/unit_tests/crash_tips_test.py
@@ -2,6 +2,7 @@ import sys
 import unittest
 import unittest
 import dataclasses
 import dataclasses
 from typing import Type
 from typing import Type
+import omegaconf
 from super_gradients.common.crash_handler.crash_tips import (
 from super_gradients.common.crash_handler.crash_tips import (
     get_relevant_crash_tip_message,
     get_relevant_crash_tip_message,
     CrashTip,
     CrashTip,
@@ -9,6 +10,7 @@ from super_gradients.common.crash_handler.crash_tips import (
     RecipeFactoryFormatTip,
     RecipeFactoryFormatTip,
     DDPNotInitializedTip,
     DDPNotInitializedTip,
     WrongHydraVersionTip,
     WrongHydraVersionTip,
+    InterpolationKeyErrorTip,
 )
 )
 
 
 
 
@@ -46,6 +48,10 @@ class CrashTipTest(unittest.TestCase):
                 exc_value=TypeError("__init__() got an unexpected keyword argument 'version_base'"),
                 exc_value=TypeError("__init__() got an unexpected keyword argument 'version_base'"),
                 expected_crash_tip=WrongHydraVersionTip,
                 expected_crash_tip=WrongHydraVersionTip,
             ),
             ),
+            DocumentedException(
+                exc_value=omegaconf.errors.InterpolationKeyError("omegaconf.errors.InterpolationKeyError: Interpolation key 'x' not found"),
+                expected_crash_tip=InterpolationKeyErrorTip,
+            ),
         ]
         ]
 
 
     def test_found_exceptions(self):
     def test_found_exceptions(self):
Discard