Skip to content

Commit

Permalink
fixing pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
anschaible committed Nov 6, 2024
1 parent 6444210 commit 9f472b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_core_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def __init__(self, coords, velocity, metallicity, mass, age, pixel_assignment):


class MockGasData:
def __init__(self, velocity=None):
self.velocity = velocity
def __init__(self, coords=None):
self.coords = coords


@patch("rubix.core.data.reshape_array")
Expand All @@ -347,7 +347,7 @@ def test_get_reshape_data(mock_reshape_array):
age=jnp.array([4.5, 5.5]),
pixel_assignment=jnp.array([0, 1]),
),
MockGasData(velocity=None),
MockGasData(coords=None),
)

reshaped_data = MockRubixData(
Expand All @@ -359,7 +359,7 @@ def test_get_reshape_data(mock_reshape_array):
age=jnp.array([4.5]),
pixel_assignment=jnp.array([0]),
),
MockGasData(velocity=None),
MockGasData(coords=None),
)

def side_effect(x):
Expand Down

0 comments on commit 9f472b2

Please sign in to comment.