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 8145815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:47:05+00:00 2026-06-06T13:47:05+00:00

My django application is having a handler for each functionality (e.g. Salesinvoice handler for

  • 0

My django application is having a handler for each functionality (e.g. Salesinvoice handler for create/save/retrieve the invoice models with validation).
These handlers are used in the views to perform the action user wanted (e.g. Create invoice).

  1. To ensure reliability of application, Will it be sufficient to unittest only the handlers?
    My idea in the above design is that if i need i can create a commandline interface using the handler instead of webinterface.
    Is this design of the application good to ensure reliably unittest django app?
    User request –> Views –> Handler (Unit test only the handler) –> Model

  2. *Is there any python/django library to automate the testing of views? * My goal is to ensure reliability of application by doing automated testing as much as possible.

  • 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-06-06T13:47:06+00:00Added an answer on June 6, 2026 at 1:47 pm

    I don’t quite understand what you mean with a “handler”. Is it a view? Or a separate function that accepts a request?

    Regarding the testing tools, you could simply use a library like requests to create requests and verify the results. There’s also a builtin test client when using Django’s internal testing framework.

    If you want to actually test the views in your browser, you can use Selenium or webdriver plus, which is a wrapper for Selenium that makes it easier to use.

    Potentially helpful links:

    • http://toastdriven.com/blog/2011/apr/10/guide-to-testing-in-django/
    • http://harry.pythonanywhere.com/tutorial/1/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having difficulties debugging a django/python application that requires a public key to
In a Django application I need to create an order number which looks like:
I'm building a Django application and am trying to integrate JSON, but I'm having
Hi im trying to deploy my django application on heroku , i am having
I'm looking for having urls like http://example.org/!#/followers and http://example.org/!#/following in my django application. All
I'm having trouble logging the output of an internationalized django variable. My application code
I asked a question before on how to create a SaaS application using Django
I am developing a django application.i want to integrate pin it functionality in my
My django application has become painfully slow on the production. Probably it is due
I have a django application which uses a library.py file : library.py a=5 View

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.