|
@@ -270,7 +270,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"exit",
|
|
|
# revise_control
|
|
|
"upload",
|
|
|
- ] + get_model_constructor_2("models/control_model_wrong.mvc") + [
|
|
|
+ ] + get_model_constructor_2("models/control_model.mvc") + [
|
|
|
"exit",
|
|
|
# revise_query
|
|
|
"upload",
|
|
@@ -680,6 +680,7 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"upload",
|
|
|
] + get_model_constructor_2("models/requirements_model.mvc") + [
|
|
|
"exit",
|
|
|
+ #### First phase!
|
|
|
# revise_plant
|
|
|
"upload",
|
|
|
] + get_model_constructor_2("models/plant_model.mvc") + [
|
|
@@ -700,6 +701,27 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"upload",
|
|
|
] + get_model_constructor_2("models/architecture_model.mvc") + [
|
|
|
"exit",
|
|
|
+ #### Second phase!
|
|
|
+ # revise_plant
|
|
|
+ "upload",
|
|
|
+ ] + get_model_constructor_2("models/plant_model.mvc") + [
|
|
|
+ "exit",
|
|
|
+ # revise_environment
|
|
|
+ "upload",
|
|
|
+ ] + get_model_constructor_2("models/environment_model.mvc") + [
|
|
|
+ "exit",
|
|
|
+ # revise_control
|
|
|
+ "upload",
|
|
|
+ ] + get_model_constructor_2("models/control_model.mvc") + [
|
|
|
+ "exit",
|
|
|
+ # revise_query
|
|
|
+ "upload",
|
|
|
+ ] + get_model_constructor_2("models/query_model.mvc") + [
|
|
|
+ "exit",
|
|
|
+ # revise_architecture
|
|
|
+ "upload",
|
|
|
+ ] + get_model_constructor_2("models/architecture_model.mvc") + [
|
|
|
+ "exit",
|
|
|
],
|
|
|
[ # bootup phase
|
|
|
"Desired username for admin user?",
|
|
@@ -871,6 +893,42 @@ class TestPowerWindow(unittest.TestCase):
|
|
|
"Waiting for model constructors...",
|
|
|
"Please give your command.",
|
|
|
# Computations happen without output
|
|
|
+ # Got an error!
|
|
|
+ # Manual transformation revise_plant
|
|
|
+ "Please perform manual transformation \"revise_plant\"",
|
|
|
+ "Model loaded, ready for commands!",
|
|
|
+ "Use 'help' command for a list of possible commands",
|
|
|
+ "Please give your command.",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Please give your command.",
|
|
|
+ # Manual transformation revise_environment
|
|
|
+ "Please perform manual transformation \"revise_environment\"",
|
|
|
+ "Model loaded, ready for commands!",
|
|
|
+ "Use 'help' command for a list of possible commands",
|
|
|
+ "Please give your command.",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Please give your command.",
|
|
|
+ # Manual transformation revise_control
|
|
|
+ "Please perform manual transformation \"revise_control\"",
|
|
|
+ "Model loaded, ready for commands!",
|
|
|
+ "Use 'help' command for a list of possible commands",
|
|
|
+ "Please give your command.",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Please give your command.",
|
|
|
+ # Manual transformation revise_query
|
|
|
+ "Please perform manual transformation \"revise_query\"",
|
|
|
+ "Model loaded, ready for commands!",
|
|
|
+ "Use 'help' command for a list of possible commands",
|
|
|
+ "Please give your command.",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Please give your command.",
|
|
|
+ # Manual transformation revise_architecture
|
|
|
+ "Please perform manual transformation \"revise_architecture\"",
|
|
|
+ "Model loaded, ready for commands!",
|
|
|
+ "Use 'help' command for a list of possible commands",
|
|
|
+ "Please give your command.",
|
|
|
+ "Waiting for model constructors...",
|
|
|
+ "Please give your command.",
|
|
|
# Finished, so we go back to the start
|
|
|
"Ready for command...",
|
|
|
]))
|