<commit_before>-
   Create an issue
-
   !record {model: project.issue, id: project_issue_stockmovedates0}:
    categ_id: project_issue.bug_categ
    name: Stock Move dates
    project_id: project.project_project_22
    working_hours_close: 0.0
    working_hours_open: 0.0
- 
  Check if issue in 'draft' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in draft state}:
    - state == 'draft'
        
- 
  Open the issue
- 
  !python {model: project.issue}: |
    self.case_open(cr, uid, [ref("project_issue_stockmovedates0")], {"lang":
      "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")], "tz":
      False, "active_model": "ir.ui.menu", "search_default_project_id": False, "search_default_my_bugs":
      1, "search_default_user_id": 1, "search_default_current_bugs": 1, "project_id":
      False, "active_id": ref("project_issue.menu_project_issue_track"), })
- 
  Check if issue in 'open' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in open state}:
    - state == 'open'

- 
  Keep issue pending
- 
  !python {model: project.issue}: |
    self.case_pending(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'pending' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in pending state}:
    - state == 'pending'
- 
  Keep issue in 'Escalate' state
- 
  !python {model: project.issue}: |
    self.case_escalate(cr, uid, [ref("project_issue_stockmovedates0")],
    
- 
  Open the issue
- 
  !python {model: project.issue}: |
    self.case_open(cr, uid, [ref("project_issue_stockmovedates0")], {"lang":
      "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")], "tz":
      False, "active_model": "ir.ui.menu", "search_default_project_id": False, "search_default_my_bugs":
      1, "search_default_user_id": 1, "search_default_current_bugs": 1, "project_id":
      False, "active_id": ref("project_issue.menu_project_issue_track"), })
- 
  Check if issue in 'open' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in open state}:
    - state == 'open'
      

- 
  Cancel the issue
- 
  !python {model: project.issue}: |
    self.case_cancel(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'cancel' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in cancel state}:
    - state == 'cancel'

    
- 
  Reset the issue 
- 
  !python {model: project.issue}: |
    self.case_reset(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'draft' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in draft state}:
    - state == 'draft'


- 
  Close the issue
- 
  !python {model: project.issue}: |
    self.case_close(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'done' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in done state}:
    - state == 'done'
<commit_msg>[IMP]project_issue : Improve the test cases<commit_after>-
  I assign an Escalation project as "Study + Prototype".
-
  !record {model: project.project, id: project.project_project_22}:
    project_escalation_id: project.project_project_21
-
   Create an issue for "Specific Developments" project
-
   !record {model: project.issue, id: project_issue_stockmovedates0}:
    categ_id: project_issue.bug_categ
    name: Stock Move dates
    project_id: project.project_project_22
    working_hours_close: 0.0
    working_hours_open: 0.0
- 
  Check if issue in 'draft' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in draft state}:
    - state == 'draft'
- 
  Open the issue
- 
  !python {model: project.issue}: |
    self.case_open(cr, uid, [ref("project_issue_stockmovedates0")], {"lang":
      "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")], "tz":
      False, "active_model": "ir.ui.menu", "search_default_project_id": False, "search_default_my_bugs":
      1, "search_default_user_id": 1, "search_default_current_bugs": 1, "project_id":
      False, "active_id": ref("project_issue.menu_project_issue_track"), })
- 
  Check if issue in 'open' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in open state}:
    - state == 'open'
- 
  Keep issue pending
- 
  !python {model: project.issue}: |
    self.case_pending(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Keep issue in 'Escalate' state
- 
  !python {model: project.issue}: |
    self.case_escalate(cr, uid, [ref("project_issue_stockmovedates0")],{"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'Escalate' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in pending state}:
    - state == 'pending'
- 
  Open the issue
- 
  !python {model: project.issue}: |
    self.case_open(cr, uid, [ref("project_issue_stockmovedates0")], {"lang":
      "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")], "tz":
      False, "active_model": "ir.ui.menu", "search_default_project_id": False, "search_default_my_bugs":
      1, "search_default_user_id": 1, "search_default_current_bugs": 1, "project_id":
      False, "active_id": ref("project_issue.menu_project_issue_track"), })
- 
  Check if issue in 'open' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in open state}:
    - state == 'open'
- 
  Cancel the issue
- 
  !python {model: project.issue}: |
    self.case_cancel(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'cancel' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in cancel state}:
    - state == 'cancel'
- 
  Reset the issue 
- 
  !python {model: project.issue}: |
    self.case_reset(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'draft' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in draft state}:
    - state == 'draft'
- 
  Close the issue
- 
  !python {model: project.issue}: |
    self.case_close(cr, uid, [ref("project_issue_stockmovedates0")],
      {"lang": "en_US", "active_ids": [ref("project_issue.menu_project_issue_track")],
      "tz": False, "active_model": "ir.ui.menu", "search_default_project_id":
      False, "search_default_my_bugs": 1, "search_default_user_id": 1, "search_default_current_bugs":
      1, "project_id": False, "active_id": ref("project_issue.menu_project_issue_track"),
      })
- 
  Check if issue in 'done' state
-
  !assert {model: project.issue, id: project_issue_stockmovedates0, severity: error, string: Issue is in done state}:
    - state == 'done'

{'fraction_non_alphanumeric': 0.1442481429431841, 'fraction_numerical': 0.008532423208191127, 'mean_word_length': 4.631995477671, 'pattern_counts': {'":': 130, '<': 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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7656179', 'n_tokens_mistral': 3523, 'n_tokens_neox': 3394, 'n_words': 748}