data-factory-testing-framework 1.1.5__tar.gz → 1.2.0__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.
Files changed (79) hide show
  1. {data_factory_testing_framework-1.1.5/src/data_factory_testing_framework.egg-info → data_factory_testing_framework-1.2.0}/PKG-INFO +1 -1
  2. data_factory_testing_framework-1.2.0/VERSION +1 -0
  3. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/expression_transformer.py +5 -5
  4. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0/src/data_factory_testing_framework.egg-info}/PKG-INFO +1 -1
  5. data_factory_testing_framework-1.1.5/VERSION +0 -1
  6. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/DataFactoryTestingFramework.sln +0 -0
  7. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/LICENSE +0 -0
  8. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/MANIFEST.in +0 -0
  9. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/README.md +0 -0
  10. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/pyproject.toml +0 -0
  11. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/setup.cfg +0 -0
  12. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/setup.py +0 -0
  13. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/__init__.py +0 -0
  14. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_deserializers/__init__.py +0 -0
  15. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_deserializers/_deserializer_base.py +0 -0
  16. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_deserializers/_deserializer_data_factory.py +0 -0
  17. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_deserializers/_deserializer_fabric.py +0 -0
  18. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_deserializers/shared/__init__.py +0 -0
  19. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_deserializers/shared/_activity_deserializer.py +0 -0
  20. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_deserializers/shared/_data_factory_element_replacer.py +0 -0
  21. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_enum_meta.py +0 -0
  22. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/__init__.py +0 -0
  23. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/data_factory_to_expression_transformer.py +0 -0
  24. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/exceptions.py +0 -0
  25. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_expression_runtime/expression_runtime.py +0 -0
  26. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_expression_runtime/functions_repository.py +0 -0
  27. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_pythonnet/Evaluator.csproj +0 -0
  28. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_pythonnet/__init__.py +0 -0
  29. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_pythonnet/data_factory_testing_framework_expressions_evaluator.py +0 -0
  30. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_repositories/__init__.py +0 -0
  31. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_repositories/_factories/base_repository_factory.py +0 -0
  32. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_repositories/_factories/data_factory_repository_factory.py +0 -0
  33. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_repositories/_factories/fabric_repository_factory.py +0 -0
  34. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_repositories/data_factory_repository.py +0 -0
  35. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/_test_framework.py +0 -0
  36. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/__init__.py +0 -0
  37. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_activity_not_found_error.py +0 -0
  38. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_activity_output_field_not_found_error.py +0 -0
  39. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_control_activity_expression_evaluated_not_to_expected_type.py +0 -0
  40. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_data_factory_element_evaluation_error.py +0 -0
  41. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_function_call_invalid_arguments_count_error.py +0 -0
  42. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_parameter_not_found_error.py +0 -0
  43. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_pipeline_activities_circular_dependency_error.py +0 -0
  44. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_pipeline_not_found_error.py +0 -0
  45. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_state_iteration_item_not_set_error.py +0 -0
  46. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_unsupported_function_error.py +0 -0
  47. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_user_error.py +0 -0
  48. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_variable_being_evaluated_does_not_exist_error.py +0 -0
  49. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/exceptions/_variable_not_found_error.py +0 -0
  50. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/__init__.py +0 -0
  51. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/_data_factory_element.py +0 -0
  52. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/_data_factory_object_type.py +0 -0
  53. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/_pipeline.py +0 -0
  54. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/__init__.py +0 -0
  55. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_activity.py +0 -0
  56. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_activity_dependency.py +0 -0
  57. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_append_variable_activity.py +0 -0
  58. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_control_activity.py +0 -0
  59. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_execute_pipeline_activity.py +0 -0
  60. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_fail_activity.py +0 -0
  61. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_filter_activity.py +0 -0
  62. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_for_each_activity.py +0 -0
  63. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_if_condition_activity.py +0 -0
  64. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_set_variable_activity.py +0 -0
  65. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_switch_activity.py +0 -0
  66. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/models/activities/_until_activity.py +0 -0
  67. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/py.typed +0 -0
  68. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/__init__.py +0 -0
  69. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/_activity_result.py +0 -0
  70. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/_dependency_condition.py +0 -0
  71. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/_pipeline_run_state.py +0 -0
  72. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/_pipeline_run_variable.py +0 -0
  73. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/_run_parameter.py +0 -0
  74. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/_run_parameter_type.py +0 -0
  75. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework/state/_run_state.py +0 -0
  76. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework.egg-info/SOURCES.txt +0 -0
  77. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework.egg-info/dependency_links.txt +0 -0
  78. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework.egg-info/requires.txt +0 -0
  79. {data_factory_testing_framework-1.1.5 → data_factory_testing_framework-1.2.0}/src/data_factory_testing_framework.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: data-factory-testing-framework
