diff --git a/instrumentation/opentelemetry-instrumentation-psycopg/tests/test_psycopg_integration.py b/instrumentation/opentelemetry-instrumentation-psycopg/tests/test_psycopg_integration.py index 4ddaad9174..24d062dc67 100644 --- a/instrumentation/opentelemetry-instrumentation-psycopg/tests/test_psycopg_integration.py +++ b/instrumentation/opentelemetry-instrumentation-psycopg/tests/test_psycopg_integration.py @@ -132,10 +132,10 @@ class PostgresqlIntegrationTestMixin: def setUp(self): super().setUp() self.cursor_mock = mock.patch( - "opentelemetry.instrumentation.psycopg.pg_cursor", MockCursor + "opentelemetry.instrumentation.psycopg.Cursor", MockCursor ) self.cursor_async_mock = mock.patch( - "opentelemetry.instrumentation.psycopg.pg_async_cursor", + "opentelemetry.instrumentation.psycopg.AsyncCursor", MockAsyncCursor, ) self.connection_mock = mock.patch("psycopg.connect", MockConnection)