Skip to content

Commit

Permalink
refactor: rename evaluate_control_activity_iterations to evaluate_con…
Browse files Browse the repository at this point in the history
…trol_activities
  • Loading branch information
arjendev committed Nov 24, 2023
1 parent d7d2bdb commit e5058e6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, **kwargs: Any) -> None: # noqa: ANN401
"""
super(Activity, self).__init__(**kwargs)

def evaluate_control_activity_iterations(
def evaluate_control_activities(
self,
state: PipelineRunState,
evaluate_activities: Callable[[List[Activity], PipelineRunState], Iterator[Activity]],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def evaluate(self, state: PipelineRunState) -> "ForEachActivity":

return self

def evaluate_control_activity_iterations(
def evaluate_control_activities(
self,
state: PipelineRunState,
evaluate_activities: Callable[[List[Activity], PipelineRunState], Iterator[Activity]],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def evaluate(self, state: PipelineRunState) -> "IfConditionActivity":

return self

def evaluate_control_activity_iterations(
def evaluate_control_activities(
self,
state: PipelineRunState,
evaluate_activities: Callable[[List[Activity], PipelineRunState], Iterator[Activity]],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def evaluate(self, state: PipelineRunState) -> "SwitchActivity":

return self

def evaluate_control_activity_iterations(
def evaluate_control_activities(
self,
state: PipelineRunState,
evaluate_activities: Callable[[List[Activity], PipelineRunState], Iterator[Activity]],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def evaluate(self, state: PipelineRunState) -> "UntilActivity":

return self

def evaluate_control_activity_iterations(
def evaluate_control_activities(
self,
state: PipelineRunState,
evaluate_activities: Callable[[List[Activity], PipelineRunState], Iterator[Activity]],
Expand Down
2 changes: 1 addition & 1 deletion src/azure_data_factory_testing_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def evaluate_activities(self, activities: List[Activity], state: PipelineRunStat

if isinstance(activity, ControlActivity):
control_activity: ControlActivity = activity
for child_activity in control_activity.evaluate_control_activity_iterations(
for child_activity in control_activity.evaluate_control_activities(
state,
self.evaluate_activities,
):
Expand Down

0 comments on commit e5058e6

Please sign in to comment.