def test_bootstrap(self, mocker):
     app = mocker.MagicMock()
     bootstrap(app, ["-l", "192.168.0.1", "-p", "3333"])
     app.run.assert_called_with(host='192.168.0.1', port='3333')
Exemple #2
0
def main():
    bootstrap(app)
Exemple #3
0
def main():
    bootstrap(app)
 def test_bootstrap(self, mocker):
     app = mocker.MagicMock()
     bootstrap(app, ["-l", "192.168.0.1", "-p", "3333"])
     app.run.assert_called_with(host="192.168.0.1", port="3333")