@@ -46,7 +46,7 @@ def test_send_runner_metadata_to_postgresql(self, mock_connect, mock_postgres_ut
4646 mock_postgres_utils_instance = MagicMock ()
4747 mock_postgres_utils_instance .full_uri = "postgresql://user:password@localhost:5432/testdb"
4848 mock_postgres_utils_instance .db_schema = "public"
49- mock_postgres_utils_instance .table_prefix = "Test_ "
49+ mock_postgres_utils_instance .metadata_table_name = "test_runnermetadata "
5050 mock_postgres_utils_class .return_value = mock_postgres_utils_instance
5151
5252 # Mock PostgreSQL connection and cursor
@@ -77,11 +77,11 @@ def test_send_runner_metadata_to_postgresql(self, mock_connect, mock_postgres_ut
7777 # Verify the SQL statements (partially, since the exact SQL is complex)
7878 create_table_call = mock_cursor .execute .call_args_list [0 ]
7979 assert "CREATE TABLE IF NOT EXISTS" in create_table_call [0 ][0 ]
80- assert "public.Test_RunnerMetadata " in create_table_call [0 ][0 ]
80+ assert "public.test_runnermetadata " in create_table_call [0 ][0 ]
8181
8282 upsert_call = mock_cursor .execute .call_args_list [1 ]
8383 assert "INSERT INTO" in upsert_call [0 ][0 ]
84- assert "public.Test_RunnerMetadata " in upsert_call [0 ][0 ]
84+ assert "public.test_runnermetadata " in upsert_call [0 ][0 ]
8585 assert upsert_call [0 ][1 ] == (
8686 mock_runner ["id" ],
8787 mock_runner ["name" ],
@@ -125,7 +125,7 @@ def test_remove_runner_metadata_to_postgresql(self, mock_connect, mock_postgres_
125125 mock_postgres_utils_instance = MagicMock ()
126126 mock_postgres_utils_instance .full_uri = "postgresql://user:password@localhost:5432/testdb"
127127 mock_postgres_utils_instance .db_schema = "public"
128- mock_postgres_utils_instance .table_prefix = "Test_ "
128+ mock_postgres_utils_instance .metadata_table_name = "test_runnermetadata "
129129 mock_postgres_utils_class .return_value = mock_postgres_utils_instance
130130
131131 # Mock PostgreSQL connection and cursor
@@ -156,7 +156,7 @@ def test_remove_runner_metadata_to_postgresql(self, mock_connect, mock_postgres_
156156 # Verify the SQL statements (partially, since the exact SQL is complex)
157157 delete_call = mock_cursor .execute .call_args_list [0 ]
158158 assert "DELETE FROM" in delete_call [0 ][0 ]
159- assert "public.Test_RunnerMetadata " in delete_call [0 ][0 ]
159+ assert "public.test_runnermetadata " in delete_call [0 ][0 ]
160160
161161 # Check that commits were called
162162 assert mock_conn .commit .call_count == 1
0 commit comments