[drf | filtering] Build a Backend REST API - 47

Hyeseong·2021년 3월 8일
0

Add test for filtering recipes🚅

test🚈

필터 기능을 구현 해보도록 할게요. 3개의 test case를 만들거에요.

test_filter_recipes_by_tags🚝

payload에 tag1.id, tag2.id를 넣어서 조회하는 필터 기능

test_filter_recipes_by_ingredients🚃

payload에 ingredient1.id, ingredient2.id를 넣어서 조회하는 필터 기능

test 돌리면 🚋

아래와 같이 fail이 나게되요.

profile
어제보다 오늘 그리고 오늘 보다 내일...

0개의 댓글