Skip to content

Allow an easy/compatible way to get a second fixture #63

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

Open
flying-sheep opened this issue Mar 17, 2025 · 0 comments
Open

Allow an easy/compatible way to get a second fixture #63

flying-sheep opened this issue Mar 17, 2025 · 0 comments
Labels
parity Any issue needed for feature parity with anndata/scanpy

Comments

@flying-sheep
Copy link
Member

flying-sheep commented Mar 17, 2025

For def test_thing(array_type, target_array_type).

This doesn‘t look great:

@pytest.mark.array_type(skip=NON_BASIC_FLAGS)
@pytest.mark.parametrize(
    "new_array_type", [t for t in SUPPORTED_TYPES if not (t.flags & NON_BASIC_FLAGS)]
)
def test_setter_view(
    array_type: ArrayType[np.ndarray | CSMatrix | CSArray],
    new_array_type: ArrayType[np.ndarray | CSMatrix | CSArray],
) -> None:
    ...
@flying-sheep flying-sheep added the parity Any issue needed for feature parity with anndata/scanpy label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parity Any issue needed for feature parity with anndata/scanpy
Projects
None yet
Development

No branches or pull requests

1 participant