Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix Session mocking #314

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jamadeo
Copy link

@jamadeo jamadeo commented Nov 22, 2024

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 jamadeo changed the title Fix session mocking fix: Session mocking Nov 22, 2024
@jamadeo jamadeo changed the title fix: Session mocking test: fix Session mocking Nov 22, 2024
Copy link
Collaborator

@baxen baxen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants