-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
133 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from data_factory_testing_framework.functions.function_argument import FunctionArgument | ||
from data_factory_testing_framework.functions.function_call import FunctionCall | ||
from data_factory_testing_framework.functions.function_parser import parse_expression | ||
from data_factory_testing_framework.functions.functions_repository import FunctionsRepository | ||
|
||
__all__ = [ | ||
"FunctionArgument", | ||
"FunctionCall", | ||
"parse_expression", | ||
"FunctionsRepository", | ||
] |
2 changes: 1 addition & 1 deletion
2
...ctions/expressions/expression_activity.py → ...amework/functions/_expression_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...nctions/expressions/expression_dataset.py → ...ramework/functions/_expression_dataset.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../expressions/expression_iteration_item.py → ...k/functions/_expression_iteration_item.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ctions/expressions/expression_variable.py → ...amework/functions/_expression_variable.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
18 changes: 9 additions & 9 deletions
18
src/python/data_factory_testing_framework/functions/function_argument.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from data_factory_testing_framework.models.repositories.data_factory_repository_factory import DataFactoryRepositoryFactory | ||
from data_factory_testing_framework.models.repositories.data_factory_repository import DataFactoryRepository | ||
|
||
__all__ = [ | ||
"DataFactoryRepositoryFactory", | ||
"DataFactoryRepository", | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
3 changes: 0 additions & 3 deletions
3
src/python/data_factory_testing_framework/models/activities/base/__init__.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
6 changes: 3 additions & 3 deletions
6
...ctory_testing_framework/models/activities/control_activities/execute_pipeline_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../data_factory_testing_framework/models/activities/control_activities/for_each_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hon/data_factory_testing_framework/models/activities/control_activities/until_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/python/data_factory_testing_framework/models/activities/set_variable_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/python/data_factory_testing_framework/models/data_factory_element.py
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/python/data_factory_testing_framework/models/expressions/_data_factory_element.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Union, Generic, TypeVar | ||
|
||
from data_factory_testing_framework.functions import parse_expression | ||
from data_factory_testing_framework.generated.models import DataFactoryElement | ||
from data_factory_testing_framework.state import RunState | ||
|
||
T = TypeVar("T") | ||
|
||
|
||
class DataFactoryElement(Generic[T]): | ||
def __init__(self) -> None: | ||
"""DataFactoryElement.""" | ||
self.value: Union[str, int, bool] = None | ||
|
||
def evaluate(self: DataFactoryElement, state: RunState) -> Union[str, int, bool]: | ||
self.value = parse_expression(self.expression).evaluate(state) | ||
return self.value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
13 changes: 13 additions & 0 deletions
13
src/python/data_factory_testing_framework/state/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from .pipeline_run_state import PipelineRunState | ||
from .pipeline_run_variable import PipelineRunVariable | ||
from .run_parameter import RunParameter | ||
from .run_parameter_type import RunParameterType | ||
from .run_state import RunState | ||
|
||
__all__ = [ | ||
"PipelineRunState", | ||
"RunParameter", | ||
"RunParameterType", | ||
"RunState", | ||
"PipelineRunVariable", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ng_framework/models/base/run_parameter.py → ..._testing_framework/state/run_parameter.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...sting_framework/models/state/run_state.py → ...tory_testing_framework/state/run_state.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.