org-clock-csv icon indicating copy to clipboard operation
org-clock-csv copied to clipboard

ERT test 'test-issue-23' fails if 'STARTED' is not one of the TODO keywords

Open dapritchard opened this issue 3 years ago • 0 comments

In my version of Emacs (v27.2) STARTED is not one of the default keywords, which causes the test-issue-23 test to fail for me. A possible solution is to specify per-file TODO keywords in the tests/issue-23.org file.

The following is the output from the ERT test. We can see that the STARTED keyword is being brought along from the parsed version of the tests/issue-23.org file which is causing the error.

F test-issue-23
    Test custom properties.
    (ert-test-failed
     ((should
       (equal in out))
      :form
      (equal "task,CUSTOM_1,CUSTOM_2,start,end
STARTED Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
STARTED Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
STARTED Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
STARTED Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
STARTED Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
STARTED Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
" "task,CUSTOM_1,CUSTOM_2,start,end
Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
")
      :value nil :explanation
      (arrays-of-different-length 491 443 "task,CUSTOM_1,CUSTOM_2,start,end
STARTED Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
STARTED Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
STARTED Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
STARTED Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
STARTED Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
STARTED Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
" "task,CUSTOM_1,CUSTOM_2,start,end
Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
" first-mismatch-at 33)))

dapritchard avatar Sep 17 '21 14:09 dapritchard