kopia lustrzana https://github.com/bellingcat/auto-archiver
Fix tests
rodzic
f22af5e123
commit
1e19ad77c6
|
@ -1,6 +1,7 @@
|
||||||
import pytest
|
import pytest
|
||||||
from auto_archiver.core.module import ModuleFactory, LazyBaseModule
|
from auto_archiver.core.module import ModuleFactory, LazyBaseModule
|
||||||
from auto_archiver.core.base_module import BaseModule
|
from auto_archiver.core.base_module import BaseModule
|
||||||
|
from auto_archiver.core.consts import SetupError
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
@ -25,11 +26,9 @@ def test_python_dependency_check(example_module):
|
||||||
# monkey patch the manifest to include a nonexistnet dependency
|
# monkey patch the manifest to include a nonexistnet dependency
|
||||||
example_module.manifest["dependencies"]["python"] = ["does_not_exist"]
|
example_module.manifest["dependencies"]["python"] = ["does_not_exist"]
|
||||||
|
|
||||||
with pytest.raises(SystemExit) as load_error:
|
with pytest.raises(SetupError):
|
||||||
example_module.load({})
|
example_module.load({})
|
||||||
|
|
||||||
assert load_error.value.code == 1
|
|
||||||
|
|
||||||
|
|
||||||
def test_binary_dependency_check(example_module):
|
def test_binary_dependency_check(example_module):
|
||||||
# example_module requires ffmpeg, which is not installed
|
# example_module requires ffmpeg, which is not installed
|
||||||
|
|
Ładowanie…
Reference in New Issue