diff --git a/ironic_inspector/test/unit/test_node_cache.py b/ironic_inspector/test/unit/test_node_cache.py index ab426256d..f1fdb5e98 100644 --- a/ironic_inspector/test/unit/test_node_cache.py +++ b/ironic_inspector/test/unit/test_node_cache.py @@ -20,7 +20,6 @@ from unittest import mock import automaton from oslo_config import cfg -import oslo_db from oslo_utils import timeutils from oslo_utils import uuidutils @@ -1042,11 +1041,6 @@ class TestNodeInfoState(test_base.NodeStateTest): row = db.model_query(db.Node).get(self.node_info.uuid) self.assertEqual(self.node_info.state, row.state) - def test_set_invalid_state(self): - self.assertRaisesRegex(oslo_db.exception.DBError, - 'constraint failed', - self.node_info._set_state, 'foo') - def test_commit(self): current_time = timeutils.utcnow() self.node_info.started_at = self.node_info.finished_at = current_time