public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
From: IAN DELANEY <della5@iinet.com.au>
To: gentoo-python@lists.gentoo.org
Subject: Re: [gentoo-python] recent trend of django-foo tests
Date: Tue, 21 May 2013 01:36:16 +0800	[thread overview]
Message-ID: <20130521013616.694f7026@archtester.homenetwork> (raw)
In-Reply-To: <op.wxdlhrmzh7emz2@verkdatorn.npdb>

On Mon, 20 May 2013 13:18:53 +0400
"Nikolaj Sjujskij" <sterkrig@myopera.com> wrote:

> Den 2013-05-20 13:05:33 skrev IAN DELANEY <della5@iinet.com.au>:
> 
>     ...
> -c cmd : program passed in as string (_terminates option list_)
> 
> So ${test} seems to be ignored or misinterpreted.
> 
> 
> You could try creating ./global_settings.py in :
> 
>      from django.conf import global_settings
>      global_settings.SECRET_KEY='green'
> 
>      print(global_settings)   # testing purposes!
> 
> Now:
>   % python -c 'import global_settings'
> <module 'django.conf.global_settings' from  
> '/usr/lib64/python2.7/site-packages/django/conf/global_settings.pyc'>

Ja, tack tack for att forsoka, med nej. (Please add the grammatical
nice-ities to the vowel o).  I got a fix from #django on the second
attempt. I was close on the first attempt, so for the benefit of all, 

first export SECRET_KEY='green', followed by

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

and presto.

 * python2_7: running distutils-r1_run_phase python_test
 * test test_compiler.py passed under python2.7
 * test test_compressor.py passed under python2.7

another bug bites the dust.

-- 
kind regards

Ian Delaney


  reply	other threads:[~2013-05-20 17:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130521013616.694f7026@archtester.homenetwork \
    --to=della5@iinet.com.au \
    --cc=gentoo-python@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox