mirror of
https://github.com/aljazceru/recon-pipeline.git
synced 2025-12-19 23:34:27 +01:00
* 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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user