From b678e293449a965d5ce5f426c5cefa3bd054f31e Mon Sep 17 00:00:00 2001 From: Giorgi Merebashvili Date: Sun, 15 Feb 2026 13:04:15 +0400 Subject: [PATCH] tests: Fix test_path_to_module_path to test on windows --- crates/fluxqueue-worker/src/worker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/fluxqueue-worker/src/worker.rs b/crates/fluxqueue-worker/src/worker.rs index 4931987..7f092f8 100644 --- a/crates/fluxqueue-worker/src/worker.rs +++ b/crates/fluxqueue-worker/src/worker.rs @@ -438,8 +438,9 @@ mod tests { let tasks_path = Path::new("../project/tasks.py"); let normalized_path = normalize_path(tasks_path); let module_path = path_to_module_path(current_dir, &normalized_path); + let expected_path = Path::new("project/tasks.py"); - assert_eq!(normalized_path.to_str(), Some("project/tasks.py")); + assert_eq!(normalized_path, expected_path); assert_eq!(module_path, Some("tasks".to_string())); Ok(())