|
|
@@ -27,9 +27,10 @@ testdb = "tests/cmdline-testdb" |
|
|
|
def server_start(max_results = None, bulkdata_args = {}): |
|
|
|
global test_server, test_db |
|
|
|
# Start web app on a custom port |
|
|
|
test_db = nilmdb.NilmDB(testdb, sync = False, |
|
|
|
max_results = max_results, |
|
|
|
bulkdata_args = bulkdata_args) |
|
|
|
test_db = nilmdb.utils.serializer_proxy(nilmdb.NilmDB, |
|
|
|
testdb, sync = False, |
|
|
|
max_results = max_results, |
|
|
|
bulkdata_args = bulkdata_args) |
|
|
|
test_server = nilmdb.Server(test_db, host = "127.0.0.1", |
|
|
|
port = 12380, stoppable = False, |
|
|
|
fast_shutdown = True, |
|
|
|