fix: use fixed testfiles location
This commit is contained in:
parent
3a2e4c8abe
commit
7bcff13eb8
20 changed files with 80 additions and 62 deletions
|
|
@ -236,7 +236,7 @@ mod tests {
|
|||
use path_macro::path;
|
||||
use rstest::rstest;
|
||||
|
||||
use crate::param::Language;
|
||||
use crate::{param::Language, util::tests::TESTFILES};
|
||||
|
||||
use super::*;
|
||||
|
||||
|
|
@ -245,7 +245,7 @@ mod tests {
|
|||
#[case::long("long", "PL5dDx681T4bR7ZF1IuWzOv1omlRbE7PiJ")]
|
||||
#[case::nomusic("nomusic", "PL1J-6JOckZtE_P9Xx8D3b2O6w0idhuKBe")]
|
||||
fn map_playlist_data(#[case] name: &str, #[case] id: &str) {
|
||||
let json_path = path!("testfiles" / "playlist" / format!("playlist_{name}.json"));
|
||||
let json_path = path!(*TESTFILES / "playlist" / format!("playlist_{name}.json"));
|
||||
let json_file = File::open(json_path).unwrap();
|
||||
|
||||
let playlist: response::Playlist =
|
||||
|
|
@ -264,7 +264,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn map_playlist_cont() {
|
||||
let json_path = path!("testfiles" / "playlist" / "playlist_cont.json");
|
||||
let json_path = path!(*TESTFILES / "playlist" / "playlist_cont.json");
|
||||
let json_file = File::open(json_path).unwrap();
|
||||
|
||||
let playlist: response::PlaylistCont =
|
||||
|
|
|
|||
Reference in a new issue