Skip to content

Commit

Permalink
Minor test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielKS committed Nov 1, 2024
1 parent 6bf2fed commit 7cdb451
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function run_tests()
end

# Testing Topological components of the schema
@time @testset "Begin PowerSystems tests" begin
@time @testset "Begin PowerFlows tests" begin
@includetests ARGS
end

Expand Down
7 changes: 5 additions & 2 deletions test/test_powerflow_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ end
data_modified,
)

# The big one: update_system! with modified PowerFlowData should result in sys_modified
# The big one: update_system! with modified PowerFlowData should result in sys_modified,
# modulo information that is inherently lost in the PowerFlowData representation
sys_modify_updated = deepcopy(sys_original)
PF.update_system!(sys_modify_updated, data_modified)
@test IS.compare_values(powerflow_match_fn, sys_modify_updated, sys_modified)
sys_mod_redist = deepcopy(sys_modified)
PF.update_system!(sys_mod_redist, PowerFlowData(ACPowerFlow(), sys_mod_redist))
@test IS.compare_values(powerflow_match_fn, sys_modify_updated, sys_mod_redist)
end

0 comments on commit 7cdb451

Please sign in to comment.