Skip to content

Commit

Permalink
add test + update pandas version
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamConnors committed Feb 14, 2024
1 parent 7cc56c2 commit ed074d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from plotly.express._core import build_dataframe
from pandas.testing import assert_frame_equal
import sys
import warnings


# Fixtures
Expand Down Expand Up @@ -667,3 +668,16 @@ def test_x_or_y(fn):
assert list(fig.data[0].x) == constant
assert list(fig.data[0].y) == categorical
assert fig.data[0].orientation == "h"


def test_no_futurewarning():
with warnings.catch_warnings(record=True) as warn_list:
_ = px.scatter(
x=[15, 20, 29],
y=[10, 20, 30],
color=["Category 1", "Category 2", "Category 1"],
)
future_warnings = [
warn for warn in warn_list if issubclass(warn.category, FutureWarning)
]
assert len(future_warnings) == 0, "FutureWarning(s) raised!"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
requests==2.25.1
tenacity==6.2.0
pandas==2.0.2
numpy==1.21.6
pandas==2.2.0
numpy==1.22.4
xarray==0.17.0
statsmodels
Pillow==8.2.0
Expand Down

0 comments on commit ed074d0

Please sign in to comment.