[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste ec85d7d 092/298: Added unit test for static provi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste ec85d7d 092/298: Added unit test for static provider configuration |
Date: |
Thu, 9 Dec 2021 18:59:51 -0500 (EST) |
branch: elpa/webpaste
commit ec85d7da14756b10d1e155b8e8b5228f902563ba
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Added unit test for static provider configuration
---
test/webpaste-test.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/test/webpaste-test.el b/test/webpaste-test.el
index 4fcd215..df704e5 100644
--- a/test/webpaste-test.el
+++ b/test/webpaste-test.el
@@ -17,6 +17,17 @@
'("provider1" "provider2" "provider3"))))
+(ert-deftest webpaste--static-provider-priority ()
+ "Test static configuration of webpaste-provider-priority."
+
+ (setq-default webpaste-provider-priority
+ '("provider2" "provider1" "provider3"))
+ (setq-default webpaste-providers-alist '())
+
+ (should (equal (webpaste--get-provider-priority)
+ '("provider2" "provider1" "provider3"))))
+
+
(ert-deftest webpaste--callback-from-working-provider ()
"This test just sends a message to a good provider that just works."
- [nongnu] elpa/webpaste 69166a3 121/298: Moved error-handling of failed requests out so providers must specify it, (continued)
- [nongnu] elpa/webpaste 69166a3 121/298: Moved error-handling of failed requests out so providers must specify it, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 69f9452 122/298: Bump version for minor release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 8905a52 125/298: Re-arrange arguments to webpaste-provider and update docs, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 72ba31e 127/298: Bump version for new release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7d03ed3 137/298: Removed unused variables defined in function declaration, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 07a85e9 142/298: Added pre-calculated alist of languages for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7b84568 155/298: Avoid setq's in favor of let, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0c0e88a 079/298: Added basic structure of tests file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 95289e5 082/298: Added .travis.yml config file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7c90bc5 090/298: Merge branch 'tarsius-master', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ec85d7d 092/298: Added unit test for static provider configuration,
ELPA Syncer <=
- [nongnu] elpa/webpaste 2c5eb3c 149/298: Fix broken build., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f161620 163/298: Refactored the success callbacks, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste dab97dd 130/298: Make post-fields-lambda take named parameters, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f83fd7b 145/298: Added note about new provider to implement. This refs #7, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 62e0f33 165/298: Refactor default post field lambda, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6e116ea 166/298: Merge branch 'refactor-away-defvars', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1677cd2 171/298: Added stuff to Makefile to run integration tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 51a6a07 174/298: Fixed broken message format, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6086556 180/298: Added integration tests for dpaste.com, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 44364f4 109/298: Rename parameter domain to uri for webpaste-provider, ELPA Syncer, 2021/12/09