-
Notifications
You must be signed in to change notification settings - Fork 81
30698 Fix flag import in DBC utils #3792
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
Conversation
Signed-off-by: Lucas <lucasoneil@gmail.com>
Signed-off-by: Lucas <lucasoneil@gmail.com>
fca7519 to
1704b90
Compare
|
|
||
| test: ## Unit testing | ||
| . venv/bin/activate && pytest | ||
| . .venv/bin/activate && pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated but this was changed to .venv in the run command a while back (commit) but not the test one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes import issues in the digital credentials utils module by moving the flags import inside the function to avoid circular dependencies and updating test mocks accordingly.
- Moved flags import from module level to function level in
digital_credentials_utils.py - Updated test mocks to reference the correct import path
- Fixed virtual environment path in Makefile
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| digital_credentials_utils.py | Moved flags import inside function to avoid circular dependency |
| test_digital_credentials_helpers_and_utils.py | Updated test mocks to match new import path |
| Makefile | Updated virtual environment path from venv to .venv |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Issue #: /bcgov/entity#30698
Description of changes:
Change flag import to get this working after recent flag changes. Locally when using LD SDK key I can now get the correct flag values. Could only get flags loading in this file that also imports current_app if I do the import in the function as done in some other example spots now...
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).