Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent b755efa commit 9d4b3b0
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions tests/test_GeoJupyterViz.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,23 @@ def test_geojupyterviz_function(
mock_use_state.return_value = ({}, MagicMock())
mock_use_memo.return_value = MagicMock()
mock_make_initial_grid_layout.return_value = {}

mock_rv_Card.return_value.__enter__ = MagicMock()
mock_rv_Card.return_value.__exit__ = MagicMock()

solara.render(GeoJupyterViz(
model_class=model_class,
model_params=model_params,
measures=measures,
name=name,
agent_portrayal=agent_portrayal,
play_interval=play_interval,
view=view,
zoom=zoom,
center_point=center_point,
))
solara.render(
GeoJupyterViz(
model_class=model_class,
model_params=model_params,
measures=measures,
name=name,
agent_portrayal=agent_portrayal,
play_interval=play_interval,
view=view,
zoom=zoom,
center_point=center_point,
)
)

mock_AppBar.assert_called_once()
mock_AppBarTitle.assert_called_once_with(name)
Expand Down

0 comments on commit 9d4b3b0

Please sign in to comment.