KyosukeIchikawa commited on
Commit
ec1fc48
·
1 Parent(s): 8b3ee97

fix: Update default podcast mode to STANDARD in PromptManager and related tests

Browse files
tests/unit/test_prompt_manager.py CHANGED
@@ -17,7 +17,7 @@ class TestPromptManager:
17
  assert hasattr(self.prompt_manager, "current_document_type")
18
 
19
  # Check default values
20
- assert self.prompt_manager.current_mode == PodcastMode.SECTION_BY_SECTION
21
  assert self.prompt_manager.current_document_type == DocumentType.PAPER
22
 
23
  def test_podcast_mode_enum(self):
 
17
  assert hasattr(self.prompt_manager, "current_document_type")
18
 
19
  # Check default values
20
+ assert self.prompt_manager.current_mode == PodcastMode.STANDARD
21
  assert self.prompt_manager.current_document_type == DocumentType.PAPER
22
 
23
  def test_podcast_mode_enum(self):
tests/unit/test_session_persistence.py CHANGED
@@ -58,7 +58,7 @@ class TestSessionPersistence:
58
  # Verify prompt manager state
59
  pm_state = text_state["prompt_manager_state"]
60
  assert pm_state["current_document_type"] == DocumentType.PAPER.value
61
- assert pm_state["current_mode"] == PodcastMode.SECTION_BY_SECTION.value
62
 
63
  def test_session_deserialization_from_dict(self):
64
  """Test session restoration from dictionary."""
 
58
  # Verify prompt manager state
59
  pm_state = text_state["prompt_manager_state"]
60
  assert pm_state["current_document_type"] == DocumentType.PAPER.value
61
+ assert pm_state["current_mode"] == PodcastMode.STANDARD.value
62
 
63
  def test_session_deserialization_from_dict(self):
64
  """Test session restoration from dictionary."""
yomitalk/prompt_manager.py CHANGED
@@ -80,7 +80,7 @@ class PromptManager:
80
  PodcastMode.SECTION_BY_SECTION: "section_by_section.j2",
81
  }
82
  DEFAULT_DOCUMENT_TYPE = DocumentType.PAPER
83
- DEFAULT_MODE = PodcastMode.SECTION_BY_SECTION
84
  DEFAULT_CHARACTER1 = Character.SHIKOKU_METAN
85
  DEFAULT_CHARACTER2 = Character.ZUNDAMON
86
 
 
80
  PodcastMode.SECTION_BY_SECTION: "section_by_section.j2",
81
  }
82
  DEFAULT_DOCUMENT_TYPE = DocumentType.PAPER
83
+ DEFAULT_MODE = PodcastMode.STANDARD
84
  DEFAULT_CHARACTER1 = Character.SHIKOKU_METAN
85
  DEFAULT_CHARACTER2 = Character.ZUNDAMON
86