Add an option to running concrete controllers that bypasses the model. For example:
class Multiply(GiottoProgram):
name = 'multiply'
model = [multiply]
model_mock = {'x': 4, 'y': 5, 'product': 20}
view = [MultiplyViewer]
controllers = ('cmd')
When running the http-dev controller, you pass in a --mock-model argument, which means all programs return the model_mock value regardless of the controller data.
Add an option to running concrete controllers that bypasses the model. For example:
When running the http-dev controller, you pass in a
--mock-model
argument, which means all programs return themodel_mock
value regardless of the controller data.