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

Hyeseong·2021년 3월 8일
0

Add tests for filtering tags and ingredients 🏁

test_tags_api.py 🚧

Recipe 클래스를 아래와 같이 임포트 할게요.

from core.models import Tag, Recipe

그리고 test를 작성할게요.(가장 하단에 작성)

test_ingredients_api.py 🚥

Recipe 클래스를 아래와 같이 임포트 할게요.

from core.models import Ingredient, Recipe

assigned_only키의 value가 1값만 조회할거에요.

오타가 있네요. assertNoIn -> assertNotIn으로 변경 할 게요.

test 돌리기 🏍

예상 했던 오류가 발생했네요

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

0개의 댓글