Re: Testing a Django library

2017-03-23 Thread Josh Crompton
There's no Django community standard of which I'm aware for doing this. There *is* a standard way to run tests for Python projects which use setuptools (which yours should do if you want people to be able to `pip install` it) [1]. I usually do something like this blog post describes [2]. Or,

Re: django in docker

2016-07-05 Thread Josh Crompton
Rather than making everything world-readable, I usually create a user and chown all the directories to that user. Can you post your Dockerfile? On Wed, Jul 6, 2016 at 5:28 AM, Larry Martell wrote: > I am trying to run nginx/uwsgi/django in a docker container. If I >

Re: Django testing strategy

2012-10-05 Thread Josh Crompton
There are a couple of problems with setting up a big database and then writing integration tests. Your tests will be slow, so they won't get run. They'll also be increasingly hard to maintain. Fixtures only seem make that worse. You've already got a code base that needs maintaining, you don't