Skip to content

Commit

Permalink
Add unit test condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzi committed Jun 3, 2024
1 parent a97de8a commit 0220e06
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,10 @@ def test__shuffle_chunks(soma_experiment: Experiment) -> None:
# note: X values were explicitly set to match obs_joinids to allow for this simple assertion
assert X_values == soma_joinids

# If shuffle_chunk_count is defined, each batch should contain elements from different chunks
batches = [soma_joinids[i : i + 4] for i in range(0, len(all_rows), 4)]
assert any(max(batch) - min(batch) > 3 for batch in batches)


@pytest.mark.experimental
@pytest.mark.skip(reason="Not implemented")
Expand Down

0 comments on commit 0220e06

Please sign in to comment.