Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Nov 28, 2024
1 parent d19359d commit 7414f6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

from glass import RadialWindow

# Handling of array backends, inspired by-
# https://github.com/scipy/scipy/blob/36e349b6afbea057cb713fc314296f10d55194cc/scipy/conftest.py#L139

# environment variable to specify array backends for testing
# can be:
# a particular array library (numpy, jax, array_api_strict, ...)
Expand Down Expand Up @@ -96,6 +99,7 @@ def _import_and_add_jax(xp_available_backends: dict[str, types.ModuleType]) -> N
array_api_compatible = pytest.mark.parametrize("xp", xp_available_backends.values())


# Pytest fixtures
@pytest.fixture(scope="session")
def cosmo() -> Cosmology:
class MockCosmology:
Expand Down

0 comments on commit 7414f6e

Please sign in to comment.