-
카테고리
-
세부 분야
풀스택
-
해결 여부
미해결
test 결과 두 가지 error 가 발생했습니다. 뭐가 잘못된 건지 도저히 모르겠습니다.
21.04.14 05:33 작성 조회수 244
0
ERROR: test_post_detail (blog.tests.TestView)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\sungk\Git\django_website\blog\tests.py", line 276, in test_post_detail
self.assertIn(post_000.title, main_div)
File "C:\Users\sungk\AppData\Local\Programs\Python\Python39\lib\unittest\case.py", line 1095, in assertIn
if member not in container:
TypeError: argument of type 'NoneType' is not iterable
======================================================================
FAIL: test_tag (blog.tests.TestModel)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\sungk\Git\django_website\blog\tests.py", line 94, in test_tag
self.assertEqual(tag_001.post_set.first(), post_001) # 하나의 tag는 자신을 가진 post들을 불러올 수 있다.
AssertionError: <Post: The first post :: smith> != <Post: Stay Fool, Stay Hungry :: smith>
답변을 작성해보세요.
0
답변 1