Re: Assistance Writing Test for Org Agenda Custom Bulk Function

2021-02-18 Thread Kevin Foley
Kyle Meyer writes: > Unrelated note: there's a missing a space between the second "*" and > "TODO". Good catch, thank you. > Perhaps you're not capturing the environment due to your quoting: > > ;; -*- lexical-binding: t; -*- > > (let ((x 0)) > '(t (lambda () x))) ;; => (y (lambda nil

Re: Assistance Writing Test for Org Agenda Custom Bulk Function

2021-02-17 Thread Kyle Meyer
Kevin Foley writes: > I'm trying to mock the argument collecting function and the custom bulk > function and then test that the arguments returned from the former are > passed to the latter. I'd also like to test the argument function is > only called once while the bulk function is called multip

Assistance Writing Test for Org Agenda Custom Bulk Function

2021-02-15 Thread Kevin Foley
I'm trying write a test for a recently merged patch[1]. The patch adds the ability for users to specify a function to collect args to be passed to a custom bulk function. I'm trying to mock the argument collecting function and the custom bulk function and then test that the arguments returned fro