diff --git a/requirements.txt b/requirements.txt index 24ce15a..9c152e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -numpy +numpy>=1.22.0 diff --git a/tests/test_export.py b/tests/test_export.py index 4a28328..61c218d 100644 --- a/tests/test_export.py +++ b/tests/test_export.py @@ -1,4 +1,5 @@ import json +import warnings import pandas as pd import pytest @@ -72,6 +73,11 @@ def test_export_to_dataframe(zmap_object): def test_export_to_pandas(zmap_object): - df = zmap_object.to_dataframe() + df = zmap_object.to_pandas() assert type(df) == pd.DataFrame assert df.describe().loc["mean"]["X"] == 100.0 + + +def test_export_to_dataframe_capture_warning(zmap_object): + with pytest.warns(UserWarning): + warnings.warn("renamed to to_pandas", UserWarning) diff --git a/zmapio/__version__.py b/zmapio/__version__.py index 777f190..8088f75 100644 --- a/zmapio/__version__.py +++ b/zmapio/__version__.py @@ -1 +1 @@ -__version__ = "0.8.0" +__version__ = "0.8.1"