diff options
author | Thomas O'Donnell <andytom@users.noreply.github.com> | 2019-09-15 18:21:40 +0200 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-09-15 12:21:40 -0400 |
commit | 653def05f0c9c40b0ab07fecdb178ec8a075a61c (patch) | |
tree | 1d79b1704967de92ca570b1e464b210211b0ad56 /tests/testsuite/python.rs | |
parent | 36354aaa799599b5aa2fbb5e53e60408168faaa3 (diff) |
Enable the python module for tox files (#369)
Enable the python module if the current directory contains a `tox.ini`
file.
Diffstat (limited to 'tests/testsuite/python.rs')
-rw-r--r-- | tests/testsuite/python.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/testsuite/python.rs b/tests/testsuite/python.rs index e978baba9..eba959ce5 100644 --- a/tests/testsuite/python.rs +++ b/tests/testsuite/python.rs @@ -75,6 +75,23 @@ fn folder_with_pipfile() -> io::Result<()> { #[test] #[ignore] +fn folder_with_tox() -> io::Result<()> { + let dir = common::new_tempdir()?; + File::create(dir.path().join("tox.ini"))?; + + let output = common::render_module("python") + .arg("--path") + .arg(dir.path()) + .output()?; + let actual = String::from_utf8(output.stdout).unwrap(); + + let expected = format!("via {} ", Color::Yellow.bold().paint("🐍 v3.6.9")); + assert_eq!(expected, actual); + Ok(()) +} + +#[test] +#[ignore] fn folder_with_py_file() -> io::Result<()> { let dir = common::new_tempdir()?; File::create(dir.path().join("main.py"))?; |