summaryrefslogtreecommitdiffstats
path: root/tests/testsuite/python.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsuite/python.rs')
-rw-r--r--tests/testsuite/python.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/testsuite/python.rs b/tests/testsuite/python.rs
index a432f5fec..ffc66612e 100644
--- a/tests/testsuite/python.rs
+++ b/tests/testsuite/python.rs
@@ -7,6 +7,21 @@ use tempfile;
use crate::common::{self, TestCommand};
#[test]
+fn show_nothing_on_empty_dir() -> io::Result<()> {
+ let dir = tempfile::tempdir()?;
+
+ let output = common::render_module("python")
+ .arg("--path")
+ .arg(dir.path())
+ .output()?;
+ let actual = String::from_utf8(output.stdout).unwrap();
+
+ let expected = "";
+ assert_eq!(expected, actual);
+ dir.close()
+}
+
+#[test]
#[ignore]
fn folder_with_python_version() -> io::Result<()> {
let dir = tempfile::tempdir()?;