[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste ef33b0f 269/298: Fix provider definition issue an
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste ef33b0f 269/298: Fix provider definition issue and add test for paste.mozilla.org |
Date: |
Thu, 9 Dec 2021 19:00:27 -0500 (EST) |
branch: elpa/webpaste
commit ef33b0f298bf36cfb84b37af4870706fc376b0c3
Author: Elis Hirwing <elis@hirwing.se>
Commit: Elis Hirwing <elis@hirwing.se>
Fix provider definition issue and add test for paste.mozilla.org
---
README.org | 2 +-
tests/integration/test-webpaste-providers.el | 9 +++++++++
webpaste.el | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index 3d1b7d5..944092e 100644
--- a/README.org
+++ b/README.org
@@ -173,7 +173,7 @@ webpaste first and then just read the documentation by
running this:
(describe-function 'webpaste--provider)
#+end_src
-* TODO Providers to implement [5/12]
+* TODO Providers to implement [6/13]
- [ ] clbin.com
- [ ] 0x0.st
- [X] ix.io
diff --git a/tests/integration/test-webpaste-providers.el
b/tests/integration/test-webpaste-providers.el
index 6dc8ee2..e9273a7 100644
--- a/tests/integration/test-webpaste-providers.el
+++ b/tests/integration/test-webpaste-providers.el
@@ -46,6 +46,15 @@
(it
+ "can paste with paste.mozilla.org [ci]"
+
+ (funcall (webpaste--get-provider-by-name "paste.mozilla.org") paste-message
: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 gist.github.com [local]"
;; Override function to extract filename from a filepath, otherwise it breaks
diff --git a/webpaste.el b/webpaste.el
index a11e9a0..7895bbc 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -113,7 +113,7 @@ This uses `browse-url-generic' to open URLs."
:lang-overrides ((emacs-lisp-mode . "clojure"))
:success-lambda webpaste--providers-success-returned-string)
- '("paste.mozilla.org"
+ ("paste.mozilla.org"
:uri "https://paste.mozilla.org/api/"
:post-data (("expires" . 86400))
:post-field "content"
- [nongnu] elpa/webpaste 6114da7 208/298: Refactor how integration tests are triggered, (continued)
- [nongnu] elpa/webpaste 6114da7 208/298: Refactor how integration tests are triggered, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9d026d6 212/298: Remove emacs-24.3 from build target, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cf2ea41 218/298: Update heading levels and add a TOC, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7c3bc88 215/298: Remove unused local variable, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9972cf4 224/298: Fix some checkdock warnings, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b1cdedb 213/298: Simplify travis file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bd38635 253/298: [readme] Add two new suggestions for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 01c2858 261/298: Fix typos, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e7fed98 246/298: Reindent entire webpaste.el to match updated indentation style, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9d3c866 233/298: WP-25: Implement support for raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ef33b0f 269/298: Fix provider definition issue and add test for paste.mozilla.org,
ELPA Syncer <=
- [nongnu] elpa/webpaste b713d5e 259/298: travis: Drop tests for versions where cask seems to be incompatible, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2decf1e 276/298: Revert "Fix bug in webpaste-paste-buffer-or-region when you don't have a region", ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1600425 291/298: Merge branch 'dsedivec-master', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bbdc5e5 296/298: providers: Drop paste.pound-python.org, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 49a7123 236/298: Add missing TOC link about raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e0a35fd 232/298: WP-25: Add test for raw pastes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 5505685 226/298: Drop simpleclip support, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7397cbc 220/298: Fix duplicate elements added to alists, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 69a8eed 240/298: Merge branch 'kaushalmodi-add-toml-lang-to-ptpbpw-default', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 01a65a0 262/298: Merge branch 'DamienCassou-typos', ELPA Syncer, 2021/12/09