Skip to content

Document how to test protected areas with repoze.who-testutil #1

Open
pedersen opened this Issue Sep 24, 2012 · 3 comments

2 participants

@pedersen
TurboGears member

This issue existed in Trac. The original can be viewed at http://trac.turbogears.org/ticket/2261

This issue existed on SourceForge. The original can be viewed at https://sourceforge.net/p/turbogears2/tickets/3

@pedersen
TurboGears member

Original Author: pedersen, Original Timestamp: 2011-03-10 02:31:42.392000

Original Body: I have to explain how to test protected areas and authentication separately, using repoze.who-testutil.

@pedersen
TurboGears member

Original Author: pedersen, Original Timestamp: 2012-08-24 01:32:59.714000

Original Body: - version: 2.1.0 --> 2.1.5

  • milestone: 2.2.0 --> 2.3.0
@shakefu
shakefu commented Nov 16, 2012

I'm on 2.1.5 and as far as I can tell, even though repoze.who-testutil is installed, it doesn't work (e.g. the {'REMOTE_USER': 'username'} in the extra_environ doesn't authenticate - I get a 401). Is there some configuration that needs to be done to make the testutil plugin actually work? I can't find anything in its documentation or repoze.who's documentation (the normal [plugin:testutil] use = repoze.who.plugins.testutil:[anything in that file] doesn't work.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.