Allow an easy/compatible way to get a second fixture
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the parametrized test example in the issue and inspect how the project currently defines the array_type fixture and uses pytest parametrization. Determine the intended compatible API for supplying a second fixture, then add coverage showing that the resulting test receives both values; the issue is done when this pattern no longer requires the shown workaround.
Written by the indexing model from the issue text.
Description
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:
...
- Dominant language
- Python
- Stars
- 15
- Forks
- 5
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 9
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from scverse/fast-array-utils
-
Difficulty 1/5 1-3 hours Newbie friendliness 74/100
scverse/fast-array-utils#165 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
scverse/fast-array-utils#215 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
scverse/fast-array-utils#213 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
scverse/fast-array-utils#179 · 23 comments ·
-
type: numpy/scipy
Difficulty 5/5 Over a week Newbie friendliness 25/100
scverse/fast-array-utils#128 ·
All issues in scverse/fast-array-utils
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·