From 1e19ad77c628c3090e78c8093b48567ece65451a Mon Sep 17 00:00:00 2001 From: Patrick Robertson Date: Thu, 20 Mar 2025 18:08:19 +0400 Subject: [PATCH] Fix tests --- tests/test_modules.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_modules.py b/tests/test_modules.py index f672ca6..7067db3 100644 --- a/tests/test_modules.py +++ b/tests/test_modules.py @@ -1,6 +1,7 @@ import pytest from auto_archiver.core.module import ModuleFactory, LazyBaseModule from auto_archiver.core.base_module import BaseModule +from auto_archiver.core.consts import SetupError @pytest.fixture @@ -25,11 +26,9 @@ def test_python_dependency_check(example_module): # monkey patch the manifest to include a nonexistnet dependency example_module.manifest["dependencies"]["python"] = ["does_not_exist"] - with pytest.raises(SystemExit) as load_error: + with pytest.raises(SetupError): example_module.load({}) - assert load_error.value.code == 1 - def test_binary_dependency_check(example_module): # example_module requires ffmpeg, which is not installed