작성
·
147
0
(venv) λ python manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.....E......
======================================================================
ERROR: test_post_detail (blog.tests.TestView)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\user\Desktop\django\github\django_my_website\blog\tests.py", line 254, in test_post_detail
self.assertIn(comment_000.author.username, comments_div.text)
AttributeError: 'NoneType' object has no attribute 'author'
----------------------------------------------------------------------
Ran 12 tests in 9.590s
FAILED (errors=1)
Destroying test database for alias 'default'...
깃헙에 있는 이번 test 복사해서 붙여넣기 했는데 이런 에러가 자꾸 나는데 머가 잘못된건가요?? 그 전까진 에러가 안나다가 왜 이러는지 궁금합니다! 감사합니다.. ㅜㅜ
답변 2
0
0