Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncomment frontend test files #21947

Merged
merged 11 commits into from
Aug 18, 2023
77 changes: 40 additions & 37 deletions ivy_tests/test_ivy/test_frontends/test_mindspore/test_numpy.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
# global
import pytest
from hypothesis import strategies as st

# local
import ivy_tests.test_ivy.helpers as helpers
from ivy_tests.test_ivy.helpers import handle_frontend_test


# TODO: uncomment after frontend is not required
# to be set as backend in test_frontend_function
# @handle_frontend_test(
# fn_tree="mindspore.numpy.array",
# dtype_and_a=helpers.dtype_and_values(
# available_dtypes=helpers.get_dtypes("numeric"),
# num_arrays=1,
# min_num_dims=0,
# max_num_dims=5,
# min_dim_size=1,
# max_dim_size=5,
# ),
# ndmin=st.integers(min_value=0, max_value=5),
# copy=st.booleans(),
# test_with_out=st.just(False),
# )
# def test_mindspore_array(
# dtype_and_a,
# frontend,
# test_flags,
# fn_tree,
# on_device,
# copy,
# ndmin,
# ):
# dtype, a = dtype_and_a
# helpers.test_frontend_function(
# input_dtypes=dtype,
# frontend=frontend,
# test_flags=test_flags,
# fn_tree=fn_tree,
# on_device=on_device,
# object=a,
# dtype=None,
# copy=copy,
# ndmin=ndmin,
# )
@pytest.mark.skip("Testing pipeline not yet implemented")
@handle_frontend_test(
fn_tree="mindspore.numpy.array",
dtype_and_a=helpers.dtype_and_values(
available_dtypes=helpers.get_dtypes("numeric"),
num_arrays=1,
min_num_dims=0,
max_num_dims=5,
min_dim_size=1,
max_dim_size=5,
),
ndmin=st.integers(min_value=0, max_value=5),
copy=st.booleans(),
test_with_out=st.just(False),
)
def test_mindspore_array(
dtype_and_a,
frontend,
test_flags,
fn_tree,
on_device,
copy,
ndmin,
):
dtype, a = dtype_and_a
helpers.test_frontend_function(
input_dtypes=dtype,
frontend=frontend,
test_flags=test_flags,
fn_tree=fn_tree,
on_device=on_device,
object=a,
dtype=None,
copy=copy,
ndmin=ndmin,
)
Loading
Loading