diff --git a/plugin-server/tests/cdp/hog-executor.test.ts b/plugin-server/tests/cdp/hog-executor.test.ts index 0d58d565253b3..bc2100e98cba4 100644 --- a/plugin-server/tests/cdp/hog-executor.test.ts +++ b/plugin-server/tests/cdp/hog-executor.test.ts @@ -519,7 +519,7 @@ describe('Hog Executor', () => { ]) }) - it('ignores events that have already used their posthogCapture', () => { + it('ignores events that have already used their postHogCapture', () => { const fn = createHogFunction({ ...HOG_EXAMPLES.posthog_capture, ...HOG_INPUTS_EXAMPLES.simple_fetch, diff --git a/posthog/cdp/templates/helpers.py b/posthog/cdp/templates/helpers.py index 093c6ecbdb4ca..726207d93ca6b 100644 --- a/posthog/cdp/templates/helpers.py +++ b/posthog/cdp/templates/helpers.py @@ -23,7 +23,7 @@ def setUp(self): side_effect=lambda *args: print("[DEBUG HogFunctionFetch]", *args) or self.mock_fetch_response(*args) # noqa: T201 ) self.mock_posthog_capture = MagicMock( - side_effect=lambda *args: print("[DEBUG HogFunctionPosthogCapture]", *args) # noqa: T201 + side_effect=lambda *args: print("[DEBUG HogFunctionPostHogCapture]", *args) # noqa: T201 ) mock_fetch_response = lambda *args: {"status": 200, "body": {}} diff --git a/posthog/hogql/metadata.py b/posthog/hogql/metadata.py index 1568d0bf766f7..34730b7b1a19b 100644 --- a/posthog/hogql/metadata.py +++ b/posthog/hogql/metadata.py @@ -42,10 +42,10 @@ def get_hogql_metadata( ) if query.language == HogLanguage.HOG: program = parse_program(query.query) - create_bytecode(program, supported_functions={"fetch", "posthogCapture"}, args=[], context=context) + create_bytecode(program, supported_functions={"fetch", "postHogCapture"}, args=[], context=context) elif query.language == HogLanguage.HOG_TEMPLATE: string = parse_string_template(query.query) - create_bytecode(string, supported_functions={"fetch", "posthogCapture"}, args=[], context=context) + create_bytecode(string, supported_functions={"fetch", "postHogCapture"}, args=[], context=context) elif query.language == HogLanguage.HOG_QL_EXPR: node = parse_expr(query.query) if query.sourceQuery is not None: