fix: use fixed testfiles location

This commit is contained in:
ThetaDev 2023-03-25 23:18:49 +01:00
parent 3a2e4c8abe
commit 7bcff13eb8
20 changed files with 80 additions and 62 deletions

View file

@ -1064,10 +1064,11 @@ mod tests {
use path_macro::path;
use super::*;
use crate::util::tests::TESTFILES;
#[test]
fn map_album_type_samples() {
let json_path = path!("testfiles" / "dict" / "album_type_samples.json");
let json_path = path!(*TESTFILES / "dict" / "album_type_samples.json");
let json_file = File::open(json_path).unwrap();
let atype_samples: BTreeMap<Language, BTreeMap<AlbumType, String>> =
serde_json::from_reader(BufReader::new(json_file)).unwrap();