Use existing excel files

This commit is contained in:
hodasemi 2024-04-20 08:36:44 +02:00
parent 1952f4c55d
commit 0dd46385cd
2 changed files with 19 additions and 17 deletions

View file

@ -101,14 +101,16 @@ mod test {
use std::collections::HashMap;
#[test_case("resources/CEPI-method_Laufzettel_Part I_V22.9_Adapack_Muster 1.xlsx")]
#[test_case("resources/CEPI-method_Laufzettel_Part I_V23.02_Cascogne_Muster1.xlsx")]
#[test_case("resources/CEPI-method_Laufzettel_Part I_V23.03_Intertape Packaging_Muster 1.xlsx")]
#[test_case("resources/CEPI-method_Laufzettel_Part I_V23.04_Cats Flexible Packaging_M1.xlsx")]
#[test_case("../laufzettel/CEPI-method_Laufzettel_Part I_V22.8_Metsä Board_Muster1.xlsx")]
#[test_case("../laufzettel/CEPI-method_Laufzettel_Part I_V22.9_Adapack_Muster 1.xlsx")]
#[test_case("../laufzettel/CEPI-method_Laufzettel_Part I_V23.02_Cascogne_Muster1.xlsx")]
#[test_case(
"../laufzettel/CEPI-method_Laufzettel_Part I_V23.04_Cats Flexible Packaging_M1.xlsx"
)]
fn verify_cepi(file: &str) -> Result<()> {
let cepi_reader = PythonObject::new("python-cepi/cepi_read_function.py")?;
let cepi_reader = PythonObject::new("../python-cepi-master/cepi_read_function.py")?;
cepi_reader.execute_script(
let result = cepi_reader.execute_script(
"read",
&file,
|r: HashMap<String, HashMap<String, String>>| Ok(r),