Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-whatever

How to install django-whatever

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-whatever
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.0
0.2.3 Failed View build log
0.2.2 Failed View build log
0.2.1 Failed View build log
0.2.0 Available View build log
0.1.0 Available View build log
Windows (64-bit)
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Failed View build log
0.2.0 Available View build log
0.1.0 Available View build log
Mac OS X (10.5+)
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Failed View build log
0.2.0 Available View build log
0.1.0 Available View build log
Linux (32-bit)
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Failed View build log
0.2.0 Available View build log
0.1.0 Available View build log
Linux (64-bit)
0.2.3 Available View build log
0.2.2 Available View build log
0.2.1 Failed View build log
0.2.0 Available View build log
0.1.0 Available View build log
 
Author
License
MIT License
Lastest release
version 0.2.3 on Jan 23rd, 2012

django-whatever is a friendly fork of django-any package written by Mikhail Podgurskiy (kmmbvnr) The purpose of the fork is to fix most annoying bugs and add some features To remain compatible with original package django-whatever retains same namespace: django_any.

django-whatever is explicit replacement for old-style, big and error-prone implicit fixture files.

django-whatever allows you to specify only fields important for tests and fills the rest randomly with acceptable values.

It makes tests clean and easy to understand, without reading fixture files.:

from django_any import any_model

class TestMyShop(TestCase):
    def test_order_updates_user_account(self):
        account = any_model(Account, amount=25, user__is_active=True)
        order = any_model(Order, user=account.user, amount=10)
        order.proceed()

        account = Account.objects.get(pk=account.pk)
        self.assertEquals(15, account.amount)

Read more at the docs: http://django-whatever.readthedocs.org/

Subscribe to package updates

Last updated Jan 23rd, 2012

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.