I was just looking into this and if you don't want to use click.testing.CliRunner one can also get the original function by accessing the `callback` attribute of the decorated function...
On 01.06.2015 20:17, Chris Withers wrote: > " it changes the global interpreter state" - *sigh* > > On 01/06/2015 19:07, Oliver wrote: >> more or less: http://click.pocoo.org/4/api/#testing >> >> >> On 01.06.2015 18:33, Chris Withers wrote: >>> For that type of thing, I'd probably use Mush: >>> >>> http://pythonhosted.org/mush/examples.html >>> >>> ...unless I'm mistaken, once decorated by click, the callables you decorate >>> are no longer unit testable, right? >>> >>> Chris >>> >>> On 01/06/2015 13:02, Tom Lazar wrote: >>>> i heartily second that suggestion. click is a joy to work with! >>>> >>>>> On 01 Jun 2015, at 14:00, Oliver <dief...@gmail.com> wrote: >>>>> >>>>> If you want a really easy framework for managing script options and so >>>>> on, I recommend http://click.pocoo.org >>>>> >>>>> On 01.06.2015 12:08, Chris Withers wrote: >>>>>> On 01/06/2015 08:11, Thierry Florac wrote: >>>>>>> Hi, >>>>>>> Do you want to create new management commands or do you just want to >>>>>>> get access to the shell? >>>>>> Yes, I'm wondering if there's a framework for adding in new commands. >>>>>> >>>>>> Chris >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>>>> "pylons-discuss" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send an >>>>> email to >>>>> pylons-discuss+unsubscr...@googlegroups.com. >>>>> To post to this group, send email to pylons-discuss@googlegroups.com. >>>>> Visit this group at http://groups.google.com/group/pylons-discuss. >>>>> For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > pylons-discuss+unsubscr...@googlegroups.com > <mailto:pylons-discuss+unsubscr...@googlegroups.com>. > To post to this group, send email to pylons-discuss@googlegroups.com > <mailto:pylons-discuss@googlegroups.com>. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.