data-factory-testing-framework 1.3.2__tar.gz → 1.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {data_factory_testing_framework-1.3.2/src/data_factory_testing_framework.egg-info → data_factory_testing_framework-1.4.1}/PKG-INFO +1 -1
- data_factory_testing_framework-1.4.1/VERSION +1 -0
- data_factory_testing_framework-1.4.1/src/data_factory_testing_framework/_pythonnet/__init__.py +22 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_pythonnet/data_factory_testing_framework_expressions_evaluator.py +1 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/_activity_result.py +3 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1/src/data_factory_testing_framework.egg-info}/PKG-INFO +1 -1
- data_factory_testing_framework-1.3.2/VERSION +0 -1
- data_factory_testing_framework-1.3.2/src/data_factory_testing_framework/_pythonnet/__init__.py +0 -20
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/DataFactoryTestingFramework.sln +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/LICENSE +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/MANIFEST.in +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/README.md +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/pyproject.toml +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/setup.cfg +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/setup.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_deserializers/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_deserializers/_deserializer_base.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_deserializers/_deserializer_data_factory.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_deserializers/_deserializer_fabric.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_deserializers/shared/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_deserializers/shared/_activity_deserializer.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_deserializers/shared/_data_factory_element_replacer.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_enum_meta.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/data_factory_to_expression_transformer.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/exceptions.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/expression_transformer.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_expression_runtime/expression_runtime.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_expression_runtime/functions_repository.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_pythonnet/Evaluator.csproj +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_repositories/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_repositories/_factories/base_repository_factory.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_repositories/_factories/data_factory_repository_factory.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_repositories/_factories/fabric_repository_factory.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_repositories/data_factory_repository.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/_test_framework.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_activity_not_found_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_activity_output_field_not_found_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_control_activity_expression_evaluated_not_to_expected_type.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_data_factory_element_evaluation_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_function_call_invalid_arguments_count_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_parameter_not_found_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_pipeline_activities_circular_dependency_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_pipeline_not_found_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_state_iteration_item_not_set_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_unsupported_function_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_user_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_variable_being_evaluated_does_not_exist_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/exceptions/_variable_not_found_error.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/_data_factory_element.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/_data_factory_object_type.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/_pipeline.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_activity_dependency.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_append_variable_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_control_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_execute_pipeline_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_fail_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_filter_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_for_each_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_if_condition_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_set_variable_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_switch_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/models/activities/_until_activity.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/py.typed +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/__init__.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/_dependency_condition.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/_pipeline_run_state.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/_pipeline_run_variable.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/_run_parameter.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/_run_parameter_type.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework/state/_run_state.py +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework.egg-info/SOURCES.txt +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework.egg-info/dependency_links.txt +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework.egg-info/requires.txt +0 -0
- {data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/src/data_factory_testing_framework.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: data-factory-testing-framework
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: A stand-alone test framework that allows to write unit tests for Data Factory pipelines on Microsoft Fabric, Azure Data Factory and Azure Synapse Analytics.
|
|
5
5
|
Author-email: Data Factory Testing Framework <dftf@microsoft.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.4.1
|
data_factory_testing_framework-1.4.1/src/data_factory_testing_framework/_pythonnet/__init__.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
import pythonnet
|
|
5
|
+
|
|
6
|
+
pythonnet.load("coreclr")
|
|
7
|
+
import clr # noqa: E402
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def load_dotnet_assemblies() -> None:
|
|
11
|
+
# Load the .NET assemblies
|
|
12
|
+
for dll in (Path(__file__).parent / "bin").glob("**/*.dll"):
|
|
13
|
+
# Pass the path without the ".dll" suffix so pythonnet probes and loads "<path>.dll" directly.
|
|
14
|
+
# With the suffix, pythonnet 3.0.x on .NET 9+ parses the path as an assembly name and fails to load it.
|
|
15
|
+
assembly_path = os.path.splitext(os.path.abspath(dll))[0]
|
|
16
|
+
try:
|
|
17
|
+
clr.AddReference(assembly_path)
|
|
18
|
+
except Exception:
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
load_dotnet_assemblies()
|
|
@@ -9,6 +9,7 @@ class ActivityResult:
|
|
|
9
9
|
activity_name: str,
|
|
10
10
|
status: Optional[DependencyCondition] = None,
|
|
11
11
|
output: Optional[Any] = None, # noqa: ANN401
|
|
12
|
+
error: Optional[Any] = None, # noqa: ANN401
|
|
12
13
|
) -> None:
|
|
13
14
|
"""Represents the result of an activity.
|
|
14
15
|
|
|
@@ -16,10 +17,12 @@ class ActivityResult:
|
|
|
16
17
|
activity_name: Name of the activity.
|
|
17
18
|
status: Status of the activity.
|
|
18
19
|
output: Output of the activity. (e.g. { "count": 1 } for activity('activityName').output.count)
|
|
20
|
+
error: Error of the activity. (e.g. { "code": "ErrorCode", "message": "ErrorMessage" } for activity('activityName').Error)
|
|
19
21
|
"""
|
|
20
22
|
self.activity_name = activity_name
|
|
21
23
|
self.status = status if status is not None else DependencyCondition.SUCCEEDED
|
|
22
24
|
self.output = output
|
|
25
|
+
self.error = error
|
|
23
26
|
|
|
24
27
|
def __getitem__(self, item: str) -> Any: # noqa: ANN401
|
|
25
28
|
return getattr(self, item)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: data-factory-testing-framework
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: A stand-alone test framework that allows to write unit tests for Data Factory pipelines on Microsoft Fabric, Azure Data Factory and Azure Synapse Analytics.
|
|
5
5
|
Author-email: Data Factory Testing Framework <dftf@microsoft.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.3.2
|
data_factory_testing_framework-1.3.2/src/data_factory_testing_framework/_pythonnet/__init__.py
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
|
|
4
|
-
import pythonnet
|
|
5
|
-
|
|
6
|
-
pythonnet.load("coreclr")
|
|
7
|
-
import clr # noqa: E402
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def load_dotnet_assemblies() -> None:
|
|
11
|
-
# Load the .NET assemblies
|
|
12
|
-
for dll in (Path(__file__).parent / "bin").glob("**/*.dll"):
|
|
13
|
-
dll = os.path.abspath(dll)
|
|
14
|
-
try:
|
|
15
|
-
clr.AddReference(dll)
|
|
16
|
-
except Exception:
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
load_dotnet_assemblies()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{data_factory_testing_framework-1.3.2 → data_factory_testing_framework-1.4.1}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|