Update doctest tests with current reality - wr - Translate a term via WordReference.com
(HTM) hg clone https://bitbucket.org/iamleot/wr
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset c898dc9d346b0146418eec415fef0f87a41afca3
(DIR) parent 0f13f795023fb282957e2f625b677f6b28a148c2
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 30 Oct 2019 10:23:34
Update doctest tests with current reality
Now all the existent tests pass again.
Diffstat:
wr.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff -r 0f13f795023f -r c898dc9d346b wr.py
--- a/wr.py Tue Oct 29 19:18:51 2019 +0100
+++ b/wr.py Wed Oct 30 10:23:34 2019 +0100
@@ -88,9 +88,11 @@
>>> ts[0].term_description
'(typical instance)'
>>> ts[0].translations
- 'esempio'
+ ['esempio']
+ >>> ts[0].translation_contexts
+ ['']
>>> ts[0].translation_types
- 'nm'
+ ['nm']
"""
req = request.Request(WORDREFERENCE_URL.format(
dictionary=parse.quote(dictionary),