Skip to content

Commit

Permalink
tests: fix fetch test
Browse files Browse the repository at this point in the history
  • Loading branch information
irq0 committed Feb 14, 2024
1 parent 1cd7c6c commit d8ed336
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/llar/fetch_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,19 @@
:n-items 1}])

(deftest basics-test
(mount/start #'appconfig/appconfig)
(mount/start-with {#'appconfig/appconfig {:update-max-retry 5
:state-dir "/tmp"
:credentials-file "/tmp/credentials.edn"
:runtime-config-dir "/tmp"
:commands {:mercury-parser "/bin/true"
:youtube-dl "/bin/true"
:pdftocairo "/bin/true"
:pdf2htmlex "/bin/true"
:pandoc "/bin/true"
:w3m "/bin/true"
:lynx "/bin/true"
:html2text "/bin/true"}
:blob-store-dir "/tmp"}})
(doseq [{:keys [src fake-fetch fake-http-get n-items]} basic-tests]
(testing (str src)
(with-redefs [http/fetch fake-fetch
Expand Down

0 comments on commit d8ed336

Please sign in to comment.