forked from ivy-llc/ivy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for to_numpy method and add tests for DataFrame too. comment…
…ed out until frontend tests are independent of a backend
- Loading branch information
Showing
2 changed files
with
99 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# tests for the pandas frontend Series class methods | ||
|
||
CLASS_TREE = "ivy.functional.frontends.pandas.DataFrame" | ||
|
||
# ToDo: uncomment this when frontend tests are independent of backends | ||
|
||
# @handle_frontend_method( | ||
# class_tree=CLASS_TREE, | ||
# init_tree="pandas.DataFrame", | ||
# method_name="abs", | ||
# dtype_x=helpers.dtype_and_values( | ||
# available_dtypes=helpers.get_dtypes("valid")) | ||
# ) | ||
# def test_pandas_series_abs( | ||
# dtype_x, | ||
# frontend, | ||
# frontend_method_data, | ||
# init_flags, | ||
# method_flags, | ||
# on_device, | ||
# ): | ||
# input_dtype, x = dtype_x | ||
# helpers.test_frontend_method( | ||
# init_input_dtypes=input_dtype, | ||
# init_all_as_kwargs_np={ | ||
# "data": x[0], | ||
# }, | ||
# method_input_dtypes=input_dtype, | ||
# method_all_as_kwargs_np={}, | ||
# frontend_method_data=frontend_method_data, | ||
# init_flags=init_flags, | ||
# method_flags=method_flags, | ||
# frontend=frontend, | ||
# on_device=on_device, | ||
# ) | ||
|
||
|
||
# @handle_frontend_method( | ||
# class_tree=CLASS_TREE, | ||
# init_tree="pandas.DataFrame", | ||
# method_name="to_numpy", | ||
# dtype_x=helpers.dtype_and_values( | ||
# available_dtypes=helpers.get_dtypes("valid")) | ||
# ) | ||
# def test_pandas_series_abs( | ||
# dtype_x, | ||
# frontend, | ||
# frontend_method_data, | ||
# init_flags, | ||
# method_flags, | ||
# on_device, | ||
# ): | ||
# input_dtype, x = dtype_x | ||
# helpers.test_frontend_method( | ||
# init_input_dtypes=input_dtype, | ||
# init_all_as_kwargs_np={ | ||
# "data": x[0], | ||
# }, | ||
# method_input_dtypes=input_dtype, | ||
# method_all_as_kwargs_np={}, | ||
# frontend_method_data=frontend_method_data, | ||
# init_flags=init_flags, | ||
# method_flags=method_flags, | ||
# frontend=frontend, | ||
# on_device=on_device, | ||
# ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters