From f18e356057a9d8b3889d3a275b273effa8993018 Mon Sep 17 00:00:00 2001 From: mdtanker Date: Tue, 7 May 2024 17:32:03 +0200 Subject: [PATCH] chore: ignore dtype in test utils sampling --- tests/test_utils.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index fa89bb3e..3ba52168 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -419,9 +419,12 @@ def test_sample_grids_on_nodes(): "y": [200, 300, 400], name: [40000, 100000, 200000], }, - dtype="int64", ) - pdt.assert_frame_equal(result_df, expected) + pdt.assert_frame_equal( + result_df, + expected, + check_dtype=False, + ) def test_sample_grids_off_nodes(): @@ -435,7 +438,11 @@ def test_sample_grids_off_nodes(): expected = pd.DataFrame( {"x": [50, 101], "y": [280, 355], name: [83790.0, 138949.640109]} ) - pdt.assert_frame_equal(result_df, expected) + pdt.assert_frame_equal( + result_df, + expected, + check_dtype=False, + ) def test_sample_grids_custom_coordinate_names(): @@ -456,7 +463,11 @@ def test_sample_grids_custom_coordinate_names(): {"lon": [0, 100, 200], "lat": [200, 300, 400], name: [40000, 100000, 200000]}, dtype="int64", ) - pdt.assert_frame_equal(result_df, expected) + pdt.assert_frame_equal( + result_df, + expected, + check_dtype=False, + ) def test_sample_grids_one_out_of_grid_coordinates():