-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**BugFixes** - Fixed `simplify_index` when the data is a scalar - Non-WDI indicators can now be loaded (#4) - Package also works under Python 2.7 (#1)
- Loading branch information
Showing
15 changed files
with
164 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Release History | ||
=============== | ||
|
||
0.1.1 (2019-04-09) | ||
------------------ | ||
|
||
**BugFixes** | ||
|
||
- Fixed `simplify_index` when the data is a scalar | ||
- Non-WDI indicators can now be loaded (#4) | ||
- Package also works under Python 2.7 (#1) | ||
|
||
0.1.0 (2019-04-06) | ||
------------------ | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import re | ||
import mock | ||
from world_bank_data import search_countries | ||
|
||
|
||
def test_language(): | ||
assert search_countries(re.compile('ES')).name[0] == 'Spain' | ||
assert search_countries(re.compile('ES'), language='es').name[0] == 'España' | ||
assert search_countries(re.compile('ES'), language='es').name[0] == u'España' | ||
|
||
|
||
def test_language_through_options(): | ||
assert search_countries(re.compile('ES')).name[0] == 'Spain' | ||
with mock.patch('world_bank_data.options.language', 'es'): | ||
assert search_countries(re.compile('ES')).name[0] == 'España' | ||
assert search_countries(re.compile('ES')).name[0] == u'España' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.