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, you could 
use this cookie cutter template [3] if you don't want to set it up manually 
yourself. It's probably the closest thing you'll find to a "standard".

[1] http://peak.telecommunity.com/DevCenter/setuptools#test
[2] 
http://joebergantine.com/blog/2015/dec/03/test-reusable-django-application-support-multiple-/
[3] https://github.com/pydanny/cookiecutter-djangopackage

On Tuesday, 21 March 2017 09:38:41 UTC+11, th...@copperleaf.com wrote:
>
> I am working on a Django library (which will be packaged) and want to set 
> up testing for it. Looking at a number of existing Django libraries, here 
> seem to be a number of ways to set up testing, and all of them are 
> different.
>
> Are there any best practices? Is there a guide that specifies how it 
> should be done?
>
> T
>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e32424cb-8b12-455e-8f16-f73a850d7c26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Testing a Django library

2017-03-22 Thread Jani Tiainen

Hi,

Tox is quite neat test wrapper makes which easy to test code against 
multiple versions of Python and Django.



On 21.03.2017 00:38, th...@copperleaf.com wrote:
I am working on a Django library (which will be packaged) and want to 
set up testing for it. Looking at a number of existing Django 
libraries, here seem to be a number of ways to set up testing, and all 
of them are different.


Are there any best practices? Is there a guide that specifies how it 
should be done?


T

--
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 django-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/500f7758-2beb-4248-b316-912df984e57b%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
Jani Tiainen

--
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8a810dab-8edc-a8c3-828c-ef2bcbcf9024%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Testing a Django library

2017-03-21 Thread Avraham Serour
What are the different approaches you found?

I created a simple minimal project inside the tests folder


On Mar 21, 2017 9:59 PM, "bobhaugen"  wrote:

> Very interesting topic. We will be facing the same problem soon, and will
> hope to learn from your experience. Got a code repository yet?
> We're at https://github.com/django-rea
> If and when we have some good answers, I'll report back here.
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/abec25d4-6f05-4749-ac12-9d350d5ce8ad%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tK_6SR7CrpCL4iy7Opt5A0-TzTSxoQ4px%2B7rsrgYNxNBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Testing a Django library

2017-03-21 Thread bobhaugen
Very interesting topic. We will be facing the same problem soon, and will 
hope to learn from your experience. Got a code repository yet?
We're at https://github.com/django-rea
If and when we have some good answers, I'll report back here.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/abec25d4-6f05-4749-ac12-9d350d5ce8ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Testing a Django library

2017-03-20 Thread thauk
I am working on a Django library (which will be packaged) and want to set 
up testing for it. Looking at a number of existing Django libraries, here 
seem to be a number of ways to set up testing, and all of them are 
different.

Are there any best practices? Is there a guide that specifies how it should 
be done?

T

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/500f7758-2beb-4248-b316-912df984e57b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.