forked from nushell/nushell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove long-unused
autoenv
tests (nushell#14436)
# Description The `.nu-env` file feature was removed some time ago (probably in the engine-q upgrade?). The tests, however, still remained as dead-code, so this is just some basic clean-up. If this feature was ever implemented again, the tests would need to be rewritten anyway due to the changes in the way config is handled. # User-Facing Changes None # Tests + Formatting - 🟢 `toolkit fmt` - 🟢 `toolkit clippy` - 🟢 `toolkit test` - 🟢 `toolkit test stdlib` - # After Submitting N/A
- Loading branch information
1 parent
7a9b14b
commit ac75562
Showing
3 changed files
with
0 additions
and
715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1 @@ | ||
mod env; | ||
|
||
// FIXME: nu_env tests depend on autoenv which hasn't been ported yet | ||
// mod nu_env; | ||
|
||
pub mod support { | ||
use nu_test_support::{nu, playground::*, Outcome}; | ||
|
||
pub struct Trusted; | ||
|
||
impl Trusted { | ||
pub fn in_path(dirs: &Dirs, block: impl FnOnce() -> Outcome) -> Outcome { | ||
let for_env_manifest = dirs.test().to_string_lossy(); | ||
|
||
nu!(cwd: dirs.root(), "autoenv trust \"{}\"", for_env_manifest); | ||
let out = block(); | ||
nu!(cwd: dirs.root(), "autoenv untrust \"{}\"", for_env_manifest); | ||
|
||
out | ||
} | ||
} | ||
} |
Oops, something went wrong.