pytest integration for Leo

32 views
Skip to first unread message

Terry Brown

unread,
Feb 27, 2018, 4:45:06 PM2/27/18
to leo-editor
For anyone using the pytest framework I've written a button which jumps
between code and corresponding test, creating missing folders / files /
functions as needed. It's doc'ed in it's doc string.

https://github.com/leo-editor/snippets/blob/master/utils/pytest_switch.py

Cheers -Terry

Edward K. Ream

unread,
Feb 28, 2018, 9:06:50 AM2/28/18
to leo-editor

​Thanks Terry.  Do you regularly use pytest for your Leo work?

Edward

Terry Brown

unread,
Feb 28, 2018, 9:18:24 AM2/28/18
to leo-e...@googlegroups.com
On Wed, 28 Feb 2018 08:06:48 -0600
"Edward K. Ream" <edre...@gmail.com> wrote:

> On Tue, Feb 27, 2018 at 3:45 PM, Terry Brown <terry...@gmail.com>
> wrote:
>
> > For anyone using the pytest framework I've written a button which
> > jumps between code and corresponding test, creating missing
> > folders / files / functions as needed. It's doc'ed in its doc
> > string.
> >
> > https://github.com/leo-editor/snippets/blob/master/utils/pytest_switch.py
>
>
> ​Thanks Terry. Do you regularly use pytest for your Leo work?

No, I use if for my non-Leo work, for which I use Leo :-)

Cheers -Terry

Kent Tenney

unread,
Feb 28, 2018, 10:40:16 AM2/28/18
to leo-editor
:-]

Important distinction.


--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscribe@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages