sandiegopython / test-driven-django-development

This repository contains materials for a San Diego Python workshop on learning Django with test inspired development
http://test-driven-django-development.readthedocs.org/
Other
102 stars 35 forks source link

Add reference to class variable #159

Closed surfer190 closed 6 years ago

surfer190 commented 6 years ago

The test failed with the following:

Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.....E...............
======================================================================
ERROR: test_entry_shows_up (blog.tests.EntryHistoryTagTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/projects/tdd-django/myblog/blog/tests.py", line 168, in test_entry_shows_up
    entry = Entry.objects.create(author=user, title="My Entry Title")
NameError: name 'user' is not defined
surfer190 commented 6 years ago

Whoops, oh I see there is a reason you left it out.