Oh yeah - good point.





On Wed, Mar 6, 2013, at 08:39 PM, Aaron Steele wrote:

  In test/gulo/views_test.clj:
> +             (query-runner total-publishers-query :total-publishers PAIL-PATH
))
> +
> +(fact "Checks taxa-count-query."
> +  (query-runner taxa-count-query :total-taxa PAIL-PATH)
> +  => (produces [[2]]))
> +
> +(fact "Checks total-by-collection-query."
> +  (query-runner total-by-collection-query :records-by-collection PAIL-PATH)
> +  => (produces [["MVZ" 1] ["VIZZ" 1]]))
> +
> +(fact "Checks total-by-class-query."
> +  (query-runner total-by-class-query :records-by-class PAIL-PATH)
> +  => (produces [["Mammalia" 1] ["Mustachia" 1]]))
> +
> +;; TODO: ensure delete-directory runs after tests
> +;; (delete-directory PAIL-PATH)

  meh, i just sink to tmp/ which gets reclaimed by os. :)

  —

Reply to this email directly or [1]view it on GitHub.
[RkOat9Y1_FdXL0zywX1whluFfTlX5rrOPZ4JdaBtNJpxB24pbbYACSXgfAUO6Fgi.gif]

References

1. https://github.com/VertNet/gulo/pull/46/files#r3274911