Skip to content

Commit

Permalink
chore: adapted test for local windows
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Jan 22, 2025
1 parent 1a9f743 commit ef830e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libs/shinkai-tools-runner/src/tools/python_runner.test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1330,10 +1330,12 @@ async def run(c: CONFIG, p: INPUTS) -> OUTPUT:
}

#[rstest]
// #[case::host(RunnerType::Host)]
#[case::host(RunnerType::Host)]
#[case::docker(RunnerType::Docker)]
#[tokio::test]
async fn rembg_with_python_3_10(#[case] runner_type: RunnerType) {
use std::path::PathBuf;

let _ = env_logger::builder()
.filter_level(log::LevelFilter::Info)
.is_test(true)
Expand Down Expand Up @@ -1406,6 +1408,10 @@ async def run(c: CONFIG, p: INPUTS) -> OUTPUT:

let context_id = nanoid::nanoid!();
let context = ExecutionContext {
storage: match (cfg!(windows), runner_type) {
(true, RunnerType::Host) => PathBuf::from("C:/shinkai-tools-runner-execution-storage/storage"),
_ => PathBuf::from("./shinkai-tools-runner-execution-storage/storage"),
},
context_id: context_id.clone(),
..Default::default()
};
Expand Down

0 comments on commit ef830e9

Please sign in to comment.