Skip to content

gh-1152: Test any xp with cosmo fixture - #1257

Merged
connoraird merged 3 commits into
mainfrom
connor/test-all-xp-with-cosmo
Oct 16, 2026
Merged

connoraird merged 3 commits into
mainfrom
connor/test-all-xp-with-cosmo

Conversation

@connoraird

@connoraird connoraird commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Description

Refs: #1152

Checks

  • Is your code passing linting?
  • Is your code passing tests?
  • Have you added additional tests (if required)?
  • Have you modified/extended the documentation (if required)?
  • Have you added a one-liner changelog entry above (if required)?

@connoraird connoraird self-assigned this Oct 15, 2026
@connoraird connoraird added the array-api Work is related to the Array API label Oct 15, 2026
@connoraird
connoraird requested a review from paddyroddy October 15, 2026 11:30
Comment thread tests/fixtures/domain.py
emulates the potential setup of the user who may use a Cosmology
library which is not array api compatible.
"""
return MockCosmology(np)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me extract the fixture bit from #1232 first, so we can be consistent

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we be able to merge #1232 before we finish?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready #1259

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt it for #1232 😢

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update with the changes from #1259

@connoraird
connoraird force-pushed the connor/test-all-xp-with-cosmo branch from d4333ae to ccde4a9 Compare October 15, 2026 15:47
@connoraird
connoraird requested a review from paddyroddy October 15, 2026 15:49
Comment thread tests/fixtures/domain.py
Comment on lines 57 to -44
library which is not array api compatible.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This blank lines looks weird but it has been the format we have been using. Should in theory always be there.

@connoraird
connoraird merged commit 925d221 into main Oct 16, 2026
14 checks passed
@connoraird
connoraird deleted the connor/test-all-xp-with-cosmo branch October 16, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

array-api Work is related to the Array API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants