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

  • Home
  • SEARCH
  • 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 3405522
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:30:57+00:00 2026-05-18T05:30:57+00:00

Hey, I have a problem similar to this one ( click ). Approx 2

  • 0

Hey, I have a problem similar to this one (click).

Approx 2 hours ago Django stopped running my tests. And I have no idea why. I did some refactoring, then got an ImportError and after I reverted the file, Django stopped running any of my tests. I already deleted all the *.pyc files but nothing changed.

The situation:
I organize all my tests in a sperate test-package. The structure is the following:

/app
  /tests
    /model
      __init__.py
      ...
    __init__.py
    ...

The __init__.py files define a suite() method that will return all the tests inside the packages like this:

def suite(): 
    suite = TestSuite()

    suite.addTest(model.suite())
    suite.addTest(user.suite())

    return suite

I tried to debug and set a breakpoint in the topmost __init__.py file in the test-package but this breakpoint is never reached.

Any ideas what I am missing?

  • 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-18T05:30:57+00:00Added an answer on May 18, 2026 at 5:30 am

    Ha.. Now I found the error.

    The problem was, that I ONLY thought I fixed all ImportErrors. When I started a shell using manage.py shell and then tried to import the tests-package I saw some other ImportErrors. Fixed them and now the tests are running again.

    Wished the testrunner would have indicated that something went wrong!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey I have been battling with this problem for a while now. Perhaps there
Hey I have a windows server running python CGI scripts and I'm having a
Hey i have this div that shows as a popup: <div class=popup> </div> Then
Hey. I have an object that has a string property called BackgroundColor. This string
Hey I have a problem comparing the value of a CGPoint (struct with two
Hey I have a problem getting my head around how custom GWT event Handlers
hey all i have a problem in webservice that i am consuming. it takes
Hey guys I have a problem with an app I'm making. The thing is
Hey all - I have an app where I'm authenticating the user. They pass
Hey right now I'm using jQuery and I have some global variables to hold

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.