Skip to content

Commit

Permalink
fix: test を更新
Browse files Browse the repository at this point in the history
  • Loading branch information
tarepan committed Jun 20, 2024
1 parent 4e16414 commit a49d560
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/unit/preset/test_preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ def test_empty_file() -> None:
preset_manager.load_presets()


def test_not_exist_file() -> None:
preset_manager = PresetManager(preset_path=Path("test/presets-dummy.yaml"))
true_msg = "プリセットの設定ファイルが見つかりません"
with pytest.raises(PresetInternalError, match=true_msg):
preset_manager.load_presets()
def test_not_exist_file(tmp_path: Path) -> None:
preset_manager = PresetManager(preset_path=tmp_path / "presets-dummy.yaml")
presets = preset_manager.load_presets()
assert len(presets) == 0


def test_add_preset(tmp_path: Path) -> None:
Expand Down

0 comments on commit a49d560

Please sign in to comment.