Skip to content

Commit

Permalink
update test_server
Browse files Browse the repository at this point in the history
Signed-off-by: Huong Nguyen <[email protected]>
  • Loading branch information
Huong Nguyen committed Dec 3, 2024
1 parent e083357 commit d8abbd3
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions package/tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,12 @@ def patched_create_api_app_from_file(mocker):


@pytest.fixture(autouse=True)
def patched_load_data(
mocker, example_catalog, example_pipelines, session_store, example_stats_dict
):
def patched_load_data(mocker, example_catalog, example_pipelines, example_stats_dict):
yield mocker.patch(
"kedro_viz.server.kedro_data_loader.load_data",
return_value=(
example_catalog,
example_pipelines,
session_store,
example_stats_dict,
),
)


@pytest.fixture
def patched_load_data_with_sqlite_session_store(
mocker, example_catalog, example_pipelines, sqlite_session_store, example_stats_dict
):
yield mocker.patch(
"kedro_viz.server.kedro_data_loader.load_data",
return_value=(
example_catalog,
example_pipelines,
sqlite_session_store,
example_stats_dict,
),
)
Expand Down

0 comments on commit d8abbd3

Please sign in to comment.