Skip to content

Commit a1d00c2

Browse files
dqpinelJon Vegard Venås
authored andcommitted
Add initial test of inheritance of descriptive names
1 parent d571f27 commit a1d00c2

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

test/test_interactivity.jl

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,26 +98,19 @@ pin_plot_button = get_button(gui, :pin_plot)
9898
descriptive_names_raw =
9999
YAML.load_file(path_to_descriptive_names; dicttype = Dict{Symbol,Any})
100100
str1 = "Relative fixed operating expense per installed capacity"
101-
str2 = "Initial stored energy in the dam"
102-
gui3 = GUI(
101+
gui2 = GUI(
103102
case;
104103
path_to_descriptive_names = path_to_descriptive_names,
105104
)
106105
@test descriptive_names_raw[:structures][:Node][:opex_fixed] == str1
107106
@test :StorCapOpexFixed keys(descriptive_names_raw[:structures])
108107
@test :RefNetworkNode keys(descriptive_names_raw[:structures])
109108

110-
@test descriptive_names_raw[:structures][:HydroStorage][:level_init] == str2
111-
@test :HydroStor keys(descriptive_names_raw[:structures])
112-
@test :PumpedHydroStor keys(descriptive_names_raw[:structures])
113-
114-
descriptive_names = EMGUI.get_var(gui3, :descriptive_names)
109+
descriptive_names = EMGUI.get_var(gui2, :descriptive_names)
110+
@test :Node keys(descriptive_names[:structures])
115111
@test descriptive_names[:structures][:StorCapOpexFixed][:opex_fixed] == str1
116112
@test descriptive_names[:structures][:RefNetworkNode][:opex_fixed] == str1
117-
118-
@test descriptive_names[:structures][:HydroStor][:level_init] == str2
119-
@test descriptive_names[:structures][:PumpedHydroStor][:level_init] == str2
120-
EMGUI.close(gui3)
113+
EMGUI.close(gui2)
121114
end
122115
end
123116

0 commit comments

Comments
 (0)