Removing pydantic from POL charm
[osm/devops.git] / installers / charm / pol / tests / test_pod_spec.py
index 5ca5a93..eb5f5cf 100644 (file)
@@ -20,7 +20,6 @@
 # osm-charmers@lists.launchpad.net
 ##
 
-from pydantic import ValidationError
 from typing import NoReturn
 import unittest
 
@@ -196,7 +195,7 @@ class TestPodSpec(unittest.TestCase):
         app_name = "pol"
         port = 80
 
-        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:
@@ -209,7 +208,7 @@ class TestPodSpec(unittest.TestCase):
         app_name = "pol"
         port = 80
 
-        with self.assertRaises(ValidationError):
+        with self.assertRaises(ValueError):
             pod_spec.make_pod_spec(image_info, config, relation_state, app_name, port)