From 12617b6d8d297e517187bca9bfedc3c34da0dcaf Mon Sep 17 00:00:00 2001 From: kartik-mem0 Date: Fri, 25 Sep 2026 11:20:52 +0530 Subject: [PATCH] test(plugins): assert the generated DATA_DIR_NAME in the build tests --- integrations/agent-plugin-core/tests/test_build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/integrations/agent-plugin-core/tests/test_build.py b/integrations/agent-plugin-core/tests/test_build.py index 23295cc38..bbd595df5 100644 --- a/integrations/agent-plugin-core/tests/test_build.py +++ b/integrations/agent-plugin-core/tests/test_build.py @@ -92,6 +92,7 @@ def test_the_portable_bundle_declares_no_host_application(tmp_path: Path) -> Non assert identity["PLATFORM_APPLICATION"] == "" # The PostHog-side label is still useful for grouping and stays populated. assert identity["HARNESS_ID"] == "coding-agent" + assert identity["DATA_DIR_NAME"] == "coding-agent-plugin" assert identity["PLATFORM_SOURCE"] == "MEM0_PLUGIN" @@ -100,6 +101,7 @@ def test_a_native_bundle_names_the_host_it_was_built_for(host: str, tmp_path: Pa identity = _harness_identity(build(host, "native", tmp_path / host)) assert identity["PLATFORM_APPLICATION"] == host + assert identity["DATA_DIR_NAME"] == f"{host}-plugin" @pytest.mark.parametrize("host", ["claude-code", "cursor", "codex", "kimi", "antigravity"])