Merge pull request #433 from a-kenji/disable-default-config-test

Disable Default Config Test
This commit is contained in:
a-kenji 2021-05-02 16:29:37 +02:00 committed by GitHub
commit d6a49f683b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,10 +199,12 @@ mod config_test {
assert_eq!(result.unwrap(), Config::default()); assert_eq!(result.unwrap(), Config::default());
} }
#[test] // This test needs a split somewhere between test and normal runs,
fn try_from_cli_args_default() { // since otherwise it would look in a local configuration and fail.
let opts = CliArgs::default(); //#[test]
let result = Config::try_from(&opts); //fn try_from_cli_args_default() {
assert_eq!(result.unwrap(), Config::default()); //let opts = CliArgs::default();
} //let result = Config::try_from(&opts);
//assert_eq!(result.unwrap(), Config::default());
//}
} }