We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8bb3b2 commit ab92c7dCopy full SHA for ab92c7d
packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py
@@ -4310,10 +4310,10 @@ def test_optional_arguments(self):
4310
4311
4312
class TestHexbinMapbox(NumpyTestUtilsMixin, TestCaseNoTemplate):
4313
- def assert_dict_equal(self, dict1, dict2, decimal=7):
+ def assert_dict_almost_equal(self, dict1, dict2, decimal=7):
4314
for k, v in dict1.items():
4315
if isinstance(v, dict):
4316
- assert_dict_equal(self, v, dict2[k], decimal=decimal)
+ assert_dict_almost_equal(self, v, dict2[k], decimal=decimal)
4317
elif isinstance(v, float):
4318
np.testing.assert_almost_equal(v, dict2[k], decimal=decimal)
4319
else:
@@ -4427,7 +4427,7 @@ def test_aggregation(self):
4427
4428
actual_agg = [2.0, 2.0, 1.0, 3.0, 9.0]
4429
4430
- self.assert_dict_equal(fig1.data[0].geojson, actual_geojson)
+ self.assert_dict_almost_equal(self, fig1.data[0].geojson, actual_geojson)
4431
assert np.array_equal(fig1.data[0].z, actual_agg)
4432
4433
fig2 = ff.create_hexbin_mapbox(
0 commit comments