Removing pydantic from LCM charm
[osm/devops.git] / installers / charm / lcm / tests / test_pod_spec.py
index 4c6b0cb..c74fb10 100644 (file)
@@ -20,7 +20,6 @@
 # osm-charmers@lists.launchpad.net
 ##
 
-from pydantic import ValidationError
 from typing import NoReturn
 import unittest
 
@@ -396,7 +395,7 @@ class TestPodSpec(unittest.TestCase):
         app_name = "lcm"
         port = 9999
 
-        with self.assertRaises(ValidationError):
+        with self.assertRaises(ValueError):
             pod_spec.make_pod_spec(image_info, config, relation_state, app_name, port)
 
     def test_make_pod_spec_without_relation_state(self) -> NoReturn:
@@ -419,7 +418,7 @@ class TestPodSpec(unittest.TestCase):
         app_name = "lcm"
         port = 9999
 
-        with self.assertRaises(ValidationError):
+        with self.assertRaises(ValueError):
             pod_spec.make_pod_spec(image_info, config, relation_state, app_name, port)