perceptic-core-client 0.29.0__py3-none-any.whl → 0.31.0__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.
Potentially problematic release.
This version of perceptic-core-client might be problematic. Click here for more details.
- perceptic_core_client/__init__.py +26 -0
- perceptic_core_client/api/__init__.py +1 -0
- perceptic_core_client/api/citations_resource_api.py +569 -0
- perceptic_core_client/api/user_resource_api.py +269 -0
- perceptic_core_client/api/worker_resource_api.py +273 -0
- perceptic_core_client/models/__init__.py +12 -0
- perceptic_core_client/models/biotech_analysis_api_dto.py +119 -0
- perceptic_core_client/models/biotech_analysis_image_annotated_citation_api_dto.py +91 -0
- perceptic_core_client/models/bulk_get_citations_request.py +87 -0
- perceptic_core_client/models/bulk_get_citations_response.py +95 -0
- perceptic_core_client/models/citation_api_dto.py +102 -0
- perceptic_core_client/models/citation_metadata_api_dto.py +189 -0
- perceptic_core_client/models/get_citation_output_uri_response.py +87 -0
- perceptic_core_client/models/get_worker_run_response.py +97 -0
- perceptic_core_client/models/highlighted_text_citation_metadata_api_dto.py +91 -0
- perceptic_core_client/models/image_detection_box_api_dto.py +97 -0
- perceptic_core_client/models/info_event.py +4 -1
- perceptic_core_client/models/progress_event.py +5 -2
- perceptic_core_client/models/request_for_input_event.py +4 -1
- perceptic_core_client/models/user_info_response.py +115 -0
- perceptic_core_client/models/web_page_citation_metadata_api_dto.py +89 -0
- perceptic_core_client/test/test_biotech_analysis_api_dto.py +77 -0
- perceptic_core_client/test/test_biotech_analysis_image_annotated_citation_api_dto.py +78 -0
- perceptic_core_client/test/test_bulk_get_citations_request.py +53 -0
- perceptic_core_client/test/test_bulk_get_citations_response.py +57 -0
- perceptic_core_client/test/test_citation_api_dto.py +54 -0
- perceptic_core_client/test/test_citation_metadata_api_dto.py +83 -0
- perceptic_core_client/test/test_citations_resource_api.py +45 -0
- perceptic_core_client/test/test_get_citation_output_uri_response.py +51 -0
- perceptic_core_client/test/test_get_worker_run_response.py +55 -0
- perceptic_core_client/test/test_highlighted_text_citation_metadata_api_dto.py +53 -0
- perceptic_core_client/test/test_image_detection_box_api_dto.py +56 -0
- perceptic_core_client/test/test_info_event.py +1 -0
- perceptic_core_client/test/test_progress_event.py +1 -0
- perceptic_core_client/test/test_request_for_input_event.py +1 -0
- perceptic_core_client/test/test_user_info_response.py +56 -0
- perceptic_core_client/test/test_user_resource_api.py +7 -0
- perceptic_core_client/test/test_web_page_citation_metadata_api_dto.py +52 -0
- perceptic_core_client/test/test_worker_event.py +1 -0
- perceptic_core_client/test/test_worker_resource_api.py +7 -0
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/METADATA +1 -1
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/RECORD +44 -18
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/WHEEL +0 -0
- {perceptic_core_client-0.29.0.dist-info → perceptic_core_client-0.31.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.biotech_analysis_api_dto import BiotechAnalysisApiDto
|
|
18
|
+
|
|
19
|
+
class TestBiotechAnalysisApiDto(unittest.TestCase):
|
|
20
|
+
"""BiotechAnalysisApiDto 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) -> BiotechAnalysisApiDto:
|
|
29
|
+
"""Test BiotechAnalysisApiDto
|
|
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 `BiotechAnalysisApiDto`
|
|
34
|
+
"""
|
|
35
|
+
model = BiotechAnalysisApiDto()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return BiotechAnalysisApiDto(
|
|
38
|
+
raw_analysis = '',
|
|
39
|
+
compound_data_present = True,
|
|
40
|
+
compounds = [
|
|
41
|
+
''
|
|
42
|
+
],
|
|
43
|
+
development_stage = '',
|
|
44
|
+
therapeutic_area = '',
|
|
45
|
+
key_findings = [
|
|
46
|
+
''
|
|
47
|
+
],
|
|
48
|
+
risks = [
|
|
49
|
+
''
|
|
50
|
+
],
|
|
51
|
+
market_potential = '',
|
|
52
|
+
confidence = 1.337,
|
|
53
|
+
reasoning = '',
|
|
54
|
+
bounding_boxes = [
|
|
55
|
+
perceptic_core_client.models.image_detection_box_api_dto.ImageDetectionBoxApiDto(
|
|
56
|
+
x_min = 56,
|
|
57
|
+
y_min = 56,
|
|
58
|
+
x_max = 56,
|
|
59
|
+
y_max = 56,
|
|
60
|
+
label = '',
|
|
61
|
+
confidence = 1.337, )
|
|
62
|
+
],
|
|
63
|
+
page_index = 56,
|
|
64
|
+
character_count = 56
|
|
65
|
+
)
|
|
66
|
+
else:
|
|
67
|
+
return BiotechAnalysisApiDto(
|
|
68
|
+
)
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
def testBiotechAnalysisApiDto(self):
|
|
72
|
+
"""Test BiotechAnalysisApiDto"""
|
|
73
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
74
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
75
|
+
|
|
76
|
+
if __name__ == '__main__':
|
|
77
|
+
unittest.main()
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.biotech_analysis_image_annotated_citation_api_dto import BiotechAnalysisImageAnnotatedCitationApiDto
|
|
18
|
+
|
|
19
|
+
class TestBiotechAnalysisImageAnnotatedCitationApiDto(unittest.TestCase):
|
|
20
|
+
"""BiotechAnalysisImageAnnotatedCitationApiDto 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) -> BiotechAnalysisImageAnnotatedCitationApiDto:
|
|
29
|
+
"""Test BiotechAnalysisImageAnnotatedCitationApiDto
|
|
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 `BiotechAnalysisImageAnnotatedCitationApiDto`
|
|
34
|
+
"""
|
|
35
|
+
model = BiotechAnalysisImageAnnotatedCitationApiDto()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return BiotechAnalysisImageAnnotatedCitationApiDto(
|
|
38
|
+
analysis = perceptic_core_client.models.biotech_analysis_api_dto.BiotechAnalysisApiDto(
|
|
39
|
+
raw_analysis = '',
|
|
40
|
+
compound_data_present = True,
|
|
41
|
+
compounds = [
|
|
42
|
+
''
|
|
43
|
+
],
|
|
44
|
+
development_stage = '',
|
|
45
|
+
therapeutic_area = '',
|
|
46
|
+
key_findings = [
|
|
47
|
+
''
|
|
48
|
+
],
|
|
49
|
+
risks = [
|
|
50
|
+
''
|
|
51
|
+
],
|
|
52
|
+
market_potential = '',
|
|
53
|
+
confidence = 1.337,
|
|
54
|
+
reasoning = '',
|
|
55
|
+
bounding_boxes = [
|
|
56
|
+
perceptic_core_client.models.image_detection_box_api_dto.ImageDetectionBoxApiDto(
|
|
57
|
+
x_min = 56,
|
|
58
|
+
y_min = 56,
|
|
59
|
+
x_max = 56,
|
|
60
|
+
y_max = 56,
|
|
61
|
+
label = '',
|
|
62
|
+
confidence = 1.337, )
|
|
63
|
+
],
|
|
64
|
+
page_index = 56,
|
|
65
|
+
character_count = 56, )
|
|
66
|
+
)
|
|
67
|
+
else:
|
|
68
|
+
return BiotechAnalysisImageAnnotatedCitationApiDto(
|
|
69
|
+
)
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
def testBiotechAnalysisImageAnnotatedCitationApiDto(self):
|
|
73
|
+
"""Test BiotechAnalysisImageAnnotatedCitationApiDto"""
|
|
74
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
75
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
76
|
+
|
|
77
|
+
if __name__ == '__main__':
|
|
78
|
+
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.bulk_get_citations_request import BulkGetCitationsRequest
|
|
18
|
+
|
|
19
|
+
class TestBulkGetCitationsRequest(unittest.TestCase):
|
|
20
|
+
"""BulkGetCitationsRequest 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) -> BulkGetCitationsRequest:
|
|
29
|
+
"""Test BulkGetCitationsRequest
|
|
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 `BulkGetCitationsRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = BulkGetCitationsRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return BulkGetCitationsRequest(
|
|
38
|
+
ids = [
|
|
39
|
+
''
|
|
40
|
+
]
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return BulkGetCitationsRequest(
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testBulkGetCitationsRequest(self):
|
|
48
|
+
"""Test BulkGetCitationsRequest"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.bulk_get_citations_response import BulkGetCitationsResponse
|
|
18
|
+
|
|
19
|
+
class TestBulkGetCitationsResponse(unittest.TestCase):
|
|
20
|
+
"""BulkGetCitationsResponse 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) -> BulkGetCitationsResponse:
|
|
29
|
+
"""Test BulkGetCitationsResponse
|
|
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 `BulkGetCitationsResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = BulkGetCitationsResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return BulkGetCitationsResponse(
|
|
38
|
+
citations = [
|
|
39
|
+
perceptic_core_client.models.citation_api_dto.CitationApiDto(
|
|
40
|
+
id = '',
|
|
41
|
+
input_uri = '',
|
|
42
|
+
output_artifact_uri = '',
|
|
43
|
+
metadata = perceptic_core_client.models.citation_metadata_api_dto.CitationMetadataApiDto(), )
|
|
44
|
+
]
|
|
45
|
+
)
|
|
46
|
+
else:
|
|
47
|
+
return BulkGetCitationsResponse(
|
|
48
|
+
)
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def testBulkGetCitationsResponse(self):
|
|
52
|
+
"""Test BulkGetCitationsResponse"""
|
|
53
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
54
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
55
|
+
|
|
56
|
+
if __name__ == '__main__':
|
|
57
|
+
unittest.main()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.citation_api_dto import CitationApiDto
|
|
18
|
+
|
|
19
|
+
class TestCitationApiDto(unittest.TestCase):
|
|
20
|
+
"""CitationApiDto 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) -> CitationApiDto:
|
|
29
|
+
"""Test CitationApiDto
|
|
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 `CitationApiDto`
|
|
34
|
+
"""
|
|
35
|
+
model = CitationApiDto()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return CitationApiDto(
|
|
38
|
+
id = '',
|
|
39
|
+
input_uri = '',
|
|
40
|
+
output_artifact_uri = '',
|
|
41
|
+
metadata = perceptic_core_client.models.citation_metadata_api_dto.CitationMetadataApiDto()
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return CitationApiDto(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testCitationApiDto(self):
|
|
49
|
+
"""Test CitationApiDto"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.citation_metadata_api_dto import CitationMetadataApiDto
|
|
18
|
+
|
|
19
|
+
class TestCitationMetadataApiDto(unittest.TestCase):
|
|
20
|
+
"""CitationMetadataApiDto 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) -> CitationMetadataApiDto:
|
|
29
|
+
"""Test CitationMetadataApiDto
|
|
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 `CitationMetadataApiDto`
|
|
34
|
+
"""
|
|
35
|
+
model = CitationMetadataApiDto()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return CitationMetadataApiDto(
|
|
38
|
+
page_index = 56,
|
|
39
|
+
paragraph_index = 56,
|
|
40
|
+
text = '',
|
|
41
|
+
url = '',
|
|
42
|
+
description = '',
|
|
43
|
+
analysis = perceptic_core_client.models.biotech_analysis_api_dto.BiotechAnalysisApiDto(
|
|
44
|
+
raw_analysis = '',
|
|
45
|
+
compound_data_present = True,
|
|
46
|
+
compounds = [
|
|
47
|
+
''
|
|
48
|
+
],
|
|
49
|
+
development_stage = '',
|
|
50
|
+
therapeutic_area = '',
|
|
51
|
+
key_findings = [
|
|
52
|
+
''
|
|
53
|
+
],
|
|
54
|
+
risks = [
|
|
55
|
+
''
|
|
56
|
+
],
|
|
57
|
+
market_potential = '',
|
|
58
|
+
confidence = 1.337,
|
|
59
|
+
reasoning = '',
|
|
60
|
+
bounding_boxes = [
|
|
61
|
+
perceptic_core_client.models.image_detection_box_api_dto.ImageDetectionBoxApiDto(
|
|
62
|
+
x_min = 56,
|
|
63
|
+
y_min = 56,
|
|
64
|
+
x_max = 56,
|
|
65
|
+
y_max = 56,
|
|
66
|
+
label = '',
|
|
67
|
+
confidence = 1.337, )
|
|
68
|
+
],
|
|
69
|
+
page_index = 56,
|
|
70
|
+
character_count = 56, )
|
|
71
|
+
)
|
|
72
|
+
else:
|
|
73
|
+
return CitationMetadataApiDto(
|
|
74
|
+
)
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
def testCitationMetadataApiDto(self):
|
|
78
|
+
"""Test CitationMetadataApiDto"""
|
|
79
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
80
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
81
|
+
|
|
82
|
+
if __name__ == '__main__':
|
|
83
|
+
unittest.main()
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.api.citations_resource_api import CitationsResourceApi
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class TestCitationsResourceApi(unittest.TestCase):
|
|
21
|
+
"""CitationsResourceApi unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self) -> None:
|
|
24
|
+
self.api = CitationsResourceApi()
|
|
25
|
+
|
|
26
|
+
def tearDown(self) -> None:
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def test_get_bulk_citations(self) -> None:
|
|
30
|
+
"""Test case for get_bulk_citations
|
|
31
|
+
|
|
32
|
+
Get Bulk Citations
|
|
33
|
+
"""
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
def test_get_citation_output_uri(self) -> None:
|
|
37
|
+
"""Test case for get_citation_output_uri
|
|
38
|
+
|
|
39
|
+
Get Citation Output Uri
|
|
40
|
+
"""
|
|
41
|
+
pass
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
if __name__ == '__main__':
|
|
45
|
+
unittest.main()
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.get_citation_output_uri_response import GetCitationOutputUriResponse
|
|
18
|
+
|
|
19
|
+
class TestGetCitationOutputUriResponse(unittest.TestCase):
|
|
20
|
+
"""GetCitationOutputUriResponse 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) -> GetCitationOutputUriResponse:
|
|
29
|
+
"""Test GetCitationOutputUriResponse
|
|
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 `GetCitationOutputUriResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = GetCitationOutputUriResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return GetCitationOutputUriResponse(
|
|
38
|
+
output_uri = ''
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return GetCitationOutputUriResponse(
|
|
42
|
+
)
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def testGetCitationOutputUriResponse(self):
|
|
46
|
+
"""Test GetCitationOutputUriResponse"""
|
|
47
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
48
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
unittest.main()
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.get_worker_run_response import GetWorkerRunResponse
|
|
18
|
+
|
|
19
|
+
class TestGetWorkerRunResponse(unittest.TestCase):
|
|
20
|
+
"""GetWorkerRunResponse 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) -> GetWorkerRunResponse:
|
|
29
|
+
"""Test GetWorkerRunResponse
|
|
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 `GetWorkerRunResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = GetWorkerRunResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return GetWorkerRunResponse(
|
|
38
|
+
run_rid = '',
|
|
39
|
+
status = 'QUEUED',
|
|
40
|
+
started_by_user_id = '',
|
|
41
|
+
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
|
42
|
+
inputs = None
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return GetWorkerRunResponse(
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def testGetWorkerRunResponse(self):
|
|
50
|
+
"""Test GetWorkerRunResponse"""
|
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
53
|
+
|
|
54
|
+
if __name__ == '__main__':
|
|
55
|
+
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.highlighted_text_citation_metadata_api_dto import HighlightedTextCitationMetadataApiDto
|
|
18
|
+
|
|
19
|
+
class TestHighlightedTextCitationMetadataApiDto(unittest.TestCase):
|
|
20
|
+
"""HighlightedTextCitationMetadataApiDto 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) -> HighlightedTextCitationMetadataApiDto:
|
|
29
|
+
"""Test HighlightedTextCitationMetadataApiDto
|
|
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 `HighlightedTextCitationMetadataApiDto`
|
|
34
|
+
"""
|
|
35
|
+
model = HighlightedTextCitationMetadataApiDto()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return HighlightedTextCitationMetadataApiDto(
|
|
38
|
+
page_index = 56,
|
|
39
|
+
paragraph_index = 56,
|
|
40
|
+
text = ''
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return HighlightedTextCitationMetadataApiDto(
|
|
44
|
+
)
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def testHighlightedTextCitationMetadataApiDto(self):
|
|
48
|
+
"""Test HighlightedTextCitationMetadataApiDto"""
|
|
49
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
50
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
perceptic-core-server API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.0.1-SNAPSHOT
|
|
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 perceptic_core_client.models.image_detection_box_api_dto import ImageDetectionBoxApiDto
|
|
18
|
+
|
|
19
|
+
class TestImageDetectionBoxApiDto(unittest.TestCase):
|
|
20
|
+
"""ImageDetectionBoxApiDto 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) -> ImageDetectionBoxApiDto:
|
|
29
|
+
"""Test ImageDetectionBoxApiDto
|
|
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 `ImageDetectionBoxApiDto`
|
|
34
|
+
"""
|
|
35
|
+
model = ImageDetectionBoxApiDto()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return ImageDetectionBoxApiDto(
|
|
38
|
+
x_min = 56,
|
|
39
|
+
y_min = 56,
|
|
40
|
+
x_max = 56,
|
|
41
|
+
y_max = 56,
|
|
42
|
+
label = '',
|
|
43
|
+
confidence = 1.337
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return ImageDetectionBoxApiDto(
|
|
47
|
+
)
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
def testImageDetectionBoxApiDto(self):
|
|
51
|
+
"""Test ImageDetectionBoxApiDto"""
|
|
52
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
53
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
54
|
+
|
|
55
|
+
if __name__ == '__main__':
|
|
56
|
+
unittest.main()
|