Skip to content

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

Description

@riseriyo

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions