revsys / django-test-plus

Useful additions to Django's default TestCase

Home Page:https://django-test-plus.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation about CBVTestCase

jambonrose opened this issue · comments

Hi,
In README.rst, the documentation imports CBVTestCase with:

from test_plus import CBVTestCase

This leads to an ImportError in my case.

There appear to be two ways to fix this:

  1. change the documentation to read: from test_plus.test import CBVTestCase
  2. import the CBVTestCase class to the package __init__.py file

I favor the second more than the first. I'm happy to submit a PR.

Thanks for reporting that!