@@ -49,7 +49,7 @@ def test_initialization(self) -> None:
4949 def test_load_config_valid_yaml (self ) -> None :
5050 """Test loading valid YAML configuration."""
5151 config_data = {
52- "sources" : [{"type" : "postgres " , "config" : {"host" : "localhost" }}],
52+ "sources" : [{"type" : "pgstac " , "config" : {"host" : "localhost" }}],
5353 "outputs" : [{"type" : "mqtt" , "config" : {"broker_host" : "localhost" }}],
5454 }
5555
@@ -124,7 +124,7 @@ def test_create_plugins_success(
124124 mock_create_output .return_value = mock_output
125125
126126 config = {
127- "sources" : [{"type" : "postgres " , "config" : {"host" : "localhost" }}],
127+ "sources" : [{"type" : "pgstac " , "config" : {"host" : "localhost" }}],
128128 "outputs" : [{"type" : "mqtt" , "config" : {"broker_host" : "localhost" }}],
129129 }
130130
@@ -135,7 +135,7 @@ def test_create_plugins_success(
135135 assert self .app .sources [0 ] == mock_source
136136 assert self .app .outputs [0 ] == mock_output
137137
138- mock_create_source .assert_called_once_with ("postgres " , {"host" : "localhost" })
138+ mock_create_source .assert_called_once_with ("pgstac " , {"host" : "localhost" })
139139 mock_create_output .assert_called_once_with ("mqtt" , {"broker_host" : "localhost" })
140140
141141 @patch ("eoapi_notifier.core.main.create_source" )
@@ -173,7 +173,7 @@ def test_create_plugins_source_creation_error(
173173 """Test handling of source creation errors."""
174174 mock_create_source .side_effect = Exception ("Creation failed" )
175175
176- config = {"sources" : [{"type" : "postgres " , "config" : {"host" : "localhost" }}]}
176+ config = {"sources" : [{"type" : "pgstac " , "config" : {"host" : "localhost" }}]}
177177
178178 self .app .create_plugins (config )
179179
0 commit comments