From e1fb63d6c4bc930a7ff1a75475df676fb8486e1a Mon Sep 17 00:00:00 2001 From: vikingowl Date: Tue, 30 Dec 2025 06:22:04 +0100 Subject: [PATCH] fix(tests): make runtime tests environment-agnostic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests now verify functions don't panic rather than assuming runtimes aren't installed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- crates/owlry/src/plugins/runtime_loader.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/crates/owlry/src/plugins/runtime_loader.rs b/crates/owlry/src/plugins/runtime_loader.rs index 22f4136..de62fcd 100644 --- a/crates/owlry/src/plugins/runtime_loader.rs +++ b/crates/owlry/src/plugins/runtime_loader.rs @@ -271,14 +271,16 @@ mod tests { use super::*; #[test] - fn test_lua_runtime_not_installed() { - // In test environment, runtime shouldn't be installed - assert!(!lua_runtime_available()); + fn test_lua_runtime_check_doesnt_panic() { + // Just verify the function runs without panicking + // Result depends on whether runtime is installed + let _available = lua_runtime_available(); } #[test] - fn test_rune_runtime_not_installed() { - // In test environment, runtime shouldn't be installed - assert!(!rune_runtime_available()); + fn test_rune_runtime_check_doesnt_panic() { + // Just verify the function runs without panicking + // Result depends on whether runtime is installed + let _available = rune_runtime_available(); } }