3
- Version: 1.1.5
3
+ Version: 1.2.0
4
4
  Summary: A stand-alone test framework that allows to write unit tests for Data Factory pipelines on Microsoft Fabric and Azure Data Factory.
5
5
  Author-email: Data Factory Testing Framework <dftf@microsoft.com>
6
6
  License: MIT License
@@ -0,0 +1 @@
1
+ 1.2.0
@@ -40,7 +40,7 @@ class ExpressionTransformer:
40
40
 
41
41
  expression_grammar = f"""
42
42
  expression_start: "@" expression_evaluation
43
- expression_evaluation: (expression_logical_bool | expression_branch | expression_call) ((("." EXPRESSION_PARAMETER_NAME) | EXPRESSION_ARRAY_INDEX)+)? EXPRESSION_WS*
43
+ expression_evaluation: (expression_logical_bool | expression_branch | expression_call) ((EXPRESSION_NULL_CONDITIONAL_OPERATOR? (expression_field_reference | EXPRESSION_ARRAY_INDEX))+)? EXPRESSION_WS*
44
44
  ?expression_call: expression_function_call
45
45
  // used to translate to expression_pipeline_reference
46
46
  | expression_datafactory_parameters_reference
@@ -55,9 +55,8 @@ class ExpressionTransformer:
55
55
  expression_datafactory_parameters_reference: EXPRESSION_DATAFACTORY_REFERENCE "()"
56
56
  expression_datafactory_activity_reference: "activity" "(" EXPRESSION_ACTIVITY_NAME ")"
57
57
  expression_item_reference: "item" "()"
58
- expression_pipeline_reference: "pipeline" "()" "." EXPRESSION_PIPELINE_PROPERTY
59
-
60
-
58
+ expression_pipeline_reference: "pipeline" "()" EXPRESSION_NULL_CONDITIONAL_OPERATOR? "." EXPRESSION_PIPELINE_PROPERTY
59
+ expression_field_reference: "." EXPRESSION_PARAMETER_NAME
61
60
 
62
61
  // branch rules
63
62
  expression_logical_bool: EXPRESSION_LOGICAL_BOOL "(" expression_parameter "," expression_parameter ")"
@@ -83,6 +82,7 @@ class ExpressionTransformer:
83
82
  EXPRESSION_STRING: SINGLE_QUOTED_STRING
84
83
  EXPRESSION_SYSTEM_VARIABLE_NAME: /[a-zA-Z0-9_]+/
85
84
  EXPRESSION_VARIABLE_NAME: "'" /[^']*/ "'"
85
+ EXPRESSION_NULL_CONDITIONAL_OPERATOR: "?"
86
86
  EXPRESSION_WS: WS
87
87
  """ # noqa: E501
88
88
 
@@ -106,7 +106,7 @@ class ExpressionTransformer:
106
106
  self.lark_parser = Lark(grammer, start="start", maybe_placeholders=False)
107
107
 
108
108
  def _supported_functions(self) -> str:
109
- functions = [f'"{f}"' for f in FunctionsRepository._functions]
109
+ functions = [f'"{f}"i' for f in FunctionsRepository._functions]
110
110
  return " | ".join(functions)
111
111
 
112
112
  def _parse(self, expression: str) -> Tree[Token]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: data-factory-testing-framework
3
- Version: 1.1.5
3
+ Version: 1.2.0
4
4
  Summary: A stand-alone test framework that allows to write unit tests for Data Factory pipelines on Microsoft Fabric and Azure Data Factory.
5
5
  Author-email: Data Factory Testing Framework <dftf@microsoft.com>
6
6
  License: MIT License
@@ -1 +0,0 @@
1
- 1.1.5