class AssetItemResourceTest(AssetContentWebTest): initial_item_data = deepcopy(test_loki_item_data) test_create_item_resource = snitch(create_item_resource) test_patch_item_resource = snitch(patch_item) # test_create_bounce_with_item_schemas = snitch(create_bounce_with_item_schemas) # test_bad_item_schemas_code = snitch(bad_item_schemas_code) # test_delete_item_schema = snitch(delete_item_schema) test_rectificaionPeriod_item_workflow = snitch( rectificationPeriod_item_workflow)
class LotDecisionResourceTest(AssetContentWebTest): initial_status = 'draft' initial_decision_data = deepcopy(test_decision_data) test_create_decision = snitch(create_decision) test_patch_decision = snitch(patch_decision) test_patch_decisions_with_lot_by_broker = snitch( patch_decisions_with_lot_by_broker) test_create_or_patch_decision_in_not_allowed_status = snitch( create_or_patch_decision_in_not_allowed_status) test_create_decisions_with_asset = snitch(create_decisions_with_asset)
class AssetItemResourceTest(AssetContentWebTest): initial_status = 'draft' initial_item_data = deepcopy(test_loki_item_data) test_create_item_resource = snitch(create_item_resource) test_patch_item_resource = snitch(patch_item) test_item_listing = snitch(item_listing) test_update_items_in_forbidden = snitch(update_items_in_forbidden) # test_create_bounce_with_item_schemas = snitch(create_bounce_with_item_schemas) # test_bad_item_schemas_code = snitch(bad_item_schemas_code) # test_delete_item_schema = snitch(delete_item_schema) test_patch_items_with_asset = snitch(patch_items_with_asset) forbidden_item_statuses_modification = ASSET_STATUSES[2:]
class AssetBounceResourceDocumentTestMixin(object): """ Mixin with asset bounce tests for Asset and Lot documents """ test_01_not_found = snitch(not_found) test_02_create_document_in_forbidden_resource_status = snitch(create_document_in_forbidden_resource_status) test_03_put_resource_document_invalid = snitch(put_resource_document_invalid) test_04_patch_resource_document = snitch(patch_resource_document) test_05_create_resource_document_error = snitch(create_resource_document_error) test_06_create_resource_document_json_invalid = snitch(create_resource_document_json_invalid) test_07_create_resource_document_json = snitch(create_resource_document_json) test_08_put_resource_document_json = snitch(put_resource_document_json) test_rectificationPeriod_document_workflow = snitch(rectificationPeriod_document_workflow) test_model_validation = snitch(model_validation)
class AssetOwnershipChangeTestCaseMixin(object): first_owner = 'broker' second_owner = 'broker1' test_owner = 'broker1t' invalid_owner = 'broker3' initial_auth = ('Basic', (first_owner, '')) test_change_resource_ownership = snitch(change_resource_ownership) test_resource_location_in_transfer = snitch(resource_location_in_transfer) test_already_applied_transfer = snitch(already_applied_transfer) test_half_applied_transfer = snitch(half_applied_transfer) test_new_owner_can_change = snitch(new_owner_can_change) test_old_owner_cant_change = snitch(old_owner_cant_change) test_broker_not_accreditation_level = snitch( broker_not_accreditation_level) test_level_permis = snitch(level_permis) test_switch_mode = snitch(switch_mode) test_create_asset_by_concierge = snitch(switch_mode)
class AssetBounceResourceTest(BaseAssetWebTest, ResourceTestMixin, BaseAssetResourceTestMixin): asset_model = AssetBounce docservice = True initial_data = test_asset_bounce_data initial_item_data = deepcopy(test_loki_item_data) initial_status = 'pending' precision = 4 test_08_patch_asset = snitch(patch_asset) test_10_administrator_change_delete_status = snitch(administrator_change_delete_status) test_13_check_pending_asset = snitch(change_pending_asset) test_19_patch_decimal_with_items = snitch(patch_decimal_item_quantity) test_rectificationPeriod_workflow = snitch(rectificationPeriod_workflow) test_create_asset_with_items = snitch(create_asset_with_items) test_check_decisions = snitch(check_decisions)
class AssetBounceResourceTest(BaseAssetWebTest, ResourceTestMixin, BounceAssetResourceTestMixin): asset_model = AssetBounce docservice = True initial_data = test_asset_bounce_data initial_item_data = deepcopy(test_loki_item_data) initial_decision_data = deepcopy(test_decision_data) initial_status = 'pending' precision = 4 test_05_dateModified_resource = snitch(dateModified_resource) test_08_patch_asset = snitch(patch_asset) test_10_administrator_change_delete_status = snitch( administrator_change_delete_status) test_11_administrator_change_complete_status = snitch( administrator_change_complete_status) test_13_check_pending_asset = snitch(change_pending_asset) test_14_check_verification_asset = snitch(change_verification_asset) test_15_check_active_asset = snitch(change_active_asset) test_19_patch_decimal_with_items = snitch(patch_decimal_item_quantity) test_create_asset_with_items = snitch(create_asset_with_items) test_rectificationPeriod_autocreation = snitch( rectificationPeriod_autocreation) test_rectificationPeriod_endDate_remove = snitch( rectificationPeriod_endDate_remove)
class BounceAssetResourceTestMixin(BaseAssetResourceTestMixin): test_09_asset_concierge_patch = snitch(asset_concierge_patch)