It looks like there is an undocumented feature in Catalyst::Test, a callback to let you modify the request. $args->{mangle_request}->($request) if $args->{mangle_request}; Or alternatively I can subclass the module and extend _customize_request() to add more to the PSGI environment.
On 1 November 2013 11:39, Toby Corkindale <t...@dryft.net> wrote: > Umm, not that I know of. > > I suppose another way to phrase the question is: Is there a way to > manipulate the $c->engine->env in the Catalyst application, from > within unit tests neatly? > > On 1 November 2013 08:35, John Napiorkowski <jjn1...@yahoo.com> wrote: >> Not sure what you mean, is there an example in another framework you can >> point to? >> >> johnn >> >> >> On Thursday, October 31, 2013 12:55 AM, Toby Corkindale <t...@dryft.net> >> wrote: >> Hi, >> I wondered if there's any prior art around on inserting (mocked) PSGI >> layers into Test::WWW::Mechanize:Catalyst? >> >> Cheers, >> Toby >> >> -- >> Turning and turning in the widening gyre >> The falcon cannot hear the falconer >> Things fall apart; the center cannot hold >> Mere anarchy is loosed upon the world >> >> _______________________________________________ >> List: Catalyst@lists.scsys.co.uk >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ >> Dev site: http://dev.catalyst.perl.org/ >> >> >> >> _______________________________________________ >> List: Catalyst@lists.scsys.co.uk >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ >> Dev site: http://dev.catalyst.perl.org/ >> > > > > -- > Turning and turning in the widening gyre > The falcon cannot hear the falconer > Things fall apart; the center cannot hold > Mere anarchy is loosed upon the world -- Turning and turning in the widening gyre The falcon cannot hear the falconer Things fall apart; the center cannot hold Mere anarchy is loosed upon the world _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/