Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
hainm committed Nov 22, 2024
1 parent 9fd4975 commit b6dc30d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions nglview/tests/test_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@


def get_mocked_traj():
traj = MagicMock()
traj.get_coordinates.return_value = np.random.rand(10, 3, 3)
traj.n_frames = 10
return traj
class MockedTraj(nv.Structure):
def __init__(self):
self.n_frames = 10

def get_coordinates(self, frame):
return np.random.rand(10, 3, 3)

return MockedTraj()


def default_view():
Expand Down

0 comments on commit b6dc30d

Please sign in to comment.