Re: [Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2013-01-04 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
---+-
 Reporter:  claudep|Owner:  Architekt
 Type:  Bug|   Status:  closed
Component:  Testing framework  |  Version:  1.4
 Severity:  Normal |   Resolution:  fixed
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+-

Comment (by Claude Paroz ):

 In [changeset:"96301d21bb2ec7c5e06e3cea54fa2cdcd25a464d"]:
 {{{
 #!CommitTicketReference repository=""
 revision="96301d21bb2ec7c5e06e3cea54fa2cdcd25a464d"
 [1.5.x] Fixed #19192 -- Allowed running tests with dummy db backend

 Thanks Simon Charette for the initial patch, and Jan Bednařík for
 his work on the ticket.
 Backport of b740da3504 from master.
 }}}

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2013-01-04 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
---+-
 Reporter:  claudep|Owner:  Architekt
 Type:  Bug|   Status:  closed
Component:  Testing framework  |  Version:  1.4
 Severity:  Normal |   Resolution:  fixed
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+-
Changes (by Claude Paroz ):

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


Comment:

 In [changeset:"b740da3504ea3b9c841f5a9eb14191a0b5410565"]:
 {{{
 #!CommitTicketReference repository=""
 revision="b740da3504ea3b9c841f5a9eb14191a0b5410565"
 Fixed #19192 -- Allowed running tests with dummy db backend

 Thanks Simon Charette for the initial patch, and Jan Bednařík for
 his work on the ticket.
 }}}

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2013-01-04 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
---+-
 Reporter:  claudep|Owner:  Architekt
 Type:  Bug|   Status:  new
Component:  Testing framework  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+-

Comment (by claudep):

 Yes, Simon's solution is a lot more elegant/pythonic. I will add a test
 and commit.

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2012-12-21 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
---+-
 Reporter:  claudep|Owner:  Architekt
 Type:  Bug|   Status:  new
Component:  Testing framework  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+-

Comment (by charettes):

 What about providing a dummy database creation class that ignores
 `create_test_db` and `destroy_test_db` instead?

 {{{
 #!diff
 diff --git a/django/db/backends/dummy/base.py
 b/django/db/backends/dummy/base.py
 index 12a940d..b648aae 100644
 --- a/django/db/backends/dummy/base.py
 +++ b/django/db/backends/dummy/base.py
 @@ -31,6 +31,10 @@ class DatabaseOperations(BaseDatabaseOperations):
  class DatabaseClient(BaseDatabaseClient):
  runshell = complain

 +class DatabaseCreation(BaseDatabaseCreation):
 +create_test_db = ignore
 +destroy_test_db = ignore
 +
  class DatabaseIntrospection(BaseDatabaseIntrospection):
  get_table_list = complain
  get_table_description = complain
 @@ -64,6 +68,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
  self.features = BaseDatabaseFeatures(self)
  self.ops = DatabaseOperations(self)
  self.client = DatabaseClient(self)
 -self.creation = BaseDatabaseCreation(self)
 +self.creation = DatabaseCreation(self)
  self.introspection = DatabaseIntrospection(self)
  self.validation = BaseDatabaseValidation(self)
 }}}

 This also allows `SimpleTestCase` to work just fine.

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2012-10-27 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
---+-
 Reporter:  claudep|Owner:  Architekt
 Type:  Bug|   Status:  new
Component:  Testing framework  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+-

Comment (by Architekt):

 Patch and pull request has been updated, ready for review.

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2012-10-27 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
---+-
 Reporter:  claudep|Owner:  Architekt
 Type:  Bug|   Status:  new
Component:  Testing framework  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+-

Comment (by Architekt):

 I made a mistake in patch...

-- 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2012-10-27 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
---+-
 Reporter:  claudep|Owner:  Architekt
 Type:  Bug|   Status:  new
Component:  Testing framework  |  Version:  1.4
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+-
Changes (by Architekt):

 * owner:  nobody => Architekt
 * has_patch:  0 => 1


Comment:

 Here is patch: https://github.com/django/django/pull/475

 Patch skips calling create_test_db and destory_test_db for dummy database
 backend.

 Testing without database (with dummy database backend) works only for
 SimpleTestCase.

 (I added myself into authors because It's my 4th small patch and I did
 also triaging of few tickets.)

-- 
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 https://groups.google.com/groups/opt_out.




[Django] #19192: DjangoTestSuiteRunner cannot run with dummy database backend

2012-10-26 Thread Django
#19192: DjangoTestSuiteRunner cannot run with dummy database backend
-+
   Reporter:  claudep|  Owner:  nobody
   Type:  Bug| Status:  new
  Component:  Testing framework  |Version:  1.4
   Severity:  Normal |   Keywords:
   Triage Stage:  Accepted   |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+
 (from https://code.djangoproject.com/ticket/18575#comment:9)

 To support Django app testing without requiring a database, one can omit
 the DATABASES setting so as the default dummy backend is configured.
 Unfortunately, `DjangoTestSuiteRunner` does not support this
 configuration, as it raises `ImproperlyConfigured` at the time the
 `connection.creation.create_test_db` is called.

-- 
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 https://groups.google.com/groups/opt_out.