Commit 1c01450d authored by Luc Yriarte's avatar Luc Yriarte
Browse files

Fix imports in unit tests

parent 81af8aeb
Pipeline #51051 passed with stages
in 11 minutes and 42 seconds
......@@ -4,7 +4,7 @@ from io import BytesIO
from fastapi import HTTPException
from app.model.model_chunking import GetDataParams
from app.bulk_utils import DataFrameRender, get_df_from_request
from app.routers.bulk_utils import DataFrameRender, get_df_from_request
import pandas as pd
from pandas.testing import assert_frame_equal
......
......@@ -60,7 +60,7 @@ def client(nope_logger_fixture):
with mock.patch('app.routers.ddms_v2.logset_ddms_v2.get_storage_record_service', mock_storage):
with mock.patch('app.routers.ddms_v2.logset_ddms_v2.get_search_service', mock_search):
with mock.patch('app.routers.ddms_v2.log_ddms_v2.get_storage_record_service', mock_storage_blob):
with mock.patch('app.record_utils.get_storage_record_service', mock_storage_blob):
with mock.patch('app.routers.record_utils.get_storage_record_service', mock_storage_blob):
wdms_app.dependency_overrides[require_opendes_authorized_user] = bypass_authorization
wdms_app.dependency_overrides[require_data_partition_id] = set_default_partition
client = TestClient(wdms_app)
......
......@@ -33,7 +33,7 @@ from app.auth.auth import require_opendes_authorized_user
from app.middleware import require_data_partition_id
from app.wdms_app import wdms_app, app_injector
from app.utils import Context
from app.record_utils import fetch_record, update_records
from app.routers.record_utils import fetch_record, update_records
from tests.unit.test_utils import create_mock_class, nope_logger_fixture, ctx_fixture
from odes_storage.models import CreateUpdateRecordsResponse, Record
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment