goose icon indicating copy to clipboard operation
goose copied to clipboard

test: fix Session mocking

Open jamadeo opened this issue 1 year ago • 0 comments

Before, the session wasn't mocked correctly. The tests might still pass if the real Session instantiates correctly, but if (like me) you had a global config that pointed to a not-installed plugin, you'd see that failure in these unit tests.

To reproduce the broken bit, if everything was working for you, just add provider: does-not-exist to your ~/.config/goose/profiles.yaml and run this test on main.

jamadeo avatar Nov 22 '24 16:11 jamadeo