Improve sysimage.jl

This commit is contained in:
2021-08-19 21:16:57 -05:00
parent 5c3f7b15d3
commit 6c566e0e79
9 changed files with 67 additions and 38 deletions

View File

@@ -4,9 +4,12 @@
using UnitCommitment
basedir = @__DIR__
@testset "read_egret_solution" begin
solution =
UnitCommitment.read_egret_solution("fixtures/egret_output.json.gz")
solution = UnitCommitment.read_egret_solution(
"$basedir/../fixtures/egret_output.json.gz",
)
for attr in ["Is on", "Production (MW)", "Production cost (\$)"]
@test attr in keys(solution)
@test "115_STEAM_1" in keys(solution[attr])