- wholesale 패키지 연동 (SooinSession, GeoYoungSession) - Flask Blueprint 분리 (sooin_api.py, geoyoung_api.py) - order_context 스키마 확장 (wholesaler_id, internal_code 등) - 수인약품 개별 취소 기능 (cancel_item, restore_item) - 문서 추가: WHOLESALE_API_INTEGRATION.md - 테스트 스크립트들
26 lines
745 B
Python
26 lines
745 B
Python
# -*- coding: utf-8 -*-
|
|
"""Flask Blueprint 테스트"""
|
|
import wholesale_path
|
|
from geoyoung_api import geoyoung_bp, get_geo_session
|
|
from sooin_api import sooin_bp, get_sooin_session
|
|
|
|
print('=== Flask Blueprint 테스트 ===\n')
|
|
|
|
# Blueprint 확인
|
|
print(f'지오영 Blueprint: {geoyoung_bp.name} ({geoyoung_bp.url_prefix})')
|
|
print(f'수인약품 Blueprint: {sooin_bp.name} ({sooin_bp.url_prefix})')
|
|
|
|
# 세션 함수 확인
|
|
geo_session = get_geo_session()
|
|
sooin_session = get_sooin_session()
|
|
|
|
print(f'\n지오영 세션: {geo_session}')
|
|
print(f'수인약품 세션: {sooin_session}')
|
|
|
|
# 라우트 확인
|
|
print('\n지오영 라우트:')
|
|
for rule in geoyoung_bp.deferred_functions:
|
|
print(f' - {rule}')
|
|
|
|
print('\n✅ Blueprint 로드 성공!')
|