cornflow 2.0.0a12__tar.gz → 2.0.0a13__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 (186) hide show
  1. {cornflow-2.0.0a12/cornflow.egg-info → cornflow-2.0.0a13}/PKG-INFO +2 -2
  2. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/execution.py +1 -0
  3. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/const.py +1 -0
  4. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_executions.py +90 -37
  5. {cornflow-2.0.0a12 → cornflow-2.0.0a13/cornflow.egg-info}/PKG-INFO +2 -2
  6. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow.egg-info/requires.txt +1 -1
  7. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/requirements.txt +1 -1
  8. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/setup.py +1 -1
  9. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/MANIFEST.in +0 -0
  10. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/README.rst +0 -0
  11. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/airflow_config/__init__.py +0 -0
  12. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/airflow_config/airflow_local_settings.py +0 -0
  13. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/airflow_config/plugins/XCom/__init__.py +0 -0
  14. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/airflow_config/plugins/XCom/gce_xcom_backend.py +0 -0
  15. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/airflow_config/plugins/__init__.py +0 -0
  16. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/airflow_config/webserver_ldap.py +0 -0
  17. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/__init__.py +0 -0
  18. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/app.py +0 -0
  19. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/__init__.py +0 -0
  20. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/actions.py +0 -0
  21. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/arguments.py +0 -0
  22. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/config.py +0 -0
  23. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/migrations.py +0 -0
  24. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/permissions.py +0 -0
  25. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/roles.py +0 -0
  26. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/schemas.py +0 -0
  27. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/service.py +0 -0
  28. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/tools/__init__.py +0 -0
  29. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/tools/api_generator.py +0 -0
  30. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/tools/endpoint_tools.py +0 -0
  31. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/tools/models_tools.py +0 -0
  32. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/tools/schema_generator.py +0 -0
  33. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/tools/schemas_tools.py +0 -0
  34. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/tools/tools.py +0 -0
  35. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/users.py +0 -0
  36. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/utils.py +0 -0
  37. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/cli/views.py +0 -0
  38. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/__init__.py +0 -0
  39. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/access.py +0 -0
  40. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/actions.py +0 -0
  41. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/cleanup.py +0 -0
  42. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/dag.py +0 -0
  43. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/permissions.py +0 -0
  44. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/roles.py +0 -0
  45. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/schemas.py +0 -0
  46. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/users.py +0 -0
  47. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/commands/views.py +0 -0
  48. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/config.py +0 -0
  49. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/__init__.py +0 -0
  50. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/action.py +0 -0
  51. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/alarms.py +0 -0
  52. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/apiview.py +0 -0
  53. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/case.py +0 -0
  54. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/dag.py +0 -0
  55. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/data_check.py +0 -0
  56. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/example_data.py +0 -0
  57. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/execution.py +0 -0
  58. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/health.py +0 -0
  59. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/instance.py +0 -0
  60. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/licenses.py +0 -0
  61. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/login.py +0 -0
  62. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/main_alarms.py +0 -0
  63. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/meta_resource.py +0 -0
  64. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/permission.py +0 -0
  65. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/roles.py +0 -0
  66. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/schemas.py +0 -0
  67. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/signup.py +0 -0
  68. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/tables.py +0 -0
  69. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/token.py +0 -0
  70. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/user.py +0 -0
  71. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/endpoints/user_role.py +0 -0
  72. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/gunicorn.py +0 -0
  73. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/README +0 -0
  74. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/alembic.ini +0 -0
  75. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/env.py +0 -0
  76. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/script.py.mako +0 -0
  77. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/00757b557b02_.py +0 -0
  78. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/1af47a419bbd_.py +0 -0
  79. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/4aac5e0c6e66_.py +0 -0
  80. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/7c3ea5ab5501_.py +0 -0
  81. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/991b98e24225_.py +0 -0
  82. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/999b98e24225.py +0 -0
  83. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/a472b5ad50b7_.py +0 -0
  84. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/c2db9409cb5f_.py +0 -0
  85. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/c8a6c762e818_.py +0 -0
  86. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/ca449af8034c_.py +0 -0
  87. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/d0e0700dcd8e_.py +0 -0
  88. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/d1b5be1f0549_.py +0 -0
  89. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/e1a50dae1ac9_.py +0 -0
  90. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/e937a5234ce4_.py +0 -0
  91. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/ebdd955fcc5e_.py +0 -0
  92. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/migrations/versions/f3bee20314a2_.py +0 -0
  93. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/__init__.py +0 -0
  94. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/action.py +0 -0
  95. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/alarms.py +0 -0
  96. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/base_data_model.py +0 -0
  97. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/case.py +0 -0
  98. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/dag.py +0 -0
  99. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/dag_permissions.py +0 -0
  100. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/execution.py +0 -0
  101. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/instance.py +0 -0
  102. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/main_alarms.py +0 -0
  103. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/meta_models.py +0 -0
  104. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/permissions.py +0 -0
  105. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/role.py +0 -0
  106. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/user.py +0 -0
  107. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/user_role.py +0 -0
  108. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/models/view.py +0 -0
  109. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/orchestrator_constants.py +0 -0
  110. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/__init__.py +0 -0
  111. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/action.py +0 -0
  112. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/alarms.py +0 -0
  113. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/case.py +0 -0
  114. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/common.py +0 -0
  115. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/dag.py +0 -0
  116. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/example_data.py +0 -0
  117. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/health.py +0 -0
  118. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/instance.py +0 -0
  119. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/main_alarms.py +0 -0
  120. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/model_json.py +0 -0
  121. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/patch.py +0 -0
  122. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/permissions.py +0 -0
  123. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/query.py +0 -0
  124. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/role.py +0 -0
  125. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/schemas.py +0 -0
  126. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/solution_log.py +0 -0
  127. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/tables.py +0 -0
  128. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/user.py +0 -0
  129. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/user_role.py +0 -0
  130. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/schemas/view.py +0 -0
  131. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/__init__.py +0 -0
  132. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/authentication/__init__.py +0 -0
  133. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/authentication/auth.py +0 -0
  134. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/authentication/decorators.py +0 -0
  135. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/authentication/ldap.py +0 -0
  136. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/compress.py +0 -0
  137. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/const.py +0 -0
  138. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/databricks.py +0 -0
  139. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/email.py +0 -0
  140. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/exceptions.py +0 -0
  141. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/licenses.py +0 -0
  142. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/log_config.py +0 -0
  143. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/query_tools.py +0 -0
  144. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/utils.py +0 -0
  145. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/utils_tables.py +0 -0
  146. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/shared/validators.py +0 -0
  147. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/__init__.py +0 -0
  148. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/custom_liveServer.py +0 -0
  149. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/custom_test_case.py +0 -0
  150. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/integration/__init__.py +0 -0
  151. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/integration/test_commands.py +0 -0
  152. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/integration/test_cornflowclient.py +0 -0
  153. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/ldap/__init__.py +0 -0
  154. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/ldap/test_ldap_authentication.py +0 -0
  155. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/__init__.py +0 -0
  156. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_actions.py +0 -0
  157. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_alarms.py +0 -0
  158. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_apiview.py +0 -0
  159. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_application.py +0 -0
  160. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_cases.py +0 -0
  161. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_cli.py +0 -0
  162. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_commands.py +0 -0
  163. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_dags.py +0 -0
  164. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_data_checks.py +0 -0
  165. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_example_data.py +0 -0
  166. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_generate_from_schema.py +0 -0
  167. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_health.py +0 -0
  168. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_instances.py +0 -0
  169. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_instances_file.py +0 -0
  170. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_licenses.py +0 -0
  171. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_log_in.py +0 -0
  172. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_main_alarms.py +0 -0
  173. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_permissions.py +0 -0
  174. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_roles.py +0 -0
  175. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_schema_from_models.py +0 -0
  176. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_schemas.py +0 -0
  177. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_sign_up.py +0 -0
  178. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_tables.py +0 -0
  179. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_token.py +0 -0
  180. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/test_users.py +0 -0
  181. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow/tests/unit/tools.py +0 -0
  182. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow.egg-info/SOURCES.txt +0 -0
  183. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow.egg-info/dependency_links.txt +0 -0
  184. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow.egg-info/entry_points.txt +0 -0
  185. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/cornflow.egg-info/top_level.txt +0 -0
  186. {cornflow-2.0.0a12 → cornflow-2.0.0a13}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cornflow
3
- Version: 2.0.0a12
3
+ Version: 2.0.0a13
4
4
  Summary: cornflow is an open source multi-solver optimization server with a REST API built using flask.
5
5
  Home-page: https://github.com/baobabsoluciones/cornflow
6
6
  Author: baobab soluciones
@@ -14,7 +14,7 @@ Requires-Dist: alembic==1.9.2
14
14
  Requires-Dist: apispec<=6.3.0
15
15
  Requires-Dist: cachetools==5.3.3
16
16
  Requires-Dist: click<=8.1.7
17
- Requires-Dist: cornflow-client==2.0.0a12
17
+ Requires-Dist: cornflow-client==2.0.0a13
18
18
  Requires-Dist: cryptography<=44.0.1
19
19
  Requires-Dist: databricks-sdk==0.29.0
20
20
  Requires-Dist: disposable-email-domains>=0.0.86
@@ -78,6 +78,7 @@ class ExecutionEditRequest(Schema):
78
78
  name = fields.Str()
79
79
  description = fields.Str()
80
80
  data = fields.Raw()
81
+ instance_id = fields.Str(required=False)
81
82
 
82
83
 
83
84
  class ExecutionDagRequest(Schema):
@@ -15,6 +15,7 @@ INSTANCE_URL = PREFIX + "/instance/"
15
15
  INSTANCE_MPS = _get_file("./data/test_mps.mps")
16
16
  INSTANCE_GC_20 = _get_file("./data/gc_20_7.json")
17
17
  INSTANCE_FILE_FAIL = _get_file("./unit/test_instances.py")
18
+ EDIT_EXECUTION_SOLUTION = _get_file("./data/edit_execution_solution.json")
18
19
 
19
20
  EXECUTION_PATH = _get_file("./data/new_execution.json")
20
21
  BAD_EXECUTION_PATH = _get_file("./data/bad_execution.json")
@@ -19,7 +19,7 @@ from cornflow.tests.const import (
19
19
  INSTANCE_URL,
20
20
  DAG_URL,
21
21
  BAD_EXECUTION_PATH,
22
- EXECUTION_SOLUTION_PATH,
22
+ EXECUTION_SOLUTION_PATH, EDIT_EXECUTION_SOLUTION,
23
23
  )
24
24
  from cornflow.tests.custom_test_case import CustomTestCase, BaseTestCases
25
25
  from cornflow.tests.unit.tools import patch_af_client, patch_db_client
@@ -473,6 +473,7 @@ class TestExecutionsDetailEndpointMock(CustomTestCase):
473
473
  with open(INSTANCE_PATH) as f:
474
474
  payload = json.load(f)
475
475
  fk_id = self.create_new_row(INSTANCE_URL, InstanceModel, payload)
476
+ self.instance_payload = payload
476
477
  self.model = ExecutionModel
