On Tue, May 12, 2015 at 4:01 PM, Abhijit Chatterjee <[email protected]> wrote: > Idk if this is the right forum to post this question but I have been > fiddling around with: > > https://pypi.python.org/pypi/django-standalone > > Is django-standalone is only to test ORM? Or we can also test our controller > function as well?
django-standalone seems to be for running django without a project. You should test your "controller function", whatever that is, by writing unit tests that exercise its functionality, ideally mocking calls to the ORM - assume the ORM works. The ORM has hundreds of tests, they are contained within Django itself. The ORM is well tested, you should not need to test it yourself. IE, tests that save an object to the database and then test that the database saved it are not useful. You can run the django testsuite yourself, see here for details: https://docs.djangoproject.com/en/1.8/internals/contributing/writing-code/unit-tests/ It is usually only necessary if you are modifying django internals. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1KL_jc%2BiWGPD%3DM6v2S12vz%2B7hAPnpRHoCzsV2hfrRMA7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

