diff --git a/tests/test_server.py b/tests/test_server.py index 4eec006..8acb161 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -54,29 +54,15 @@ UA = re.compile(r"^kopling\/?", re.IGNORECASE) async def run_update(): - set_list = await sq.acat2id(SQUARE_LEGO_CAT_ID) # type: ignore - # print(f"[@DEBUG]\t {set_list}") # type: ignore - for l_set in set_list: - # print(f"[@DEBUG]{l_set}") - try: - l_setinfo = await lego.throttled_get_set(l_set["number"]) - print(f"[@DEBUG] Found {l_setinfo["pw_name"]}") - except Exception as e: - print(f"Error fetching set\t: {l_set}: {str(e)}") - continue + """ + DEPRECATED: Use glue.enrich_bulk() instead - # print(f"[@DEBUG]{l_setinfo}") - # await sq.update_itm(l_set, l_setinfo) - """for l_set in set_list: - print(f"[@DEBUG]{l_set}") - try: - l_setinfo = await lego.throttled_get_set(l_set["number"]) - except Exception as e: - print(f"Error fetching set\t: {l_set}: {str(e)}") - continue + Legacy RUNUPDATE command handler - kept for backwards compatibility + but now delegates to the new glue.enrich_bulk() function + """ + from src import glue - print(f"[@DEBUG]{l_setinfo}")""" - # await sq.update_itm(l_set, l_setinfo) + await glue.enrich_bulk() def valid_uuid(val):