switch test to 'module require'
This commit is contained in:
parent
ff424e5e80
commit
785ce877ef
1 changed files with 2 additions and 3 deletions
|
@ -437,11 +437,10 @@ def module_install_cmd(user: bool, module: str) -> None:
|
||||||
|
|
||||||
|
|
||||||
def test_doctor_single():
|
def test_doctor_single():
|
||||||
# cli test
|
|
||||||
from click.testing import CliRunner
|
from click.testing import CliRunner
|
||||||
result = CliRunner().invoke(main, ['doctor', '--skip-config-check', 'my.core'])
|
result = CliRunner().invoke(main, ['module', 'requires', 'my.github.ghexport'])
|
||||||
assert result.exit_code == 0
|
assert result.exit_code == 0
|
||||||
assert "no 'stats' function" in result.output
|
assert "github.com/karlicoss/ghexport" in result.output
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue