Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lpicci96 committed Oct 11, 2024
1 parent 2c8522a commit e78ba3d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_weo/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,17 +222,3 @@ def test_clean_numeric_columns(self):
# Assert that "n/a" and "--" have been replaced with nulls
for column in result_df.columns:
assert result_df[column].isnull().any()

# check error is raised if any other unusual values are present
data_df = pd.DataFrame(
{
"REF_AREA_CODE": ["1", "2", "n/a", "--"],
"OBS_VALUE": ["1.1", "2.2", "n/a", "abc"],
"SCALE_CODE": ["3", "4", "n/a", "--"],
"LASTACTUALDATE": ["2023", "2024", "n/a", "--"],
"TIME_PERIOD": ["1980", "1981", "n/a", "--"],
}
)

with pytest.raises(ValueError):
SDMXParser.clean_numeric_columns(data_df)

0 comments on commit e78ba3d

Please sign in to comment.