hack of pytest implementation - doesnt work yet

This commit is contained in:
Leigh Morresi
2021-02-16 21:35:28 +01:00
parent 93ee65fe53
commit 87f4347fe5
6 changed files with 124 additions and 120 deletions

View File

@@ -39,8 +39,14 @@ def main(argv):
datastore_path = arg
# Kinda weird to tell them both where `datastore_path` is right..
# threads can read from disk every x seconds right?
# front end can just save
# We just need to know which threads are looking at which UUIDs
# isnt there some @thingy to attach to each route to tell it, that this route needs a datastore
app_config = {'datastore_path': datastore_path}
datastore = store.ChangeDetectionStore(datastore_path=app_config['datastore_path'])
app = backend.changedetection_app(app_config, datastore)