작성
·
354
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>