-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix v0 ref resolution #7415
fix v0 ref resolution #7415
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
models = [node for node in all_nodes if node.resource_type == NodeType.Model] | ||
|
||
# test v1 model | ||
parsed_node_patch_v1 = models[0].patch.call_args_list[0][0][0] |
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.
Unfortunately not possible to test on the model nodes directly (e.g. models[0]
) because these are MagicMock objects and parser.parse_file
calls node.patch
under the hood, which mocks the actual patching functionality. @gshank - We'd brought up moving the node.patch
method to the PatchParser itself which would make the parsers more testable too - I'm working on opening a tech debt issue for it.
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.
Yes, another good reason to do it.
# if version is None | ||
# else f"{str(resource_type)}.{package}.{name}.v{version}" |
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.
I know this PR is already merged, but did we mean to leave these commented?
If so, maybe we want to delete them altogether in a follow-up PR?
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.
oh no! I did mean to just rip those out. I'll clean it up in a follow-up PR
(cherry picked from commit 1722079)
resolves #7408
Description
Checklist
changie new
to create a changelog entry