Beispiel #1
0
#!env python

import sys

from orchester.node import setup


if __name__ == '__main__':
    host = 'localhost'
    port = 5000
    app = setup()
    if len(sys.argv) >= 2:
        host = sys.argv[1]
    if len(sys.argv) >= 3:
        port = int(sys.argv[2])
    app.run(host=host, port=port, debug=True)
Beispiel #2
0
 def setUp(self):
     self.app = node.setup().test_client()