Skip to content

[modular] add tests for checking optional and required inputs for modular - #15133

Closed
sayakpaul wants to merge 2 commits into
mainfrom
input-tests-modular
Closed

sayakpaul wants to merge 2 commits into
mainfrom
input-tests-modular

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

Adds two new tests related to #14521.

With these tests, on main and on required-input-no-default both, we run into (same) failures:

Marking the PR draft for now until we decide how to proceed.

optional_parameters = {param.name for param in blocks.inputs if param.name is not None and not param.required}
assert self.optional_params <= optional_parameters, self.optional_params - optional_parameters

def test_pipeline_required_inputs(self):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ohh i think it's related to this #15009
thanks for writing them
i'm working on a PR for that, i can merge the test into my branch once PR is up

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, please feel free to merge this branch directly into yours. Closing the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S PR with diff < 50 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants