[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 3a1eaca 183/298: Added integration tests for gist
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 3a1eaca 183/298: Added integration tests for gist.github.com |
Date: |
Thu, 9 Dec 2021 19:00:10 -0500 (EST) |
branch: elpa/webpaste
commit 3a1eaca532a1b8086b0b1394192d58aff91b3812
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Added integration tests for gist.github.com
---
tests/integration/test-webpaste-providers.el | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/tests/integration/test-webpaste-providers.el
b/tests/integration/test-webpaste-providers.el
index 5608039..6180e19 100644
--- a/tests/integration/test-webpaste-providers.el
+++ b/tests/integration/test-webpaste-providers.el
@@ -7,7 +7,7 @@
(describe
- "Test all providers with dummy data"
+ "Test provider with dummy data so it"
(before-each
;; Block requests
@@ -92,6 +92,22 @@
(it
+ "can paste with gist.github.com"
+
+ ;; Override function to extract filename from a filepath, otherwise it
breaks during integration tests
+ (spy-on 'file-name-nondirectory :and-return-value "file.txt")
+
+ (let ((provider (cadr (assoc "gist.github.com" webpaste-providers-alist))))
+ (funcall
+ provider
+ ";; This is a build artifact made from an integration test for
https://github.com/etu/webpaste.el"
+ :sync t)
+
+ (expect (spy-calls-count 'webpaste-return-url) :to-equal 1)
+ (expect (spy-calls-count 'webpaste-paste-text) :to-equal 0)))
+
+
+ (it
"can paste with paste.pound-python.org"
(let ((provider (cadr (assoc "paste.pound-python.org"
webpaste-providers-alist))))
- [nongnu] elpa/webpaste badf3b5 257/298: nix-shell: Improve the shell so all tests just runs, (continued)
- [nongnu] elpa/webpaste badf3b5 257/298: nix-shell: Improve the shell so all tests just runs, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 933c62f 245/298: CONTRIBUTING: Add some more clarifications, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 01fd1d6 231/298: WP-25: Add custom to only paste raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 77e6154 193/298: Bump version for new release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 157d524 206/298: Fix build since EVM and Cask seems to behave strangely lately, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste a5d0ba1 237/298: Add nix-mode mapping for nix language files for ptpb.pw and ix.io, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 5c742bf 238/298: Remove sprunge.us as provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ba3ce40 221/298: Merge branch 'raxod502-feat/fix-dups', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d7047a9 222/298: Update copyright year, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste dc99105 260/298: Merge branch 'switch-to-nix-emacs-ci', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 3a1eaca 183/298: Added integration tests for gist.github.com,
ELPA Syncer <=
- [nongnu] elpa/webpaste 8ef26cf 198/298: Switched function and variable names that are supposed to be internal, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cfd41c7 207/298: Add Emacs-24.3 again as well as Emacs-25.3 as new version is out, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ba05903 248/298: travis: Run the integration tests in emacs 26.1, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9ca4105 267/298: Extend default language list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 44df573 244/298: Merge branch 'kaushalmodi-add-lang-detection-from-shebang', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0f79722 270/298: Add wrapper around webpaste for buffer and region, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 20da215 271/298: Add unit tests for pasting buffer OR region depending on context, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e892ef2 277/298: webpaste: Add custom to limit amount of retries, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bd2bf6a 281/298: github-actions: Set up github actions and undercover for unit tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 54e2ed4 178/298: Added integration test for ix.io, ELPA Syncer, 2021/12/09