Hi all,
i looked into the *setup_databases()*  code, here it basically checks for
MIRROR,,if db is a mirror ,then it simply points to it or else creates test
db,,,where dis *SUPPORTS_TRANSACTIONS *check is happening..?

trace-out shows its present in testcases.py,,but how *setup_database* gets
there..?,,

im a newbie to django,,so don't mind if it sounds simple ...

On Thu, Oct 7, 2010 at 12:41 PM, girish shabadimath <
girishmss.1...@gmail.com> wrote:

> Hi Russ,
>
> Thanks for the reply
>
>
> On Thu, Oct 7, 2010 at 11:09 AM, Russell Keith-Magee <
> russ...@keith-magee.com> wrote:
>
>> On Thu, Oct 7, 2010 at 1:32 PM, girish shabadimath
>> <girishmss.1...@gmail.com> wrote:
>> > Hi all,
>> >
>> > im using django 1.2
>> >
>> > i dont want django to create test_db for testing, instead should use the
>> > main database
>> >
>> > i have override  run_tests method to do unit tests,,,
>> > here is the run_tests code:
>> >
>> > class Custom_TestSuiteRunner(DjangoTestSuiteRunner):
>> >
>> >    def run_tests(self, test_labels, extra_tests=None, **kwargs):
>> >
>> >       self.setup_test_environment()
>> >       suite = self.build_suite(test_labels, extra_tests)
>> >       #old_config = self.setup_databases()         commented to use main
>> > database
>>
>> Before you start randomly commenting out code, you might want to check
>> out what the code actually does.
>>
>> Part of the process of creating a test database is to verifies the
>> capabilities of the database -- most notably, whether the database
>> supports transactions, which has a profound effect on the operation of
>> subsequent test cases.
>>
>> If you don't want to use a separate test database, then you'll need to
>> replicate the feature validation logic. If you don't, you'll get
>> exactly the error you describe.
>>
>> Yours,
>> Russ Magee %-)
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
>
> --
> Girish M S
>



-- 
Girish M S

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to