Update test to mark exclusive plugin as disabled

ExclusivePluginQueryIgnoreDisabledTest now sets the ">" plugin's Disabled property to true in PluginMetadata. This verifies that QueryBuilder correctly ignores disabled exclusive plugins.
This commit is contained in:
Jack251970 2026-02-26 17:37:15 +08:00
parent a90c787b4a
commit e103d649ed

View file

@ -36,7 +36,7 @@ namespace Flow.Launcher.Test
{
var nonGlobalPlugins = new Dictionary<string, List<PluginPair>>
{
{ ">", new List<PluginPair>(){ new() { Metadata = new PluginMetadata { ActionKeywords = [">"] } } } }
{ ">", new List<PluginPair>(){ new() { Metadata = new PluginMetadata { ActionKeywords = [">"], Disabled = true } } } }
};
Query q = QueryBuilder.Build("> ping google.com -n 20 -6", "> ping google.com -n 20 -6", nonGlobalPlugins);