Skip to content

Commit

Permalink
chore: ignore dtype in test utils sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed May 7, 2024
1 parent 1c587fd commit f18e356
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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():
Expand All @@ -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():
Expand Down

0 comments on commit f18e356

Please sign in to comment.