We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76dddf1 commit f5e01ccCopy full SHA for f5e01cc
tests/module_utils/sap_automation_qa_test.py
@@ -178,9 +178,14 @@ def mock_get_logger(name):
178
"src.module_utils.sap_automation_qa.logging.getLogger", mock_get_logger
179
)
180
sap_qa = SapAutomationQA()
181
+
182
command = "echo 'Hello World'"
- result = sap_qa.execute_command_subprocess(command)
183
- assert result == ""
+ result = sap_qa.execute_command_subprocess(command, shell_command=True)
184
+ assert "Hello World" in result
185
186
+ command_list = ["echo", "Hello World"]
187
+ result_list = sap_qa.execute_command_subprocess(command_list, shell_command=False)
188
+ assert "Hello World" in result_list
189
190
def test_parse_xml_output(self, monkeypatch):
191
"""
0 commit comments