Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Section: Make it work of Custom Template Tags #151

Open
riseriyo opened this issue Nov 10, 2014 · 1 comment
Open

In Section: Make it work of Custom Template Tags #151

riseriyo opened this issue Nov 10, 2014 · 1 comment

Comments

@riseriyo
Copy link
Contributor

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)

@riseriyo
Copy link
Contributor Author

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant