From 3ca3d2206c31ed251474d66b6775fa0903c09eae Mon Sep 17 00:00:00 2001 From: Preston Timmons Date: Sat, 6 Apr 2013 13:43:31 -0500 Subject: [PATCH] Modified generic_views for unittest2 discovery. --- tests/generic_views/{base.py => test_base.py} | 0 tests/generic_views/{dates.py => test_dates.py} | 0 tests/generic_views/{detail.py => test_detail.py} | 0 tests/generic_views/{edit.py => test_edit.py} | 0 tests/generic_views/{forms.py => test_forms.py} | 0 tests/generic_views/{list.py => test_list.py} | 0 tests/generic_views/tests.py | 10 +++++----- tests/generic_views/views.py | 2 +- 8 files changed, 6 insertions(+), 6 deletions(-) rename tests/generic_views/{base.py => test_base.py} (100%) rename tests/generic_views/{dates.py => test_dates.py} (100%) rename tests/generic_views/{detail.py => test_detail.py} (100%) rename tests/generic_views/{edit.py => test_edit.py} (100%) rename tests/generic_views/{forms.py => test_forms.py} (100%) rename tests/generic_views/{list.py => test_list.py} (100%) diff --git a/tests/generic_views/base.py b/tests/generic_views/test_base.py similarity index 100% rename from tests/generic_views/base.py rename to tests/generic_views/test_base.py diff --git a/tests/generic_views/dates.py b/tests/generic_views/test_dates.py similarity index 100% rename from tests/generic_views/dates.py rename to tests/generic_views/test_dates.py diff --git a/tests/generic_views/detail.py b/tests/generic_views/test_detail.py similarity index 100% rename from tests/generic_views/detail.py rename to tests/generic_views/test_detail.py diff --git a/tests/generic_views/edit.py b/tests/generic_views/test_edit.py similarity index 100% rename from tests/generic_views/edit.py rename to tests/generic_views/test_edit.py diff --git a/tests/generic_views/forms.py b/tests/generic_views/test_forms.py similarity index 100% rename from tests/generic_views/forms.py rename to tests/generic_views/test_forms.py diff --git a/tests/generic_views/list.py b/tests/generic_views/test_list.py similarity index 100% rename from tests/generic_views/list.py rename to tests/generic_views/test_list.py diff --git a/tests/generic_views/tests.py b/tests/generic_views/tests.py index 3f80600efe..244aa3c701 100644 --- a/tests/generic_views/tests.py +++ b/tests/generic_views/tests.py @@ -1,11 +1,11 @@ from __future__ import absolute_import -from .base import (ViewTest, TemplateViewTest, RedirectViewTest, +from .test_base import (ViewTest, TemplateViewTest, RedirectViewTest, GetContextDataTest) -from .dates import (ArchiveIndexViewTests, YearArchiveViewTests, +from .test_dates import (ArchiveIndexViewTests, YearArchiveViewTests, MonthArchiveViewTests, WeekArchiveViewTests, DayArchiveViewTests, DateDetailViewTests) -from .detail import DetailViewTest -from .edit import (FormMixinTests, BasicFormTests, ModelFormMixinTests, +from .test_detail import DetailViewTest +from .test_edit import (FormMixinTests, BasicFormTests, ModelFormMixinTests, CreateViewTests, UpdateViewTests, DeleteViewTests) -from .list import ListViewTests +from .test_list import ListViewTests diff --git a/tests/generic_views/views.py b/tests/generic_views/views.py index 856565a953..69bfcb32dd 100644 --- a/tests/generic_views/views.py +++ b/tests/generic_views/views.py @@ -7,7 +7,7 @@ from django.core.urlresolvers import reverse, reverse_lazy from django.utils.decorators import method_decorator from django.views import generic -from .forms import AuthorForm, ContactForm +from .test_forms import AuthorForm, ContactForm from .models import Artist, Author, Book, Page, BookSigning