Re: backend specific tests

2018-11-07 Thread Dan Davis
Tom, I'm interested in this - I have a software architect's goal of getting our Django systems to go to the cloud with Docker, but for Django development, I am eager to clutter up my local box with these tools. I know systemctl quite well, and I have no problem changing postgresql and mysql to b

Re: backend specific tests

2018-11-07 Thread Florian Apolloner
On Wednesday, November 7, 2018 at 12:43:47 AM UTC+1, Dan Davis wrote: > > So, a developer using PostgreSQL doesn't need superuser privileges, but > you do to run Django's unit tests, because it will test these contributed > postgres operations. > I think one might get away with installing tho

Re: backend specific tests

2018-11-07 Thread Tom Forbes
Hey Dan, I’ve been working on a project called django_docker_box ( https://github.com/orf/django-docker-box) that might help with this. Docker is pretty good at spinning up various databases without needing to clutter your local machine, spend time configuring authentication or dealing with issues

Re: backend specific tests

2018-11-06 Thread Dan Davis
What about mysql? I have 5.7 installed, and tried to run with root privileges, which is what worked for postgresql. It still failed quite a number of times. On Tue, Nov 6, 2018 at 7:41 PM charettes wrote: > Exactly. > > Given you should be running tests against a throwaway or at least > non-c

Re: backend specific tests

2018-11-06 Thread charettes
Exactly. Given you should be running tests against a throwaway or at least non-critical PostgreSQL cluster anyway I don't think requiring superuser privileges is an issue. Simon Le mardi 6 novembre 2018 18:43:47 UTC-5, Dan Davis a écrit : > > So, a developer using PostgreSQL doesn't need superu

Re: backend specific tests

2018-11-06 Thread Dan Davis
So, a developer using PostgreSQL doesn't need superuser privileges, but you do to run Django's unit tests, because it will test these contributed postgres operations. On Monday, November 5, 2018 at 5:48:20 PM UTC-5, Josh Smeaton wrote: > > I don't think there's a full list of extensions the test

Re: backend specific tests

2018-11-05 Thread Josh Smeaton
I don't think there's a full list of extensions the test suite uses, but https://docs.djangoproject.com/en/2.1/ref/contrib/postgres/operations/ would be close to a full set I'd imagine. On Sunday, 4 November 2018 14:43:23 UTC+11, Dan Davis wrote: > > So, the contributor guidelines page about uni

backend specific tests

2018-11-03 Thread Dan Davis
So, the contributor guidelines page about unit tests mentions running database specific tests: https://docs.djangoproject.com/en/2.1/internals/contributing/writing-code/unit-tests/#testing-other-python-versions-and-database-backends I am working on ticket 29984, and it seems to me that since the