Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3352384
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:01:24+00:00 2026-05-18T02:01:24+00:00

When running nosetests, django-nose runner doesn’t supply –with-django option to nosetests , so my

  • 0

When running nosetests, django-nose runner doesn’t supply --with-django option to nosetests, so my nose + Twill tests fail when trying to access URLs:

./manage.py test
...
raise BrowserStateError("cannot go to '%s'" % (url,))
BrowserStateError: cannot go to 'http://127.0.0.1:8088/admin/'
----------------------------------------------------------------------
Ran 2 tests in 0.166s

FAILED (errors=1)

When I supply --with-django manually or set NOSE_WITH_DJANGO=1 enviromental variable, my tests run successfully, but then I receive following exception:

$ ./manage.py test --with-django
...
Ran 2 tests in 0.199s

OK
...
AttributeError: type object 'Template' has no attribute 'original_render'

nosetests --with-django runs tests successfully

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:01:25+00:00Added an answer on May 18, 2026 at 2:01 am

    Turns out the problem was that I used tddspry with django-nose and they both has their own similar setup/teardown plugin, so I subclassed django-nose TestRunner and removed that plugin from defaults.

    To solve this problem, install latest tddspry from official git repository, latest stable django-nose from PyPI and add tddspry TestSuiteRunner to Django settings as follows:

    TEST_RUNNER = 'tddspry.django.runner.TestSuiteRunner'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm use nosetests to run some tests. However, after the tests have finished running,
I am trying to run all pyunit tests in a directory using nosetests. The
I'm running a suite of tests (.py files) using nosetests. Using a classic import
I'm getting this error django.db.utils.IntegrityError: django_content_type.name may not be NULL while running tests via
I have a series of unit tests that I'm running with nose . For
I'm having an issue running unit tests for authorization in a Pylons app. It
running: ruby 1.9.3p0 with Rails 3.2.1 Trying to use rspec but when I try
I am running python nosetests on a foreign module. The dots mean that a
Running zookeeper 3.3.3. I have a znode that I am just trying to list,
Running Ubuntu 11.04 on vagrant, mac os x 10.7.2. Running chef server. Trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.