From 90124ec3cf486949c9a310623ce3104c2f1b858d Mon Sep 17 00:00:00 2001 From: Yingbo Ma Date: Thu, 25 Jan 2024 16:38:14 -0500 Subject: [PATCH] Fix tests --- test/model_parsing.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/model_parsing.jl b/test/model_parsing.jl index 240ea2485f..f2a23037d3 100644 --- a/test/model_parsing.jl +++ b/test/model_parsing.jl @@ -329,10 +329,9 @@ end # Ensure that modules consisting MTKModels with component arrays and icons of # `Expr` type and `unit` metadata can be precompiled. module PrecompilationTest -using Unitful, Test, ModelParsingPrecompile +push!(LOAD_PATH, joinpath(@__DIR__, "precompile_test")) +using Unitful, Test, ModelParsingPrecompile, ModelingToolkit @testset "Precompile packages with MTKModels" begin - push!(LOAD_PATH, joinpath(@__DIR__, "precompile_test")) - using ModelParsingPrecompile: ModelWithComponentArray @named model_with_component_array = ModelWithComponentArray()