mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 23:57:11 -04:00
[PR #244] [MERGED] test: add unit tests for graphiti client disabled mode #263
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/244
Author: @mason5052
Created: 4/8/2026
Status: ✅ Merged
Merged: 4/11/2026
Merged by: @asdek
Base:
main← Head:test/graphiti-client-coverage📝 Commits (1)
166035btest: add unit tests for graphiti client disabled mode📊 Changes
1 file changed (+133 additions, -0 deletions)
View changed files
➕
backend/pkg/graphiti/client_test.go(+133 -0)📄 Description
Summary
backend/pkg/graphiti/client.goNewClient,IsEnabled,GetTimeout,AddMessages, and all search methodsTest Coverage
Covered:
NewClient(..., enabled=false)(*Client).IsEnabled(*Client).GetTimeout(*Client).AddMessages(*Client).TemporalWindowSearch(*Client).EntityRelationshipsSearch(*Client).DiverseResultsSearch(*Client).EpisodeContextSearch(*Client).SuccessfulToolsSearch(*Client).RecentContextSearch(*Client).EntityByLabelSearchBehavior verified:
AddMessagesis a no-opgraphiti is not enabledScope Notes
Test Plan
go test ./pkg/graphiti/... -count=1go test ./pkg/graphiti/... -count=1 -shuffle=ongo vet ./pkg/graphiti/...🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.