set_constants?
The "constants" are different if I am testing a local wsgi process or a
remote HTTP server.
I could split them up but at somepoint I need to do things differently
depending on the type of test.

Paul Brian
paul@mikadosoftware.com
07540 456 115
twitter: @lifeisstillgood
skype: paul.mikadosoftware


On Wed, Jul 10, 2013 at 3:56 PM, Michael Mulich <notifications@github.com>wrote:

> In rhaptos2/repo/tests/test_wsgi.py:
>
> > -                   "fakesessionid": "00000000-0000-0000-0000-000000000000"
> > -                   },
> > -              "OTHERUSER":
> > -                  {"name": "rossreedstrm",
> > -                   "uri": "cnxuser:75e06194-baee-4395-8e1a-566b656f6921",
> > -                   "fakesessionid": "00000000-0000-0000-0000-000000000001"
> > -                   },
> > -              "BADUSER":
> > -                  {"name": "edwoodward",
> > -                   "uri": "cnxuser:75e06194-baee-4395-8e1a-566b656f6922",
> > -                   "fakesessionid": "00000000-0000-0000-0000-000000000002"
> > -                   }
> > -                  }
> > -########################
> > +def set_constants(httpproxy, wapp):
> > +
>
> Why wrap constants in a function? Some of the user and get_anon_session
> bits look more like a test setup. Isn't that really what this would be?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Connexions/rhaptos2.repo/pull/152/files#r5116814>
> .
>

-- 


www.mikadosoftware.com

See your software improve with every change.