Skip to content

Commit a9991dd

Browse files
committed
test: use MyMockModule for testing parent-module
1 parent ea3477b commit a9991dd

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/model_parsing.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -590,14 +590,6 @@ end
590590
@test getdefault(component.written_out_for_2.sc) == 3
591591
end
592592

593-
module GetParentModule
594-
595-
using ModelingToolkit
596-
597-
@mtkmodel Component begin end
598-
599-
end
600-
601593
@testset "Parent module of Models" begin
602-
@test parentmodule(GetParentModule.Component) == GetParentModule
594+
@test parentmodule(MyMockModule.Ground) == MyMockModule
603595
end

0 commit comments

Comments
 (0)