-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
126 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
from aiida.cmdline.params import options as core_options | ||
from aiida.cmdline.params import types as core_types | ||
|
||
from .root import cmd_root | ||
from .install import cmd_install | ||
from .server import cmd_info, cmd_start, cmd_stop | ||
from .alloc import cmd_list, cmd_add, cmd_remove | ||
from .root import cmd_root # noqa: F401 | ||
from .install import cmd_install # noqa: F401 | ||
from .server import cmd_info, cmd_start, cmd_stop # noqa: F401 | ||
from .alloc import cmd_list, cmd_add, cmd_remove # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
from click.testing import CliRunner | ||
|
||
from aiida_hyperqueue.cli import cmd_install | ||
|
||
|
||
@pytest.fixture | ||
def runner(): | ||
return CliRunner() | ||
|
||
|
||
def test_install(runner, tmp_path, aiida_computer_ssh): | ||
aiida_computer_ssh(label="localhost-hq") | ||
|
||
version = "0.19.0" | ||
result = runner.invoke(cmd_install, ["-p", f"{str(tmp_path.resolve())}", "--hq-version", version, "--no-write-bashrc", "localhost-hq"]) | ||
result = runner.invoke( | ||
cmd_install, | ||
[ | ||
"-p", | ||
f"{str(tmp_path.resolve())}", | ||
"--hq-version", | ||
version, | ||
"--no-write-bashrc", | ||
"localhost-hq", | ||
], | ||
) | ||
|
||
assert result.exit_code == 0 | ||
assert f"hq version {version}" in result.output | ||
|
||
|
||
|
||
|
Oops, something went wrong.