cornflow 1.1.1a1__py3-none-any.whl → 1.1.2__py3-none-any.whl

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 (35) hide show
  1. cornflow/app.py +0 -4
  2. cornflow/cli/utils.py +1 -1
  3. cornflow/config.py +2 -10
  4. cornflow/endpoints/__init__.py +0 -14
  5. cornflow/endpoints/execution.py +1 -1
  6. cornflow/endpoints/login.py +6 -26
  7. cornflow/models/__init__.py +0 -2
  8. cornflow/models/execution.py +0 -8
  9. cornflow/models/meta_models.py +12 -23
  10. cornflow/schemas/execution.py +0 -3
  11. cornflow/shared/const.py +0 -21
  12. cornflow/shared/exceptions.py +9 -20
  13. cornflow/tests/const.py +0 -7
  14. cornflow/tests/{custom_live_server.py → custom_liveServer.py} +1 -3
  15. cornflow/tests/custom_test_case.py +3 -2
  16. cornflow/tests/integration/test_commands.py +1 -1
  17. cornflow/tests/integration/test_cornflowclient.py +28 -116
  18. cornflow/tests/unit/test_alarms.py +9 -22
  19. cornflow/tests/unit/test_cli.py +5 -10
  20. cornflow/tests/unit/test_commands.py +2 -6
  21. cornflow/tests/unit/test_executions.py +0 -5
  22. cornflow/tests/unit/test_main_alarms.py +0 -8
  23. cornflow/tests/unit/test_users.py +2 -5
  24. {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/METADATA +7 -7
  25. {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/RECORD +28 -35
  26. cornflow/endpoints/reports.py +0 -283
  27. cornflow/migrations/versions/83164be03c23_.py +0 -40
  28. cornflow/migrations/versions/96f00d0961d1_reports_table.py +0 -50
  29. cornflow/models/reports.py +0 -119
  30. cornflow/schemas/reports.py +0 -48
  31. cornflow/static/v1.json +0 -3854
  32. cornflow/tests/unit/test_reports.py +0 -308
  33. {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/WHEEL +0 -0
  34. {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/entry_points.txt +0 -0
  35. {cornflow-1.1.1a1.dist-info → cornflow-1.1.2.dist-info}/top_level.txt +0 -0
@@ -1,48 +0,0 @@
1
- # Imports from libraries
2
- from marshmallow import fields, Schema, INCLUDE
3
-
4
- # Imports from internal modules
5
- from .common import BaseQueryFilters
6
-
7
-
8
- class QueryFiltersReports(BaseQueryFilters):
9
- execution_id = fields.Str(required=False)
10
-
11
-
12
- class ReportSchemaBase(Schema):
13
- id = fields.Int(dump_only=True)
14
- file_url = fields.Str(required=False)
15
- name = fields.Str(required=True)
16
- state = fields.Int()
17
-
18
-
19
- class ReportSchema(ReportSchemaBase):
20
- user_id = fields.Int(required=False, load_only=True)
21
- execution_id = fields.Str(required=True)
22
- description = fields.Str()
23
- state_message = fields.Str()
24
- created_at = fields.DateTime(dump_only=True)
25
- updated_at = fields.DateTime(dump_only=True)
26
- deleted_at = fields.DateTime(dump_only=True)
27
-
28
-
29
- class ReportEditRequest(Schema):
30
- class META:
31
- unknown = INCLUDE
32
-
33
- name = fields.Str()
34
- description = fields.Str()
35
- file_url = fields.Str(required=False)
36
- state = fields.Int()
37
- state_message = fields.Str()
38
-
39
-
40
- class ReportRequest(Schema):
41
- class META:
42
- unknown = INCLUDE
43
-
44
- name = fields.Str(required=True)
45
- description = fields.Str(required=False)
46
- execution_id = fields.Str(required=True)
47
- state = fields.Int()
48
- state_message = fields.Str()