arthur-client 1.4.1233__py3-none-any.whl → 1.4.1235__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.
- arthur_client/api_bindings/__init__.py +13 -1
- arthur_client/api_bindings/api/__init__.py +1 -0
- arthur_client/api_bindings/api/custom_aggregations_v1_api.py +1477 -0
- arthur_client/api_bindings/docs/AggregationSpecSchemaInitArgsInner.md +2 -2
- arthur_client/api_bindings/docs/BaseColumnParameterSchema.md +36 -0
- arthur_client/api_bindings/docs/BaseColumnParameterSchemaAllowedColumnTypesInner.md +31 -0
- arthur_client/api_bindings/docs/BaseDatasetParameterSchema.md +33 -0
- arthur_client/api_bindings/docs/BaseLiteralParameterSchema.md +33 -0
- arthur_client/api_bindings/docs/CustomAggregationSpecSchema.md +38 -0
- arthur_client/api_bindings/docs/CustomAggregationSpecSchemaAggregateArgsInner.md +38 -0
- arthur_client/api_bindings/docs/CustomAggregationsV1Api.md +410 -0
- arthur_client/api_bindings/docs/Items1.md +1 -1
- arthur_client/api_bindings/docs/MetricsColumnListParameterSchema.md +2 -2
- arthur_client/api_bindings/docs/MetricsColumnParameterSchema.md +2 -2
- arthur_client/api_bindings/docs/MetricsDatasetParameterSchema.md +1 -1
- arthur_client/api_bindings/docs/MetricsLiteralParameterSchema.md +1 -1
- arthur_client/api_bindings/docs/ObjectType.md +1 -1
- arthur_client/api_bindings/docs/PermissionName.md +10 -0
- arthur_client/api_bindings/docs/PostCustomAggregationSpecSchema.md +33 -0
- arthur_client/api_bindings/docs/PutCustomAggregationSpecSchema.md +33 -0
- arthur_client/api_bindings/docs/ReportedCustomAggregation.md +34 -0
- arthur_client/api_bindings/docs/ResourceKind.md +2 -0
- arthur_client/api_bindings/docs/RuleType.md +0 -4
- arthur_client/api_bindings/docs/ValidationOutcome.md +13 -0
- arthur_client/api_bindings/docs/ValidationResult.md +31 -0
- arthur_client/api_bindings/docs/ValidationResults.md +30 -0
- arthur_client/api_bindings/models/__init__.py +12 -1
- arthur_client/api_bindings/models/base_column_parameter_schema.py +125 -0
- arthur_client/api_bindings/models/{metrics_column_list_parameter_schema_allowed_column_types_inner.py → base_column_parameter_schema_allowed_column_types_inner.py} +7 -7
- arthur_client/api_bindings/models/base_dataset_parameter_schema.py +111 -0
- arthur_client/api_bindings/models/base_literal_parameter_schema.py +106 -0
- arthur_client/api_bindings/models/custom_aggregation_spec_schema.py +126 -0
- arthur_client/api_bindings/models/custom_aggregation_spec_schema_aggregate_args_inner.py +149 -0
- arthur_client/api_bindings/models/metrics_column_list_parameter_schema.py +7 -7
- arthur_client/api_bindings/models/metrics_column_parameter_schema.py +7 -7
- arthur_client/api_bindings/models/metrics_dataset_parameter_schema.py +4 -4
- arthur_client/api_bindings/models/metrics_literal_parameter_schema.py +4 -4
- arthur_client/api_bindings/models/object_type.py +3 -3
- arthur_client/api_bindings/models/permission_name.py +5 -0
- arthur_client/api_bindings/models/post_custom_aggregation_spec_schema.py +111 -0
- arthur_client/api_bindings/models/put_custom_aggregation_spec_schema.py +111 -0
- arthur_client/api_bindings/models/reported_custom_aggregation.py +98 -0
- arthur_client/api_bindings/models/resource_kind.py +1 -0
- arthur_client/api_bindings/models/rule_type.py +0 -2
- arthur_client/api_bindings/models/validation_outcome.py +37 -0
- arthur_client/api_bindings/models/validation_result.py +90 -0
- arthur_client/api_bindings/models/validation_results.py +95 -0
- arthur_client/api_bindings/test/test_aggregation_spec_schema_init_args_inner.py +1 -1
- arthur_client/api_bindings/test/test_base_column_parameter_schema.py +66 -0
- arthur_client/api_bindings/test/{test_metrics_column_list_parameter_schema_allowed_column_types_inner.py → test_base_column_parameter_schema_allowed_column_types_inner.py} +11 -11
- arthur_client/api_bindings/test/test_base_dataset_parameter_schema.py +58 -0
- arthur_client/api_bindings/test/test_base_literal_parameter_schema.py +59 -0
- arthur_client/api_bindings/test/test_custom_aggregation_spec_schema.py +118 -0
- arthur_client/api_bindings/test/test_custom_aggregation_spec_schema_aggregate_args_inner.py +69 -0
- arthur_client/api_bindings/test/test_custom_aggregations_v1_api.py +66 -0
- arthur_client/api_bindings/test/test_metrics_column_list_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_metrics_column_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_metrics_dataset_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_metrics_literal_parameter_schema.py +2 -2
- arthur_client/api_bindings/test/test_post_custom_aggregation_spec_schema.py +84 -0
- arthur_client/api_bindings/test/test_put_custom_aggregation_spec_schema.py +84 -0
- arthur_client/api_bindings/test/test_reported_custom_aggregation.py +66 -0
- arthur_client/api_bindings/test/test_validation_outcome.py +33 -0
- arthur_client/api_bindings/test/test_validation_result.py +54 -0
- arthur_client/api_bindings/test/test_validation_results.py +60 -0
- arthur_client/api_bindings_README.md +17 -1
- {arthur_client-1.4.1233.dist-info → arthur_client-1.4.1235.dist-info}/METADATA +1 -1
- {arthur_client-1.4.1233.dist-info → arthur_client-1.4.1235.dist-info}/RECORD +69 -33
- arthur_client/api_bindings/docs/MetricsColumnListParameterSchemaAllowedColumnTypesInner.md +0 -31
- {arthur_client-1.4.1233.dist-info → arthur_client-1.4.1235.dist-info}/WHEEL +0 -0
@@ -14,10 +14,10 @@
|
|
14
14
|
|
15
15
|
import unittest
|
16
16
|
|
17
|
-
from arthur_client.api_bindings.models.
|
17
|
+
from arthur_client.api_bindings.models.base_column_parameter_schema_allowed_column_types_inner import BaseColumnParameterSchemaAllowedColumnTypesInner
|
18
18
|
|
19
|
-
class
|
20
|
-
"""
|
19
|
+
class TestBaseColumnParameterSchemaAllowedColumnTypesInner(unittest.TestCase):
|
20
|
+
"""BaseColumnParameterSchemaAllowedColumnTypesInner unit test stubs"""
|
21
21
|
|
22
22
|
def setUp(self):
|
23
23
|
pass
|
@@ -25,16 +25,16 @@ class TestMetricsColumnListParameterSchemaAllowedColumnTypesInner(unittest.TestC
|
|
25
25
|
def tearDown(self):
|
26
26
|
pass
|
27
27
|
|
28
|
-
def make_instance(self, include_optional) ->
|
29
|
-
"""Test
|
28
|
+
def make_instance(self, include_optional) -> BaseColumnParameterSchemaAllowedColumnTypesInner:
|
29
|
+
"""Test BaseColumnParameterSchemaAllowedColumnTypesInner
|
30
30
|
include_optional is a boolean, when False only required
|
31
31
|
params are included, when True both required and
|
32
32
|
optional params are included """
|
33
|
-
# uncomment below to create an instance of `
|
33
|
+
# uncomment below to create an instance of `BaseColumnParameterSchemaAllowedColumnTypesInner`
|
34
34
|
"""
|
35
|
-
model =
|
35
|
+
model = BaseColumnParameterSchemaAllowedColumnTypesInner()
|
36
36
|
if include_optional:
|
37
|
-
return
|
37
|
+
return BaseColumnParameterSchemaAllowedColumnTypesInner(
|
38
38
|
dtype = 'undefined',
|
39
39
|
object = {
|
40
40
|
'key' : null
|
@@ -42,7 +42,7 @@ class TestMetricsColumnListParameterSchemaAllowedColumnTypesInner(unittest.TestC
|
|
42
42
|
items = None
|
43
43
|
)
|
44
44
|
else:
|
45
|
-
return
|
45
|
+
return BaseColumnParameterSchemaAllowedColumnTypesInner(
|
46
46
|
dtype = 'undefined',
|
47
47
|
object = {
|
48
48
|
'key' : null
|
@@ -51,8 +51,8 @@ class TestMetricsColumnListParameterSchemaAllowedColumnTypesInner(unittest.TestC
|
|
51
51
|
)
|
52
52
|
"""
|
53
53
|
|
54
|
-
def
|
55
|
-
"""Test
|
54
|
+
def testBaseColumnParameterSchemaAllowedColumnTypesInner(self):
|
55
|
+
"""Test BaseColumnParameterSchemaAllowedColumnTypesInner"""
|
56
56
|
# inst_req_only = self.make_instance(include_optional=False)
|
57
57
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
58
58
|
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from arthur_client.api_bindings.models.base_dataset_parameter_schema import BaseDatasetParameterSchema
|
18
|
+
|
19
|
+
class TestBaseDatasetParameterSchema(unittest.TestCase):
|
20
|
+
"""BaseDatasetParameterSchema unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> BaseDatasetParameterSchema:
|
29
|
+
"""Test BaseDatasetParameterSchema
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `BaseDatasetParameterSchema`
|
34
|
+
"""
|
35
|
+
model = BaseDatasetParameterSchema()
|
36
|
+
if include_optional:
|
37
|
+
return BaseDatasetParameterSchema(
|
38
|
+
parameter_key = '',
|
39
|
+
friendly_name = '',
|
40
|
+
description = '',
|
41
|
+
parameter_type = 'dataset',
|
42
|
+
model_problem_type = 'regression'
|
43
|
+
)
|
44
|
+
else:
|
45
|
+
return BaseDatasetParameterSchema(
|
46
|
+
parameter_key = '',
|
47
|
+
friendly_name = '',
|
48
|
+
description = '',
|
49
|
+
)
|
50
|
+
"""
|
51
|
+
|
52
|
+
def testBaseDatasetParameterSchema(self):
|
53
|
+
"""Test BaseDatasetParameterSchema"""
|
54
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
55
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
56
|
+
|
57
|
+
if __name__ == '__main__':
|
58
|
+
unittest.main()
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from arthur_client.api_bindings.models.base_literal_parameter_schema import BaseLiteralParameterSchema
|
18
|
+
|
19
|
+
class TestBaseLiteralParameterSchema(unittest.TestCase):
|
20
|
+
"""BaseLiteralParameterSchema unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> BaseLiteralParameterSchema:
|
29
|
+
"""Test BaseLiteralParameterSchema
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `BaseLiteralParameterSchema`
|
34
|
+
"""
|
35
|
+
model = BaseLiteralParameterSchema()
|
36
|
+
if include_optional:
|
37
|
+
return BaseLiteralParameterSchema(
|
38
|
+
parameter_key = '',
|
39
|
+
friendly_name = '',
|
40
|
+
description = '',
|
41
|
+
parameter_type = 'literal',
|
42
|
+
parameter_dtype = 'undefined'
|
43
|
+
)
|
44
|
+
else:
|
45
|
+
return BaseLiteralParameterSchema(
|
46
|
+
parameter_key = '',
|
47
|
+
friendly_name = '',
|
48
|
+
description = '',
|
49
|
+
parameter_dtype = 'undefined',
|
50
|
+
)
|
51
|
+
"""
|
52
|
+
|
53
|
+
def testBaseLiteralParameterSchema(self):
|
54
|
+
"""Test BaseLiteralParameterSchema"""
|
55
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
56
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
57
|
+
|
58
|
+
if __name__ == '__main__':
|
59
|
+
unittest.main()
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema import CustomAggregationSpecSchema
|
18
|
+
|
19
|
+
class TestCustomAggregationSpecSchema(unittest.TestCase):
|
20
|
+
"""CustomAggregationSpecSchema unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> CustomAggregationSpecSchema:
|
29
|
+
"""Test CustomAggregationSpecSchema
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `CustomAggregationSpecSchema`
|
34
|
+
"""
|
35
|
+
model = CustomAggregationSpecSchema()
|
36
|
+
if include_optional:
|
37
|
+
return CustomAggregationSpecSchema(
|
38
|
+
name = '',
|
39
|
+
description = '',
|
40
|
+
reported_aggregations = [
|
41
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
42
|
+
metric_name = '',
|
43
|
+
description = '',
|
44
|
+
value_column = '',
|
45
|
+
timestamp_column = '',
|
46
|
+
metric_kind = 'sketch',
|
47
|
+
dimension_columns = [
|
48
|
+
''
|
49
|
+
], )
|
50
|
+
],
|
51
|
+
aggregate_args = [
|
52
|
+
null
|
53
|
+
],
|
54
|
+
sql = '',
|
55
|
+
id = '',
|
56
|
+
workspace_id = '',
|
57
|
+
version = 56,
|
58
|
+
authored_by = arthur_client.api_bindings.models.user.User(
|
59
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
60
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
61
|
+
organization_id = '',
|
62
|
+
id = '',
|
63
|
+
first_name = '',
|
64
|
+
last_name = '',
|
65
|
+
email = '',
|
66
|
+
picture = '',
|
67
|
+
user_type = 'user',
|
68
|
+
data_plane_id = '',
|
69
|
+
client_id = '',
|
70
|
+
organization_name = '', ),
|
71
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
72
|
+
)
|
73
|
+
else:
|
74
|
+
return CustomAggregationSpecSchema(
|
75
|
+
name = '',
|
76
|
+
description = '',
|
77
|
+
reported_aggregations = [
|
78
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
79
|
+
metric_name = '',
|
80
|
+
description = '',
|
81
|
+
value_column = '',
|
82
|
+
timestamp_column = '',
|
83
|
+
metric_kind = 'sketch',
|
84
|
+
dimension_columns = [
|
85
|
+
''
|
86
|
+
], )
|
87
|
+
],
|
88
|
+
aggregate_args = [
|
89
|
+
null
|
90
|
+
],
|
91
|
+
sql = '',
|
92
|
+
id = '',
|
93
|
+
workspace_id = '',
|
94
|
+
version = 56,
|
95
|
+
authored_by = arthur_client.api_bindings.models.user.User(
|
96
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
97
|
+
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
98
|
+
organization_id = '',
|
99
|
+
id = '',
|
100
|
+
first_name = '',
|
101
|
+
last_name = '',
|
102
|
+
email = '',
|
103
|
+
picture = '',
|
104
|
+
user_type = 'user',
|
105
|
+
data_plane_id = '',
|
106
|
+
client_id = '',
|
107
|
+
organization_name = '', ),
|
108
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
109
|
+
)
|
110
|
+
"""
|
111
|
+
|
112
|
+
def testCustomAggregationSpecSchema(self):
|
113
|
+
"""Test CustomAggregationSpecSchema"""
|
114
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
115
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
116
|
+
|
117
|
+
if __name__ == '__main__':
|
118
|
+
unittest.main()
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from arthur_client.api_bindings.models.custom_aggregation_spec_schema_aggregate_args_inner import CustomAggregationSpecSchemaAggregateArgsInner
|
18
|
+
|
19
|
+
class TestCustomAggregationSpecSchemaAggregateArgsInner(unittest.TestCase):
|
20
|
+
"""CustomAggregationSpecSchemaAggregateArgsInner unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> CustomAggregationSpecSchemaAggregateArgsInner:
|
29
|
+
"""Test CustomAggregationSpecSchemaAggregateArgsInner
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `CustomAggregationSpecSchemaAggregateArgsInner`
|
34
|
+
"""
|
35
|
+
model = CustomAggregationSpecSchemaAggregateArgsInner()
|
36
|
+
if include_optional:
|
37
|
+
return CustomAggregationSpecSchemaAggregateArgsInner(
|
38
|
+
parameter_key = '',
|
39
|
+
friendly_name = '',
|
40
|
+
description = '',
|
41
|
+
parameter_type = 'column',
|
42
|
+
model_problem_type = 'regression',
|
43
|
+
parameter_dtype = 'undefined',
|
44
|
+
tag_hints = [
|
45
|
+
'llm_context'
|
46
|
+
],
|
47
|
+
source_dataset_parameter_key = '',
|
48
|
+
allowed_column_types = [
|
49
|
+
null
|
50
|
+
],
|
51
|
+
allow_any_column_type = True
|
52
|
+
)
|
53
|
+
else:
|
54
|
+
return CustomAggregationSpecSchemaAggregateArgsInner(
|
55
|
+
parameter_key = '',
|
56
|
+
friendly_name = '',
|
57
|
+
description = '',
|
58
|
+
parameter_dtype = 'undefined',
|
59
|
+
source_dataset_parameter_key = '',
|
60
|
+
)
|
61
|
+
"""
|
62
|
+
|
63
|
+
def testCustomAggregationSpecSchemaAggregateArgsInner(self):
|
64
|
+
"""Test CustomAggregationSpecSchemaAggregateArgsInner"""
|
65
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
66
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
67
|
+
|
68
|
+
if __name__ == '__main__':
|
69
|
+
unittest.main()
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from arthur_client.api_bindings.api.custom_aggregations_v1_api import CustomAggregationsV1Api
|
18
|
+
|
19
|
+
|
20
|
+
class TestCustomAggregationsV1Api(unittest.TestCase):
|
21
|
+
"""CustomAggregationsV1Api unit test stubs"""
|
22
|
+
|
23
|
+
def setUp(self) -> None:
|
24
|
+
self.api = CustomAggregationsV1Api()
|
25
|
+
|
26
|
+
def tearDown(self) -> None:
|
27
|
+
pass
|
28
|
+
|
29
|
+
def test_delete_custom_aggregation(self) -> None:
|
30
|
+
"""Test case for delete_custom_aggregation
|
31
|
+
|
32
|
+
Delete Custom Aggregation.
|
33
|
+
"""
|
34
|
+
pass
|
35
|
+
|
36
|
+
def test_get_custom_aggregation(self) -> None:
|
37
|
+
"""Test case for get_custom_aggregation
|
38
|
+
|
39
|
+
Get Custom Aggregation By Id.
|
40
|
+
"""
|
41
|
+
pass
|
42
|
+
|
43
|
+
def test_post_custom_aggregation(self) -> None:
|
44
|
+
"""Test case for post_custom_aggregation
|
45
|
+
|
46
|
+
Post Custom Aggregation.
|
47
|
+
"""
|
48
|
+
pass
|
49
|
+
|
50
|
+
def test_put_custom_aggregation(self) -> None:
|
51
|
+
"""Test case for put_custom_aggregation
|
52
|
+
|
53
|
+
Update Custom Aggregation By Id.
|
54
|
+
"""
|
55
|
+
pass
|
56
|
+
|
57
|
+
def test_validate_custom_aggregation(self) -> None:
|
58
|
+
"""Test case for validate_custom_aggregation
|
59
|
+
|
60
|
+
Validate A Custom Aggregation Before Creation.
|
61
|
+
"""
|
62
|
+
pass
|
63
|
+
|
64
|
+
|
65
|
+
if __name__ == '__main__':
|
66
|
+
unittest.main()
|
@@ -36,7 +36,6 @@ class TestMetricsColumnListParameterSchema(unittest.TestCase):
|
|
36
36
|
if include_optional:
|
37
37
|
return MetricsColumnListParameterSchema(
|
38
38
|
parameter_key = '',
|
39
|
-
optional = True,
|
40
39
|
friendly_name = '',
|
41
40
|
description = '',
|
42
41
|
tag_hints = [
|
@@ -47,7 +46,8 @@ class TestMetricsColumnListParameterSchema(unittest.TestCase):
|
|
47
46
|
null
|
48
47
|
],
|
49
48
|
allow_any_column_type = True,
|
50
|
-
parameter_type = 'column_list'
|
49
|
+
parameter_type = 'column_list',
|
50
|
+
optional = True
|
51
51
|
)
|
52
52
|
else:
|
53
53
|
return MetricsColumnListParameterSchema(
|
@@ -36,7 +36,6 @@ class TestMetricsColumnParameterSchema(unittest.TestCase):
|
|
36
36
|
if include_optional:
|
37
37
|
return MetricsColumnParameterSchema(
|
38
38
|
parameter_key = '',
|
39
|
-
optional = True,
|
40
39
|
friendly_name = '',
|
41
40
|
description = '',
|
42
41
|
tag_hints = [
|
@@ -47,7 +46,8 @@ class TestMetricsColumnParameterSchema(unittest.TestCase):
|
|
47
46
|
null
|
48
47
|
],
|
49
48
|
allow_any_column_type = True,
|
50
|
-
parameter_type = 'column'
|
49
|
+
parameter_type = 'column',
|
50
|
+
optional = True
|
51
51
|
)
|
52
52
|
else:
|
53
53
|
return MetricsColumnParameterSchema(
|
@@ -36,11 +36,11 @@ class TestMetricsDatasetParameterSchema(unittest.TestCase):
|
|
36
36
|
if include_optional:
|
37
37
|
return MetricsDatasetParameterSchema(
|
38
38
|
parameter_key = '',
|
39
|
-
optional = True,
|
40
39
|
friendly_name = '',
|
41
40
|
description = '',
|
42
41
|
parameter_type = 'dataset',
|
43
|
-
model_problem_type = 'regression'
|
42
|
+
model_problem_type = 'regression',
|
43
|
+
optional = True
|
44
44
|
)
|
45
45
|
else:
|
46
46
|
return MetricsDatasetParameterSchema(
|
@@ -36,11 +36,11 @@ class TestMetricsLiteralParameterSchema(unittest.TestCase):
|
|
36
36
|
if include_optional:
|
37
37
|
return MetricsLiteralParameterSchema(
|
38
38
|
parameter_key = '',
|
39
|
-
optional = True,
|
40
39
|
friendly_name = '',
|
41
40
|
description = '',
|
42
41
|
parameter_type = 'literal',
|
43
|
-
parameter_dtype = 'undefined'
|
42
|
+
parameter_dtype = 'undefined',
|
43
|
+
optional = True
|
44
44
|
)
|
45
45
|
else:
|
46
46
|
return MetricsLiteralParameterSchema(
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from arthur_client.api_bindings.models.post_custom_aggregation_spec_schema import PostCustomAggregationSpecSchema
|
18
|
+
|
19
|
+
class TestPostCustomAggregationSpecSchema(unittest.TestCase):
|
20
|
+
"""PostCustomAggregationSpecSchema unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> PostCustomAggregationSpecSchema:
|
29
|
+
"""Test PostCustomAggregationSpecSchema
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `PostCustomAggregationSpecSchema`
|
34
|
+
"""
|
35
|
+
model = PostCustomAggregationSpecSchema()
|
36
|
+
if include_optional:
|
37
|
+
return PostCustomAggregationSpecSchema(
|
38
|
+
name = '',
|
39
|
+
description = '',
|
40
|
+
reported_aggregations = [
|
41
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
42
|
+
metric_name = '',
|
43
|
+
description = '',
|
44
|
+
value_column = '',
|
45
|
+
timestamp_column = '',
|
46
|
+
metric_kind = 'sketch',
|
47
|
+
dimension_columns = [
|
48
|
+
''
|
49
|
+
], )
|
50
|
+
],
|
51
|
+
aggregate_args = [
|
52
|
+
null
|
53
|
+
],
|
54
|
+
sql = ''
|
55
|
+
)
|
56
|
+
else:
|
57
|
+
return PostCustomAggregationSpecSchema(
|
58
|
+
name = '',
|
59
|
+
description = '',
|
60
|
+
reported_aggregations = [
|
61
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
62
|
+
metric_name = '',
|
63
|
+
description = '',
|
64
|
+
value_column = '',
|
65
|
+
timestamp_column = '',
|
66
|
+
metric_kind = 'sketch',
|
67
|
+
dimension_columns = [
|
68
|
+
''
|
69
|
+
], )
|
70
|
+
],
|
71
|
+
aggregate_args = [
|
72
|
+
null
|
73
|
+
],
|
74
|
+
sql = '',
|
75
|
+
)
|
76
|
+
"""
|
77
|
+
|
78
|
+
def testPostCustomAggregationSpecSchema(self):
|
79
|
+
"""Test PostCustomAggregationSpecSchema"""
|
80
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
81
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
82
|
+
|
83
|
+
if __name__ == '__main__':
|
84
|
+
unittest.main()
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Arthur Scope
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
10
|
+
|
11
|
+
Do not edit the class manually.
|
12
|
+
""" # noqa: E501
|
13
|
+
|
14
|
+
|
15
|
+
import unittest
|
16
|
+
|
17
|
+
from arthur_client.api_bindings.models.put_custom_aggregation_spec_schema import PutCustomAggregationSpecSchema
|
18
|
+
|
19
|
+
class TestPutCustomAggregationSpecSchema(unittest.TestCase):
|
20
|
+
"""PutCustomAggregationSpecSchema unit test stubs"""
|
21
|
+
|
22
|
+
def setUp(self):
|
23
|
+
pass
|
24
|
+
|
25
|
+
def tearDown(self):
|
26
|
+
pass
|
27
|
+
|
28
|
+
def make_instance(self, include_optional) -> PutCustomAggregationSpecSchema:
|
29
|
+
"""Test PutCustomAggregationSpecSchema
|
30
|
+
include_optional is a boolean, when False only required
|
31
|
+
params are included, when True both required and
|
32
|
+
optional params are included """
|
33
|
+
# uncomment below to create an instance of `PutCustomAggregationSpecSchema`
|
34
|
+
"""
|
35
|
+
model = PutCustomAggregationSpecSchema()
|
36
|
+
if include_optional:
|
37
|
+
return PutCustomAggregationSpecSchema(
|
38
|
+
name = '',
|
39
|
+
description = '',
|
40
|
+
reported_aggregations = [
|
41
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
42
|
+
metric_name = '',
|
43
|
+
description = '',
|
44
|
+
value_column = '',
|
45
|
+
timestamp_column = '',
|
46
|
+
metric_kind = 'sketch',
|
47
|
+
dimension_columns = [
|
48
|
+
''
|
49
|
+
], )
|
50
|
+
],
|
51
|
+
aggregate_args = [
|
52
|
+
null
|
53
|
+
],
|
54
|
+
sql = ''
|
55
|
+
)
|
56
|
+
else:
|
57
|
+
return PutCustomAggregationSpecSchema(
|
58
|
+
name = '',
|
59
|
+
description = '',
|
60
|
+
reported_aggregations = [
|
61
|
+
arthur_client.api_bindings.models.reported_custom_aggregation.ReportedCustomAggregation(
|
62
|
+
metric_name = '',
|
63
|
+
description = '',
|
64
|
+
value_column = '',
|
65
|
+
timestamp_column = '',
|
66
|
+
metric_kind = 'sketch',
|
67
|
+
dimension_columns = [
|
68
|
+
''
|
69
|
+
], )
|
70
|
+
],
|
71
|
+
aggregate_args = [
|
72
|
+
null
|
73
|
+
],
|
74
|
+
sql = '',
|
75
|
+
)
|
76
|
+
"""
|
77
|
+
|
78
|
+
def testPutCustomAggregationSpecSchema(self):
|
79
|
+
"""Test PutCustomAggregationSpecSchema"""
|
80
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
81
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
82
|
+
|
83
|
+
if __name__ == '__main__':
|
84
|
+
unittest.main()
|