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

Rework test framework to allow per-scenario configuration #58

Conversation

lorenzo-medici
Copy link
Contributor

Since the configuration of the bot happens through environment variables, testing for different configuration values requires changing these and reloading the library.

The proposed change creates a client fixture with an optional parameter bot_configs, which is a dictionary or environment variable names and the desired value for this iteration.

Once the test ends, the client fixture restores the default test configuration from dumm_env and reloads the library so that following test scenarios are not impacted.

@lorenzo-medici
Copy link
Contributor Author

(In draft because I noticed that it wasn't fully working)

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.

1 participant