aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-09-15 18:01:59 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-09-15 18:01:59 +0000
commit10ebdda859713a304addaebbe9a23ce83ca60fe1 (patch)
tree6a2f1d17ada9041165a208c745eb56d2ee6499f8
parent531b4302586527917664815146d411100c511082 (diff)
downloadaports-10ebdda859713a304addaebbe9a23ce83ca60fe1.tar.bz2
aports-10ebdda859713a304addaebbe9a23ce83ca60fe1.tar.xz
testing/sopel: include patch
-rw-r--r--testing/sopel/fix-tests.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/sopel/fix-tests.patch b/testing/sopel/fix-tests.patch
new file mode 100644
index 0000000000..399cdcd99e
--- /dev/null
+++ b/testing/sopel/fix-tests.patch
@@ -0,0 +1,26 @@
+diff --git a/sopel/modules/translate.py b/sopel/modules/translate.py
+index 4084827093..1e69709d4c 100644
+--- a/sopel/modules/translate.py
++++ b/sopel/modules/translate.py
+@@ -105,7 +105,7 @@ def tr(bot, trigger):
+
+ @commands('translate', 'tr')
+ @example('.tr :en :fr my dog', '"mon chien" (en to fr, translate.google.com)')
+-@example('.tr היי', '"Hey" (iw to en, translate.google.com)')
++@example('.tr היי', '"Hi" (iw to en, translate.google.com)')
+ @example('.tr mon chien', '"my dog" (fr to en, translate.google.com)')
+ def tr2(bot, trigger):
+ """Translates a phrase, with an optional language hint."""
+diff --git a/sopel/modules/search.py b/sopel/modules/search.py
+index 783cc7278f..833304d65b 100644
+--- a/sopel/modules/search.py
++++ b/sopel/modules/search.py
+@@ -94,7 +94,7 @@ def duck_api(query):
+ # test for bad Unicode handling in py2
+ @example('.duck grandorder.wiki chulainn alter', 'https://grandorder.wiki/Cú_Chulainn_(Alter)')
+ # the last example is what .help displays
+-@example('.duck sopel irc bot', r'https?:\/\/sopel\.chat\/?', re=True)
++@example('.duck sopel irc bot', r'https?:\/\/(sopel\.chat|github\.com\/sopel-irc\/sopel)\/?', re=True)
+ def duck(bot, trigger):
+ """Queries Duck Duck Go for the specified input."""
+ query = trigger.group(2)