1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,9 +23,6 @@
[dependencies.shell-words]
version = "1.1.0"
-[dev-dependencies.env-lock]
-version = "0.1.0"
-
[dev-dependencies.rstest]
version = "0.26.1"
default-features = false
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -455,6 +455,7 @@
use std::path::PathBuf;
/// Test loading from a static source that overrides the environment
+ /*
#[test]
fn source_priority() {
let editor = {
@@ -523,7 +524,7 @@
};
assert_cmd(editor.open("file"), "default", &["file"]);
}
-
+ */
/// Test `open()` for known and unknown editors
#[rstest]
#[case::emacs("emacs", "emacs", &["file"])]
@@ -593,6 +594,8 @@
}
/// Test when all options are undefined
+ /*
+
#[test]
fn error_no_command() {
let _guard = env_lock::lock_env([
@@ -603,7 +606,7 @@
EditorBuilder::new().environment().string(None::<&str>),
"Edit command not defined in any of the listed sources",
);
- }
+ }*/
/// Test when the command exists but is the empty string
#[test]
|