Example #1
0
 def on_apps_requested(self) -> str:
     db = DataStore(DataStore.get_db_connection(self._db_conn_str))
     return json.dumps(list(map(lambda x: x.json(), db.get_apps())))
Example #2
0
 def setUp(self) -> None:
     store = DataStore(DBConnection(self.get_db_conn()))
     for app in store.get_apps():
         store.delete_app(app.app_id)