File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 (uiop :subpathname *load-pathname* " README.md" ))
1919 :perform (load-op :after (o c)
2020 (uiop :symbol-call :ql-https :register-fetch-scheme-functions )
21- (pushnew :ql-https *features* )))
21+ (pushnew :ql-https *features* ))
22+ :in-order-to ((test-op (test-op " ql-https/test" ))))
23+
24+
25+ (defsystem " ql-https/test"
26+ :description " Tests for ql-https"
27+ :depends-on ((:require " uiop" )
28+ " fiasco"
29+ " ql-https" )
30+ :pathname " t/"
31+ :components ((:file " tests" ))
32+ :perform (test-op (op c)
33+ (unless (uiop :symbol-call :fiasco :run-package-tests :package :ql-https/test )
34+ #+ (not (or :swank :slynk ))
35+ (error " Tests failed." ))))
36+
37+
38+
2239
2340
Original file line number Diff line number Diff line change 1+ ; ;; This Source Code Form is subject to the terms of the Mozilla Public
2+ ; ;; License, v. 2.0. If a copy of the MPL was not distributed with this
3+ ; ;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+ (fiasco :define-test-package :ql-https/test )
6+ (in-package # :ql-https/test)
7+
8+ (deftest test-ql-https-is-initialized-correctly ()
9+ (let ((http-function (cdr (assoc " http" ql-http :*fetch-scheme-functions* :test #' string= )))
10+ (https-function (cdr (assoc " https" ql-http :*fetch-scheme-functions* :test #' string= ))))
11+ (is (eq ' ql-https:fetcher http-function) " HTTP doesn't use `ql-https:fetch'" )
12+ (is (eq ' ql-https:fetcher https-function) " HTTP doesn't use `ql-https:fetch'" )))
13+
14+ (deftest test-downloading-system ()
15+ (let ((ql-https :*quietly-use-https* nil ))
16+ (signals ql-https :no-https-error
17+ (ql :quickload " str" :silent t ))))
18+
19+
20+
You can’t perform that action at this time.
0 commit comments