19 lines
617 B
Python
19 lines
617 B
Python
import sys
|
|
import os
|
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
|
|
|
from modules.market_actions import fetch_sold_products
|
|
from modules.logger import get_logger
|
|
import json
|
|
|
|
def test_fetch_sold_products():
|
|
logger = get_logger()
|
|
# 테스트용 샘플 마켓 URL (실제 운영중인 URL로 변경 가능)
|
|
market_url = "https://smartstore.naver.com/modeuda"
|
|
state = fetch_sold_products(market_url, logger)
|
|
print("Fetched __PRELOADED_STATE__:")
|
|
print(json.dumps(state, indent=4, ensure_ascii=False))
|
|
|
|
if __name__ == "__main__":
|
|
test_fetch_sold_products()
|