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

Add test and fix for #326 #327

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Add test and fix for #326 #327

wants to merge 1 commit into from

Conversation

gtfierro
Copy link
Collaborator

@gtfierro gtfierro commented Jun 26, 2024

Removes required params from the list of optional arguments. This occurs when the template inlining is performed and an optional template refers to a required parameter.

ACtually fixes #326 . The "237" was a mis-copy...

@gtfierro gtfierro changed the title Add test and fix for #237 Add test and fix for #326 Jul 2, 2024
@gtfierro gtfierro requested a review from TShapinsky July 2, 2024 16:55
templ = templ.inline_dependencies()
bindings, _ = templ.fill(BLDG, include_optional=False)
assert "supply-water-temp" in bindings.keys()
assert "name" in bindings.keys()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a negative test as well? fill with optional included and assert these keys are not present?

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.

Required Point Not Generated When Referenced by an Optional Point
2 participants