code
stringlengths
3
6.57k
api_common.list_args(request, 'fields')
self.assertEqual(expect_val, sorted(actual_val)
test_list_args_with_empty(self)
webob.Request.blank(path)
self.assertEqual([], api_common.list_args(request, 'fields')
SortingTestCase(base.BaseTestCase)
test_get_sorts(self)
webob.Request.blank(path)
api_common.get_sorts(request, attr_info)
self.assertEqual(expect_val, actual_val)
test_get_sorts_with_project_id(self)
webob.Request.blank(path)
api_common.get_sorts(request, attr_info)
self.assertEqual(expect_val, actual_val)
FiltersTestCase(base.BaseTestCase)
test_all_skip_args(self)
webob.Request.blank(path)
test_blank_values(self, mock_is_supported)
webob.Request.blank(path)
self.assertEqual({}, api_common.get_filters(request, {})
test_blank_values_with_filtering_supported(self, mock_is_supported)
webob.Request.blank(path)
api_common.get_filters(request, {})
test_no_attr_info(self)
webob.Request.blank(path)
api_common.get_filters(request, {})
self.assertEqual(expect_val, actual_val)
test_attr_info_with_project_info_populated(self)
webob.Request.blank(path)
api_common.get_filters(request, attr_info)
self.assertEqual(expect_val, actual_val)
self.assertEqual(expect_attr_info, attr_info)
test_attr_info_without_conversion(self)
webob.Request.blank(path)
api_common.get_filters(request, attr_info)
self.assertEqual(expect_val, actual_val)
test_attr_info_with_convert_list_to(self)
webob.Request.blank(path)
api_common.get_filters(request, attr_info)
self.assertOrderedEqual(expect_val, actual_val)
test_attr_info_with_convert_to(self)
webob.Request.blank(path)
api_common.get_filters(request, attr_info)
self.assertEqual(expect_val, actual_val)
test_attr_info_with_base_db_attributes(self)
webob.Request.blank(path)
self.assertEqual({}, api_common.get_filters(request, {})
CreateResourceTestCase(base.BaseTestCase)
test_resource_creation(self)
v2_base.create_resource('fakes', 'fake', None, {})
self.assertIsInstance(resource, webob.dec.wsgify)
__init__(self, db: IconScoreDatabase)
ArrayDB(self._STEP_TYPES, db, value_type=str)
DictDB(self._STEP_COSTS, db, value_type=int)
__setitem__(self, step_type: str, cost: int)
self._step_types.put(step_type)
__getitem__(self, step_type: str)
__delitem__(self, step_type: str)
__contains__(self, step_type: str)
__iter__(self)
self._step_types.__iter__()
__len__(self)
self._step_types.__len__()
items(self)
yield (step_type, self._step_costs[step_type])
Governance(IconSystemScoreBase)
eventlog(indexed=1)
Accepted(self, txHash: str)
eventlog(indexed=1)
Rejected(self, txHash: str, reason: str)
eventlog(indexed=1)
StepPriceChanged(self, stepPrice: int)
eventlog(indexed=1)
StepCostChanged(self, stepType: str, cost: int)
eventlog(indexed=1)
MaxStepLimitChanged(self, contextType: str, value: int)
eventlog(indexed=0)
AddImportWhiteListLog(self, addList: str, addCount: int)
eventlog(indexed=0)
RemoveImportWhiteListLog(self, removeList: str, removeCount: int)
eventlog(indexed=0)
UpdateServiceConfigLog(self, serviceFlag: int)
import_white_list_cache(self)
self._get_import_white_list()
service_config(self)
self._service_config.get()
revision_code(self)
self._revision_code.get()
__init__(self, db: IconScoreDatabase)
super()
__init__(db)
DictDB(self._SCORE_STATUS, db, value_type=bytes, depth=3)
ArrayDB(self._AUDITOR_LIST, db, value_type=Address)
ArrayDB(self._DEPLOYER_LIST, db, value_type=Address)
ArrayDB(self._SCORE_BLACK_LIST, db, value_type=Address)
VarDB(self._STEP_PRICE, db, value_type=int)
StepCosts(db)
DictDB(self._MAX_STEP_LIMITS, db, value_type=int)
VarDB(self._VERSION, db, value_type=str)
DictDB(self._IMPORT_WHITE_LIST, db, value_type=str)