def init_test_context(): """ Initializes a test-case context and cleans up workspace location beforehand :return: """ CONFIG['testing'] = True # Delete existing workspaces shutil.rmtree(path.expanduser(CONFIG["workspaces-location"]), ignore_errors=True) reset_db() return __main__.app.test_client()
def test_scan_workspace(): reset_db() scan_workspaces_dir()