Skip to content

Commit 6d1ee32

Browse files
committed
fix: add test_dtypes flag to test_frontend function
1 parent 95830b8 commit 6d1ee32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ivy_tests/test_ivy/helpers/function_testing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ def test_frontend_function(
794794
atol: float = 1e-06,
795795
tolerance_dict: Optional[dict] = None,
796796
test_values: bool = True,
797+
test_dtypes: bool = True,
797798
**all_as_kwargs_np,
798799
):
799800
"""Test a frontend function for the current backend by comparing the result
@@ -821,6 +822,8 @@ def test_frontend_function(
821822
dictionary of tolerance values for specific dtypes.
822823
test_values
823824
if True, test for the correctness of the resulting values.
825+
test_dtypes
826+
if True, test for the correctness of the resulting dtypes.
824827
all_as_kwargs_np
825828
input arguments to the function as keyword arguments.
826829
If an input argument has the same name as any other parameter
@@ -1165,6 +1168,7 @@ def test_frontend_function(
11651168
specific_tolerance_dict=tolerance_dict,
11661169
backend=backend_to_test,
11671170
ground_truth_backend=frontend,
1171+
test_dtypes=test_dtypes,
11681172
)
11691173

11701174

0 commit comments

Comments
 (0)