| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 10 | def testExplainShell(self): |
||
| 11 | """Test that marvin can explain shell commands""" |
||
| 12 | url = "https://explainshell.com/explain?cmd=pwd" |
||
| 13 | self.assertActionOutput(marvin_actions.marvinExplainShell, "explain pwd", url) |
||
| 14 | self.assertActionOutput(marvin_actions.marvinExplainShell, "can you explain pwd", url) |
||
| 15 | self.assertActionOutput( |
||
| 16 | marvin_actions.marvinExplainShell, |
||
| 17 | "förklara pwd|grep -o $user", |
||
| 18 | f"{url}%7Cgrep+-o+%24user") |
||
| 19 | |||
| 20 | self.assertActionSilent(marvin_actions.marvinExplainShell, "explains") |
||
| 21 |