class_docstr: Test the commands of the prompt
class_docstr_tok: ["Test","the","commands","of","the","prompt"]
docstr: Verify that string and non-string default value are properly parsed
docstr_tok: ["Verify","that","string","and","non-string","default","value","are","properly","parsed"]
code: def test_add_dim_with_cat_default(
      self, conflicts, branch_solver_prompt
  ):
      """Verify that string and non-string default value are properly parsed"""
      assert len(conflicts.get_resolved()) == 0
      branch_solver_prompt.do_add("new_cat --default-value='hello'")
      assert len(conflicts.get_resolved()) == 1
      assert (
          conflicts.get_resolved()[0].resolution.default_value
          == "hello"
      )
  
      conflicts.revert(conflicts.get_resolved()[0].resolution)
      assert len(conflicts.get_resolved()) == 0
      branch_solver_prompt.do_add("new_cat --default-value=2")
      assert len(conflicts.get_resolved()) == 1
      assert conflicts.get_resolved()[0].resolution.default_value == 2
  
imports: import shlex
  import pytest
  from orion.core import evc
  from orion.core.io.experiment_branch_builder import ExperimentBranchBuilder
  from orion.core.io.interactive_commands.branching_prompt import BranchingPrompt
  from orion.core.io.space_builder import DimensionBuilder
label_desc: Use image node_id 7 for calling the TestCommands obj's underlying member method code with example usage: obj.test_add_dim_with_cat_default(conflicts, branch_solver_prompt) without return types