Skip to content

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

@riseriyo

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions