Skip to content

Commit

Permalink
remove session store from tests
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 cc50ab6 commit d283fca
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions package/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import pandas as pd
import pytest
from fastapi.testclient import TestClient
from kedro.framework.session.store import BaseSessionStore
from kedro.io import DataCatalog, MemoryDataset, Version
from kedro.pipeline import Pipeline, node
from kedro.pipeline.modular_pipeline import pipeline
Expand Down Expand Up @@ -37,11 +36,6 @@ def data_access_manager():
yield DataAccessManager()


@pytest.fixture
def session_store():
yield BaseSessionStore("dummy_path", "dummy_session_id")


@pytest.fixture
def example_stats_dict():
yield {
Expand Down Expand Up @@ -484,7 +478,6 @@ def example_api(
data_access_manager: DataAccessManager,
example_pipelines: Dict[str, Pipeline],
example_catalog: DataCatalog,
session_store: BaseSessionStore,
example_stats_dict: Dict,
mocker,
):
Expand All @@ -493,7 +486,6 @@ def example_api(
data_access_manager,
example_catalog,
example_pipelines,
session_store,
example_stats_dict,
)
mocker.patch(
Expand All @@ -512,14 +504,11 @@ def example_api_no_default_pipeline(
data_access_manager: DataAccessManager,
example_pipelines: Dict[str, Pipeline],
example_catalog: DataCatalog,
session_store: BaseSessionStore,
mocker,
):
del example_pipelines["__default__"]
api = apps.create_api_app_from_project(mock.MagicMock())
populate_data(
data_access_manager, example_catalog, example_pipelines, session_store, {}
)
populate_data(data_access_manager, example_catalog, example_pipelines, {})
mocker.patch(
"kedro_viz.api.rest.responses.pipelines.data_access_manager",
new=data_access_manager,
Expand All @@ -536,7 +525,6 @@ def example_api_for_edge_case_pipelines(
data_access_manager: DataAccessManager,
edge_case_example_pipelines: Dict[str, Pipeline],
example_catalog: DataCatalog,
session_store: BaseSessionStore,
mocker,
):
api = apps.create_api_app_from_project(mock.MagicMock())
Expand All @@ -552,7 +540,6 @@ def example_api_for_edge_case_pipelines(
data_access_manager,
example_catalog,
edge_case_example_pipelines,
session_store,
{},
)
mocker.patch(
Expand All @@ -571,7 +558,6 @@ def example_api_for_pipelines_with_additional_tags(
data_access_manager: DataAccessManager,
example_pipelines_with_additional_tags: Dict[str, Pipeline],
example_catalog: DataCatalog,
session_store: BaseSessionStore,
mocker,
):
api = apps.create_api_app_from_project(mock.MagicMock())
Expand All @@ -587,7 +573,6 @@ def example_api_for_pipelines_with_additional_tags(
data_access_manager,
example_catalog,
example_pipelines_with_additional_tags,
session_store,
{},
)
mocker.patch(
Expand All @@ -606,15 +591,13 @@ def example_transcoded_api(
data_access_manager: DataAccessManager,
example_transcoded_pipelines: Dict[str, Pipeline],
example_transcoded_catalog: DataCatalog,
session_store: BaseSessionStore,
mocker,
):
api = apps.create_api_app_from_project(mock.MagicMock())
populate_data(
data_access_manager,
example_transcoded_catalog,
example_transcoded_pipelines,
session_store,
{},
)
mocker.patch(
Expand Down

0 comments on commit d283fca

Please sign in to comment.