Re: [Django] #14677: tests.py cannot be split to package always

2011-01-25 Thread Django
#14677: tests.py cannot be split to package always
+---
  Reporter:  Ciantic| Owner:  nobody
Status:  closed | Milestone:
 Component:  Testing framework  |   Version:  SVN   
Resolution:  wontfix|  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by russellm):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 @carljm makes a fair point. Django's test suite puts models in tests.py,
 but that isn't a documented capability, and it has some fairly nasty side
 effects (not the least of which is dirtying of the content types and app
 cache).

 I'm going to marking this closed wontfix; it's an undocumented capability,
 and rather than paper over the problem, we should be focussing on #7835 to
 provide the "real" solution.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14677: tests.py cannot be split to package always

2011-01-24 Thread Django
#14677: tests.py cannot be split to package always
+---
  Reporter:  Ciantic| Owner:  nobody
Status:  new| Milestone:
 Component:  Testing framework  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Comment (by carljm):

 This is parallel to #4470, which should be fixed by merging the GSOC
 branch to fix #3591. In the meantime the same workaround (explicit
 Meta.app_label on the models) works just as well.

 It's also possible (I haven't tested) that the #3591 GSOC branch might
 break the technique of putting models in tests.py entirely; as far as I
 know that technique has never been documented or officially supported.
 Though perhaps it should be; seems like a relatively clean solution for
 #7835.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14677: tests.py cannot be split to package always

2011-01-24 Thread Django
#14677: tests.py cannot be split to package always
+---
  Reporter:  Ciantic| Owner:  nobody
Status:  new| Milestone:
 Component:  Testing framework  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by mmcnickle):

 * cc: mmcnickle (added)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #14677: tests.py cannot be split to package always

2010-12-30 Thread Django
#14677: tests.py cannot be split to package always
+---
  Reporter:  Ciantic| Owner:  nobody
Status:  new| Milestone:
 Component:  Testing framework  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by russellm):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * needs_docs:  => 0

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #14677: tests.py cannot be split to package always

2010-11-12 Thread Django
#14677: tests.py cannot be split to package always
---+
 Reporter:  Ciantic|   Owner:  nobody
   Status:  new|   Milestone:
Component:  Testing framework  | Version:  SVN   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 My `tests.py` grew too big, and followed advice to split it to package
 `tests`, but not all features are supported that way, which is a shame,
 there really should be support.

 Especially the models defined in `tests.py` cannot be moved to individual
 `tests/sometest.py`, even though one imports all from `sometest.py` in
 `tests/__init__.py` it keeps throwing error that the model is not created
 to database.

 See also my [https://groups.google.com/group/django-
 users/browse_thread/thread/3574e98ac6d3a774/f9bfde1741155272 django-users
 discussion, for more thorough example].

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.