Wednesday, July 20, 2016

Re: Running Django tests for postgres_tests

You need to use a custom settings module that uses the postgresql database backend.

https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#using-another-settings-module

On Tuesday, July 19, 2016 at 11:37:35 PM UTC-4, premdjango wrote:

I'm trying to run django tests for a particular module - postgres_tests. The tests runs but it says it skipped=312 tests, I believe none of the test case run.


How do I fix this issue?




(djangodev) Anands-MBP:tests laks$ ./runtests.py postgres_tests

Testing against Django installed in '/Users/premanandlakshmanan/Documents/django-contribute/django/django' with up to 8 processes

Creating test database for alias 'default'...

Cloning test database for alias 'default'...

Cloning test database for alias 'default'...

Cloning test database for alias 'default'...

Cloning test database for alias 'default'...

Cloning test database for alias 'default'...

Cloning test database for alias 'default'...

Cloning test database for alias 'default'...

Cloning test database for alias 'default'...

Creating test database for alias 'other'...

Cloning test database for alias 'other'...

Cloning test database for alias 'other'...

Cloning test database for alias 'other'...

Cloning test database for alias 'other'...

Cloning test database for alias 'other'...

Cloning test database for alias 'other'...

Cloning test database for alias 'other'...

Cloning test database for alias 'other'...

ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss

----------------------------------------------------------------------

Ran 312 tests in 0.149s


OK (skipped=312)

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'default'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

Destroying test database for alias 'other'...

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2b7bfb89-8fcb-4598-9329-087331ff8dc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment