GDAPS

2019-06-15 Thread Christian González
Hi all,

sorry, I never managed to introduce myself properly to this mailing
list. Christian Gonzalez, more or less hobby programmer, MD as day job.
I maybe never will add something substantial to Django core itself, but
ATM "scratching my own itch" here:

Just wanted to say that I finished "Alpha state" for GDAPS - my "Generic
Django Apps Plugin System" which is an "enhancement" of Django's app
system, enabling Django to create "pluggable", extendable applications
with ease.

Just have a look at https://pypi.org/project/gdaps/

Thoughts, criticism welcome.

Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/d251dbee-bc4f-3325-a7bb-bb9d1f996cb1%40nerdocs.at.
For more options, visit https://groups.google.com/d/optout.


pEpkey.asc
Description: application/pgp-keys


Re: How to test whether a formset instance is properly initialized

2019-06-15 Thread Carlton Gibson
Hey Parth, 

>  I'm currently using a python shell to create objects and then check manually 
> its attributes, etc.

More or less, do the same thing, but in a test case. 🙂

# Declare class

# Create instance

# self.assertEqual()/assertIs()/etc expected attributes. 
# … same but for behaviour too. (Give it some data, is_valid(), etc)

Look in tests/forms_tests/tests/test_formsets/py::FormsFormsetTestCase. 
There are cases there using formset_factory(). Your versions will just declare 
the FormSet instead. 

Hope that helps.
If you have difficulties, open a PR with what you’ve got: it may be easier to 
help you there. 

Kind Regards,

Carlton


> On 15 Jun 2019, at 07:04, PARTH PATIL  wrote:
> 
> I'm currently working on ticket #10403 
>  -- Declarative syntax for 
> Formsets
> 
> How to test whether a formset instance is correctly initialized??
> 
> The thing which I'm trying to achieve is to initiate a formset without using 
> formset_factory(). I'm able to create objects of class derived from the 
> BaseFormSet, but its really difficult for me to check whether it is properly 
> initiated or not as expected from a formset instance.
> 
> Should I write tests for this??
> And if yes, which all parameter values should I assert in the test to 
> conclude that my formset instance is indistinguishable from the one created 
> using formset_factory.
> 
> Also is there any better way to test this? I'm currently using a python shell 
> to create objects and then check manually its attributes, etc. which I know 
> is not a good way. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-developers+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to django-developers@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-developers 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/583effcf-041e-4d30-9693-62a8f9559901%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 developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/9EE0DD77-54A3-4E41-8175-ACD275C5E0A4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.