<commit_before>-
  In order to test Account Asset feature first I create Asset Category
- 
  I Create an Asset Category Record
- 
  !record {model: account.asset.category, id: account_asset_category_landbuildings0}:
    account_asset_id: account.xfa
    account_depreciation_id: account.xfa
    account_expense_depreciation_id: account.a_expense
    journal_id: account.expenses_journal
    name: Land & Buildings
- 
  I Create an Account Asset Record
- 
  !record {model: account.asset.asset, id: account_asset_asset_Land0}:
    category_id: account_asset_category_landbuildings0
    code: a
    name: Land
    partner_id: base.res_partner_14
    period_id: account.period_6
    purchase_value: 5000.0
    salvage_value: 2000.0
    state: draft
-
  I check Initially that Account Asset is in the "Draft" state
-
  !assert {model: account.asset.asset, id: account_asset_asset_Land0}:
    - state == 'draft'
-
  I Confirm Account Asset using Confirm Asset button
-
  !python {model: account.asset.asset}: |
    self.validate(cr, uid, [ref("account_asset_asset_Land0")])
-
  I Compute Account Asset using Compute button and check the number of depreciation lines created are proper
-
  !python {model: account.asset.asset}: |
    self.compute_depreciation_board(cr, uid, [ref("account_asset_asset_Land0")])
    value = self.browse(cr, uid, [ref("account_asset_asset_Land0")])[0]
    assert value.method_delay == len(value.depreciation_line_ids)
-
  I Create Account Asset Move using using create move method
-
  !python {model: account.asset.depreciation.line}: |
    ids = self.search(cr, uid, [('asset_id','=',ref('account_asset_asset_Land0'))])
    self.create_move(cr, uid, ids)
-
  I Check that After creating all the moves of the asset the state is in "Close" state
-
  !assert {model: account.asset.asset, id: account_asset_asset_Land0}:
    - state == 'close'<commit_msg>[IMP] Account_asset: Yml improved<commit_after>-
  In order to test Account Asset I create Asset and confirm it and check it's Depriciation lines
- 
  I Create an Asset Category
- 
  !record {model: account.asset.category, id: account_asset_category_landbuildings0}:
    account_asset_id: account.xfa
    account_depreciation_id: account.xfa
    account_expense_depreciation_id: account.a_expense
    journal_id: account.expenses_journal
    name: Land & Buildings
- 
  I Create an Account Asset
- 
  !record {model: account.asset.asset, id: account_asset_asset_Land0}:
    category_id: account_asset_category_landbuildings0
    code: a
    name: Land
    partner_id: base.res_partner_14
    period_id: account.period_6
    purchase_value: 5000.0
    state: draft
-
  I check Initially that Account Asset is in the "Draft" state
-
  !assert {model: account.asset.asset, id: account_asset_asset_Land0}:
    - state == 'draft'
-
  I Confirm Account Asset using Confirm Asset button
-
  !python {model: account.asset.asset}: |
    self.validate(cr, uid, [ref("account_asset_asset_Land0")])
-
  I check Asset is in running state after pressing Confirm button on asset
-
  !assert {model: account.asset.asset, id: account_asset_asset_Land0}:
    - state == 'open'
-
  I Compute Account Asset using Compute button and check the number of depreciation lines created
-
  !python {model: account.asset.asset}: |
    self.compute_depreciation_board(cr, uid, [ref("account_asset_asset_Land0")])
    # pressing computation button can be remove if creation of depreciation lines while asset is created
    value = self.browse(cr, uid, [ref("account_asset_asset_Land0")])[0]
    assert value.method_delay == len(value.depreciation_line_ids)
-
  I Create Account Move using create move button on depreciation lines
-
  !python {model: account.asset.depreciation.line}: |
    ids = self.search(cr, uid, [('asset_id','=',ref('account_asset_asset_Land0'))])
    self.create_move(cr, uid, ids)
-
  I Check that After creating all the moves of depreciation lines the state is in "Close" state
-
  !assert {model: account.asset.asset, id: account_asset_asset_Land0}:
    - state == 'close'
{'fraction_non_alphanumeric': 0.09517923362175525, 'fraction_numerical': 0.0103831891223733, 'mean_word_length': 4.254545454545455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4812743', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1271, 'n_words': 373}