You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This correction seems to be needed as later on we are asking reader to run tests again and that all tests should pass at this point -- before section "Making it a bit more robust".
Incorrect code... add self.user instead of user
Change from:
def test_entry_shows_up(self):
entry = Entry.objects.create(author=user, title="My entry title") <===== change this
rendered = self.TEMPLATE.render(Context({}))
self.assertIn(entry.title, rendered)
to:
def test_entry_shows_up(self):
entry = Entry.objects.create(author=self.user, title="My entry title") <===== to this
rendered = self.TEMPLATE.render(Context({}))
self.assertIn(entry.title, rendered)
The text was updated successfully, but these errors were encountered: