Use docmatic
with additional arguments
This commit is contained in:
parent
87e3f5d600
commit
57de066a6b
|
@ -7,18 +7,16 @@ fn pypath() -> Option<PathBuf> {
|
|||
option_env!("PYTHON").map(|py| PathBuf::from(py).join("libs"))
|
||||
}
|
||||
|
||||
|
||||
fn test_file<P: AsRef<Path>>(path: P) {
|
||||
let args = if cfg!(windows) {
|
||||
vec![("--library-path", pypath().unwrap())]
|
||||
let py = pypath().unwrap().to_str().unwrap().to_string();
|
||||
vec![String::from("--library-path"), py]
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
docmatic::assert_file_with(path, &args);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_guide() {
|
||||
let guide_path = PathBuf::from("guide").join("src");
|
||||
|
|
Loading…
Reference in a new issue