Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "imf-reader"
version = "1.3.0"
version = "1.3.1"
description = "A package to access imf data"
authors = ["The ONE Campaign"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/imf_reader/weo/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_sdmx_url(soup: BeautifulSoup) -> str:
raise NoDataError("SDMX data not found")

logger.debug("SDMX URL found")
return f"{BASE_URL}{href}"
return f"{href}"

@staticmethod
def get_sdmx_folder(sdmx_url: str) -> ZipFile:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_weo/test_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_get_sdmx_url(self):

# test expected behavior
result = scraper.SDMXScraper.get_sdmx_url(mock_soup)
assert result == "https://www.imf.org/test/url"
assert result == "test/url"

# Test when href is None
mock_soup.find.return_value.get.return_value = None
Expand Down