mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-27 02:54:23 +01:00
Co-authored-by: Michael Neale <michael.neale@gmail.com> Co-authored-by: Lifei Zhou <lifei@squareup.com> Co-authored-by: Alice Hau <ahau@squareup.com>
17 lines
514 B
Python
17 lines
514 B
Python
from goose.profile import ToolkitSpec, ObserverSpec
|
|
|
|
|
|
def test_profile_info(profile_factory):
|
|
profile = profile_factory(
|
|
{
|
|
"provider": "provider",
|
|
"processor": "processor",
|
|
"toolkits": [ToolkitSpec("developer"), ToolkitSpec("github")],
|
|
"observers": [ObserverSpec(name="test.plugin")],
|
|
}
|
|
)
|
|
assert (
|
|
profile.profile_info()
|
|
== "provider:provider, processor:processor toolkits: developer, github observers: test.plugin"
|
|
)
|