Majic Projects
Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
Closed Enhancement CONNT-11 Improve tests by through mocking and direct use of views
Go to the next issue (open or closed)
Go to the next open issue
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
  • Category
    Not determined
  • Targetted for
  • Status
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
  • Time spent
    1 day
    Click here to see time logged against this issue
Issue details
  • Resolution
Attachments (0)
There is nothing attached to this issue
Commits (1)
 branko (branko)
Jul 22, 2013 - 20:26
CONNT-11CONNT-11 Converted tests to directly use the views, and implemented mocking of some classes where necessary (like the messages framework). Removed all integration tests for now.
Duplicate issues (0)
This issue does not have any duplicates
The current tests depend heavily on the use of django.test.client.Client class, and some other auxiliary classes from Django. This means that instead of having specific unit tests, the application instead has something more in the line of integration tests.

The test execution speed and reliability could be greatly improved by implementing the unit tests through mocking of real classes where necessary, and directly accessing the view methods and functions instead of submitting through Django test client.
Comments ()
 Guest user (guest)
icon_reply.pngAug 17, 2014, in reply to comment #10
Li Maoyu, an analyst at the Changjiang Securities Co, said the vast majority of consumers in China remain price-conscious. For daily necessities, price changes rattle the nerves. url= outlet/url