477
478
  self.response_items = {
478
479
  "id",
@@ -523,51 +524,41 @@ class TestExecutionsDetailEndpointAirflow(
523
524
  self.assertEqual(200, response.status_code)
524
525
  self.assertEqual(response.json["message"], "The execution has been stopped")
525
526
 
527
+ def test_edit_execution(self):
526
528
 
527
- class TestExecutionsDetailEndpointDatabricks(
528
- TestExecutionsDetailEndpointMock, BaseTestCases.DetailEndpoint
529
- ):
530
- def setUp(self):
531
- super().setUp()
532
- self.url = self.url
533
- self.query_arguments = {"run": 0}
534
-
535
- def create_app(self):
536
- app = create_app("testing-databricks")
537
- return app
538
-
539
- @patch("cornflow.endpoints.execution.Databricks")
540
- def test_stop_execution(self, db_client_class):
541
- patch_db_client(db_client_class)
542
-
543
- idx = self.create_new_row(EXECUTION_URL, self.model, payload=self.payload)
544
-
545
- response = self.client.post(
546
- self.url + str(idx) + "/",
547
- follow_redirects=True,
548
- headers=self.get_header_with_auth(self.token),
529
+ id_new_instance = self.create_new_row(
530
+ INSTANCE_URL, InstanceModel, self.instance_payload
549
531
  )
550
-
551
- self.assertEqual(200, response.status_code)
552
- self.assertEqual(
553
- response.json["message"], "This feature is not available for Databricks"
532
+ idx = self.create_new_row(
533
+ self.url_with_query_arguments(), self.model, self.payload
554
534
  )
555
535
 
536
+ # Extract the data from data/edit_execution_solution.json
537
+ with open(EDIT_EXECUTION_SOLUTION) as f:
538
+ data = json.load(f)
556
539
 
557
- class TestExecutionsStatusEndpointAirflow(TestExecutionsDetailEndpointMock):
558
- def setUp(self):
559
- super().setUp()
560
- self.response_items = {"id", "name", "status"}
561
- self.items_to_check = []
562
-
563
- def create_app(self):
564
- app = create_app("testing")
565
- return app
540
+ data = {
541
+ "name": "new_name",
542
+ "description": "Updated description",
543
+ "data": data,
544
+ "instance_id": id_new_instance,
545
+ }
546
+ payload_to_check = {
547
+ "id": idx,
548
+ "name":"new_name",
549
+ "description":"Updated description",
550
+ "data_hash":"74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b",
551
+ "instance_id":"805bad3280c95e45384dc6bd91a41317f9a7858c",
552
+ }
553
+ self.update_row(
554
+ self.url + str(idx) + "/",
555
+ data,
556
+ payload_to_check,
557
+ )
566
558
 
567
559
  @patch("cornflow.endpoints.execution.Airflow")
568
560
  def test_get_one_status(self, af_client_class):
569
561
  patch_af_client(af_client_class)
570
-
571
562
  idx = self.create_new_row(EXECUTION_URL, self.model, payload=self.payload)
572
563
  payload = dict(self.payload)
573
564
  payload["id"] = idx
@@ -597,6 +588,68 @@ class TestExecutionsStatusEndpointAirflow(TestExecutionsDetailEndpointMock):
597
588
  self.assertEqual(200, response.status_code)
598
589
  self.assertEqual(f"execution {idx} updated correctly", response.json["message"])
599
590
 
591
+ class TestExecutionsDetailEndpointDatabricks(
592
+ TestExecutionsDetailEndpointMock, BaseTestCases.DetailEndpoint
593
+ ):
594
+ def setUp(self):
595
+ super().setUp()
596
+ self.url = self.url
597
+ self.query_arguments = {"run": 0}
598
+
599
+ def create_app(self):
600
+ app = create_app("testing-databricks")
601
+ return app
602
+
603
+ @patch("cornflow.endpoints.execution.Databricks")
604
+ def test_stop_execution(self, db_client_class):
605
+ patch_db_client(db_client_class)
606
+
607
+ idx = self.create_new_row(EXECUTION_URL, self.model, payload=self.payload)
608
+
609
+ response = self.client.post(
610
+ self.url + str(idx) + "/",
611
+ follow_redirects=True,
612
+ headers=self.get_header_with_auth(self.token),
613
+ )
614
+
615
+ self.assertEqual(200, response.status_code)
616
+ self.assertEqual(
617
+ response.json["message"], "This feature is not available for Databricks"
618
+ )
619
+ def test_edit_execution(self):
620
+
621
+ id_new_instance = self.create_new_row(
622
+ INSTANCE_URL, InstanceModel, self.instance_payload
623
+ )
624
+ idx = self.create_new_row(
625
+ self.url_with_query_arguments(), self.model, self.payload
626
+ )
627
+
628
+ # Extract the data from data/edit_execution_solution.json
629
+ with open(EDIT_EXECUTION_SOLUTION) as f:
630
+ data = json.load(f)
631
+
632
+ data = {
633
+ "name": "new_name",
634
+ "description": "Updated description",
635
+ "data": data,
636
+ "instance_id": id_new_instance,
637
+ }
638
+ payload_to_check = {
639
+ "id": idx,
640
+ "name":"new_name",
641
+ "description":"Updated description",
642
+ "data_hash":"74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b",
643
+ "instance_id":"805bad3280c95e45384dc6bd91a41317f9a7858c",
644
+ }
645
+ self.update_row(
646
+ self.url + str(idx) + "/",
647
+ data,
648
+ payload_to_check,
649
+ )
650
+
651
+
652
+
600
653
 
601
654
  class TestExecutionsStatusEndpointDatabricks(TestExecutionsDetailEndpointMock):
602
655
  def setUp(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cornflow
3
- Version: 2.0.0a12
3
+ Version: 2.0.0a13
4
4
  Summary: cornflow is an open source multi-solver optimization server with a REST API built using flask.
5
5
  Home-page: https://github.com/baobabsoluciones/cornflow
6
6
  Author: baobab soluciones
@@ -14,7 +14,7 @@ Requires-Dist: alembic==1.9.2
14
14
  Requires-Dist: apispec<=6.3.0
15
15
  Requires-Dist: cachetools==5.3.3
16
16
  Requires-Dist: click<=8.1.7
17
- Requires-Dist: cornflow-client==2.0.0a12
17
+ Requires-Dist: cornflow-client==2.0.0a13
18
18
  Requires-Dist: cryptography<=44.0.1
19
19
  Requires-Dist: databricks-sdk==0.29.0
20
20
  Requires-Dist: disposable-email-domains>=0.0.86
@@ -2,7 +2,7 @@ alembic==1.9.2
2
2
  apispec<=6.3.0
3
3
  cachetools==5.3.3
4
4
  click<=8.1.7
5
- cornflow-client==2.0.0a12
5
+ cornflow-client==2.0.0a13
6
6
  cryptography<=44.0.1
7
7
  databricks-sdk==0.29.0
8
8
  disposable-email-domains>=0.0.86
@@ -2,7 +2,7 @@ alembic==1.9.2
2
2
  apispec<=6.3.0
3
3
  cachetools==5.3.3
4
4
  click<=8.1.7
5
- cornflow-client==2.0.0a12
5
+ cornflow-client==2.0.0a13
6
6
  cryptography<=44.0.1
7
7
  databricks-sdk==0.29.0
8
8
  disposable-email-domains>=0.0.86
@@ -9,7 +9,7 @@ with open("requirements.txt", "r") as fh:
9
9
 
10
10
  setuptools.setup(
11
11
  name="cornflow",
12
- version="2.0.0a12",
12
+ version="2.0.0a13",
13
13
  author="baobab soluciones",
14
14
  author_email="cornflow@baobabsoluciones.es",
15
15
  description="cornflow is an open source multi-solver optimization server with a REST API built using flask.",
File without changes
File without changes
File without changes
File without changes