Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lpicci96 committed Jun 6, 2024
1 parent e324eec commit e723259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/imf_reader/weo/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def fetch_data(version: Optional[Version] = None) -> pd.DataFrame:
version = validate_version(version)
df = _fetch(version)
logger.info(f"Data fetched successfully for version {version[0]} {version[1]}")
fetch_data.last_version_fetched = version # store the version fetched as function attribute
fetch_data.last_version_fetched = (
version # store the version fetched as function attribute
)
return df

# if no version is passed, generate the latest version and fetch the data
Expand Down
1 change: 0 additions & 1 deletion tests/test_weo/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def test_fetch_data_attribute(mock_fetch, mock_gen_latest_version):
assert reader.fetch_data.last_version_fetched == ("April", 2024)



@patch("imf_reader.weo.reader._fetch.cache_clear")
def test_clear_cache(mock_cache_clear):
"""Test for clear_cache method."""
Expand Down

0 comments on commit e723259

Please sign in to comment.