Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discover runner part of 1.6 now? #76

Open
splummer opened this issue Feb 23, 2014 · 6 comments
Open

discover runner part of 1.6 now? #76

splummer opened this issue Feb 23, 2014 · 6 comments

Comments

@splummer
Copy link

according to the discover runner site, isn't discover runner part of 1.6 now and not required in the sample project?

@pydanny
Copy link
Member

pydanny commented Feb 23, 2014

Yup. I just haven't had time to extract it. 😩

Seriously, I need to find a way to make more open source time.

@splummer
Copy link
Author

I ran into because I am trying to clear this error I get when starting run server (full disclosure I am running 1.7a2):

WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
    HINT: Django 1.6 introduced a new default test runner. It looks like this project was generated using Django 1.5 or earlier. You should ensure your tests are all running & behaving as expected. See https://docs.djangoproject.com/en/dev/releases/1.6/#discovery-of-tests-in-any-test-module for more information.

Even ager changing to the built in discover runner I can't seem to get the error to go away. Sorry I am very new to Python and Django so am not sure where I am going wrong.

@splummer
Copy link
Author

If your book is any indication, I think we all wish you had more time to do open source!

@pydanny
Copy link
Member

pydanny commented Feb 23, 2014

I would create a new virtualenv and use Django 1.6. Why? Well, 1.7 is at the alpha stage. Things just won't work reliably, especially here. ;-)

@pmav99
Copy link

pmav99 commented May 21, 2014

This warning gets triggered here (this is the test). In order to get rid of it when you run python manage.py check you need to add the following line on settings.py

########## TESTRUNNER CONFIGURATION
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
########## END TESTRUNNER CONFIGURATION

Tested under django 1.7

@wldcordeiro
Copy link

@pmav99 while you can do that, there's no reason to. You should just remove it from your requirements because it is now integrated into Django itself as of 1.6 on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants