fix: removed the diff when default profile changes. Printed the current profile info instead (#92)

This commit is contained in:
Lifei Zhou
2024-09-25 19:07:01 -07:00
committed by GitHub
parent 5c52138f38
commit d56c0d68cd
6 changed files with 76 additions and 127 deletions
+12
View File
@@ -0,0 +1,12 @@
from goose.profile import ToolkitSpec
def test_profile_info(profile_factory):
profile = profile_factory(
{
"provider": "provider",
"processor": "processor",
"toolkits": [ToolkitSpec("developer"), ToolkitSpec("github")],
}
)
assert profile.profile_info() == "provider:provider, processor:processor toolkits: developer, github"