skip to navigation
skip to content

Not Logged In

django-oscar-testsupport 0.4.1

Testing utilities for Oscar

===========================
Testing utilities for Oscar
===========================

Warning
-------

As of Oscar 0.6, this package has been merged back into Oscar, within the
``oscar/test`` package.  There will be no 0.5 release of this package.

Description
-----------

A simple package to allow the test utils from Oscar to be used by other
packages.

Contents:

* A ``@dataProvider`` decorator for feeding test methods with different
  datasets.  This is a port of a useful PHPUnit feature.

* A ``ClientTestCase`` which provides useful boilerplate functionality for when
  working with Django's test client.  It can set-up users as part of the
  ``setUp`` method.

* A ``WebTestCase``, similar to the ``ClientTestCase`` but for working with
  WebTest.

* Various factory methods for creating orders, products, offers and vouchers.

Install
------

Install with::

   pip install django-oscar-testsupport
 
File Type Py Version Uploaded on Size
django-oscar-testsupport-0.4.1.tar.gz (md5) Source 2014-01-10 5KB
  • Downloads (All Versions):
  • 13 downloads in the last day
  • 155 downloads in the last week
  • 830 downloads in the last month
  • Author: David Winterbottom
  • Home Page: https://github.com/tangentlabs/django-oscar-testsupport
  • License:
    Copyright (c) 2011, Tangent Communications PLC and individual contributors.
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without modification,
    are permitted provided that the following conditions are met:
    
        1. Redistributions of source code must retain the above copyright notice,
           this list of conditions and the following disclaimer.
       
        2. Redistributions in binary form must reproduce the above copyright
           notice, this list of conditions and the following disclaimer in the
           documentation and/or other materials provided with the distribution.
    
        3. Neither the name of Tangent Communications PLC nor the names of its contributors 
    	   may be used to endorse or promote products derived from this software without
           specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
    ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
    ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  • Package Index Owner: codeinthehole.com
  • Package Index Maintainer: elbaschid
  • DOAP record: django-oscar-testsupport-0.4.1.xml