Skip to content


Subversion checkout URL

You can clone with
Download ZIP
[Unmaintained] Unobtrusive test models creation for django
Branch: master
Pull request Compare This branch is 55 commits ahead of kmmbvnr:master.

Merge pull request #41 from hovel/master

django 1.8 compatibility
latest commit c1ee4efda9
@GeyseR GeyseR authored
Failed to load latest commit information.
docs Added docs for custom fields generators using parent generators.
tests required secret_key in test
.gitignore Small fixes to contrib docs. Docs are now on pypi
.travis.yml django 1.8 compatibility
LICENSE Updated and LICENCE Minor docs fixes
README.rst This package is no longer maintained
setup.cfg Small fixes to contrib docs. Docs are now on pypi django-whatever is no longer maintained


Unobtrusive test models creation for django

This package is no longer maintained. If you would like to take over, contact me pls.

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)

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

Read more at the docs:

Something went wrong with that request. Please try again.