WIP: added tools command; closes #44 (#60)

* added tools command with placeholders for un/reinstall along with placeholder tests

* added missing docs build dependency

* updated documentation to reflect tools vs install

* refactored some code for DRY, fixed up prior merge with master

* fixed broken tests in test_recon_pipeline_shell

* existing tests all passing

* added tools list command

* added tools list command

* added tools reinstall

* removed lint

* fixed reinstall test

* fixed install go test

* fixed go install test again
This commit is contained in:
epi052
2020-06-27 21:23:16 -05:00
committed by GitHub
parent 1ad3adca82
commit 9d5cac6b34
12 changed files with 288 additions and 118 deletions

View File

@@ -6,9 +6,10 @@ from pipeline.tools import tools
@pytest.mark.parametrize("test_input", list(tools.keys()) + ["all"])
def test_install_parser_good(test_input):
parsed = install_parser.parse_args([test_input])
assert parsed.tool == test_input
def test_tools_parsers_good(test_input):
for parser in [tools_install_parser, tools_uninstall_parser, tools_reinstall_parser]:
parsed = parser.parse_args([test_input])
assert parsed.tool == test_input
@pytest.mark.parametrize(
@@ -21,9 +22,10 @@ def test_install_parser_good(test_input):
(["all", "--invalid"], SystemExit),
],
)
def test_install_parser_raises(test_input, expected):
with pytest.raises(expected):
install_parser.parse_args([test_input])
def test_tools_parsers_raises(test_input, expected):
for parser in [tools_install_parser, tools_uninstall_parser, tools_reinstall_parser]:
with pytest.raises(expected):
parser.parse_args([test_input])
@pytest.mark.parametrize(