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

Issues with app config and context in tests #193

Open
bchopson opened this issue Dec 13, 2022 · 0 comments
Open

Issues with app config and context in tests #193

bchopson opened this issue Dec 13, 2022 · 0 comments

Comments

@bchopson
Copy link
Member

The keg cookiecutter defines a couple of helper methods for patching the app config when testing:
https://github.com/level12/keg-app-cookiecutter/blob/06a8c9467ba29920bd5263b2e3b6d9098f64bff3/%7B%7Bcookiecutter.src_dirname%7D%7D/%7B%7Bcookiecutter.project_pymod%7D%7D/libs/testing.py#L26

Not sure if this is flask or keg related, but after upgrading both packages, the app_config_cli context manager doesn't actually change the config in CLI tests, while the app_config context manager does. I can get app_config_cli to work when I set app_cls on the CLI test base class, but then accessing the DB session fails.

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

No branches or pull requests

1 participant