-
Notifications
You must be signed in to change notification settings - Fork 9
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
build_charm should return Path
object
#81
Comments
Could you elaborate more on your use case?
python-libjuju contains a workaround for the non-conformant type signature in pytest-operator to cast the path to a string. However, it will fail to detect that the string is for a local charm (instead of a charm from charmhub) unless the path is resolved to an absolute path. If possible, I'd prefer to avoid using this workaround since I'm worried it might introduce instabilities. I'd prefer to return a value that python-libjuju/juju expects—e.g. However, if your use case requires a path, we should revisit this |
…lib.Path` instead of `str` in `build_charm` Fixes #81
Issue
pytest_operator.Ops_Test.build_charm
return type ispathlib.Path
pytest_operator_cache.Ops_Test.build_charm
return type isstr
Tests relying on a charm with as Path object will fail on CI only.
The text was updated successfully, but these errors were encountered: