From b3cb8d0e73e96afb7232da94c48602cccfd937e6 Mon Sep 17 00:00:00 2001 From: Andres Torres Date: Wed, 15 Jan 2025 14:51:49 -0600 Subject: [PATCH] Tests quick fix: tests/ops/models/test_connectionconfig.py (#5672) --- tests/ops/models/test_connectionconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ops/models/test_connectionconfig.py b/tests/ops/models/test_connectionconfig.py index b24a43dbf3..347abf3836 100644 --- a/tests/ops/models/test_connectionconfig.py +++ b/tests/ops/models/test_connectionconfig.py @@ -146,7 +146,7 @@ def test_connection_type_human_readable(self): connection.human_readable # Makes sure all ConnectionTypes have been added to human_readable mapping def test_connection_type_human_readable_invalid(self): - with pytest.raises(NotImplementedError): + with pytest.raises(ValueError): ConnectionType("nonmapped_type").human_readable def test_connection_type_system_type(self): @@ -154,7 +154,7 @@ def test_connection_type_system_type(self): connection.system_type # Makes sure all ConnectionTypes have been added to system_type mapping def test_connection_type_system_type_invalid(self): - with pytest.raises(NotImplementedError): + with pytest.raises(ValueError): ConnectionType("nonmapped_type").system_type def test_system_key(self, db, connection_config, system):