API 쿼리 수를 테스트코드로 작성하기

hyuckhoon.ko·2022년 5월 17일
0
from django.db import connection
from rest_framework.test import APIClient


client = APIClient()
url = "엔드포인트 주소"
>>> res = client.get(url)
>>> print(len(connection.queries))
13

0개의 댓글