Removed test_check_scripts, no longer used

This commit is contained in:
Salvador E. Tropea 2022-06-30 13:58:08 -03:00
parent 8df074df76
commit c5f55d39bb
1 changed files with 0 additions and 43 deletions

View File

@ -1,43 +0,0 @@
"""
Tests the checks for utilities
For debug information use:
pytest-3 --log-cli-level debug
"""
import pytest
import coverage
from . import context # noqa: F401
from kibot.misc import MISSING_TOOL, CMD_EESCHEMA_DO
from kibot.kiplot import check_version
import kibot.kiplot
cov = coverage.Coverage()
def test_check_version_1(caplog):
cov.load()
cov.start()
with pytest.raises(SystemExit) as pytest_wrapped_e:
check_version('ls', '1.1.1')
cov.stop()
cov.save()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == MISSING_TOOL
assert "Unable to determine ls version" in caplog.text
def test_check_version_2(caplog):
# Avoid interaction with other tests: reset the versions cache
kibot.kiplot.script_versions = {}
cov.load()
cov.start()
with pytest.raises(SystemExit) as pytest_wrapped_e:
check_version(CMD_EESCHEMA_DO, '20.1.1')
cov.stop()
cov.save()
assert pytest_wrapped_e.type == SystemExit
assert pytest_wrapped_e.value.code == MISSING_TOOL
assert "Wrong version for `eeschema_do`" in caplog.text