Skip to content

Commit

Permalink
test: use MyMockModule for testing parent-module
Browse files Browse the repository at this point in the history
  • Loading branch information
ven-k committed Mar 4, 2024
1 parent 53fabfc commit a4a79ce
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/model_parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -689,14 +689,6 @@ end
@test getdefault(component.written_out_for_2.sc) == 3
end

module GetParentModule

using ModelingToolkit

@mtkmodel Component begin end

end

@testset "Parent module of Models" begin
@test parentmodule(GetParentModule.Component) == GetParentModule
@test parentmodule(MyMockModule.Ground) == MyMockModule
end

0 comments on commit a4a79ce

Please sign in to comment.