public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] recent trend of django-foo tests
@ 2013-05-20  9:05 IAN DELANEY
  2013-05-20  9:18 ` Nikolaj Sjujskij
  0 siblings, 1 reply; 8+ messages in thread
From: IAN DELANEY @ 2013-05-20  9:05 UTC (permalink / raw
  To: idella4, gentoo-python


Am generally reluctant to enter things here, however this issues
appears apt.  Recent versions of django-xxx packages' test suites  have
made a habit of falling over, which is no surprise in itself, but they
have a new cause.  They all expect to find a setting to SECRET_KEY
which is set in djang.conf.global_settings.

For  while I thought

"${PYTHON}" -c "from django.conf import \
global_settings;global_settings.SECRET_KEY='green'" ${test} 

did the trick but it seems that the ${test} after the import with -c "
" is discarded somehow and never actually run with the attempt to set 
SECRET_KEY='green'.  The output looks as if it was an effective run but
it's not the case.

How this came about, who knows.  The backtrace tells it's expecting a
hard coded entry in the installed global_settings.py.  django has some
other django specific mechanisms for running test suites and setting
settings. Anyone know at least one?  How about patching django itself
to include the setting? (That one I expect goes down like a lead
balloon.)


 
kind regards

Ian Delaney


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-03  7:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20  9:05 [gentoo-python] recent trend of django-foo tests IAN DELANEY
2013-05-20  9:18 ` Nikolaj Sjujskij
2013-05-20 17:36   ` IAN DELANEY
2013-05-21  8:56     ` Nikolaj Sjujskij
2013-05-21 17:35       ` IAN DELANEY
2013-05-21 10:42         ` Nikolaj Sjujskij
2013-05-30 19:34     ` Mike Gilbert
2013-06-03  7:05       ` Arfrever Frehtes Taifersar Arahesis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox