File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
services/storage/tests/unit Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1010
1111import pytest
1212from faker import Faker
13+ from fastapi import FastAPI
1314from httpx import AsyncClient
1415from models_library .api_schemas_storage import DatasetMetaDataGet , FileMetaDataGet
1516from models_library .projects import ProjectID
1617from models_library .projects_nodes_io import SimcoreS3FileID
1718from models_library .users import UserID
1819from pydantic import ByteSize , TypeAdapter
1920from pytest_mock import MockerFixture
21+ from pytest_simcore .helpers .httpx_assert_checks import url_from_operation_id
2022from pytest_simcore .helpers .parametrizations import (
2123 byte_size_ids ,
2224 parametrized_file_size ,
2931
3032
3133async def test_list_dataset_files_metadata_with_no_files_returns_empty_array (
34+ initialized_app : FastAPI ,
3235 client : AsyncClient ,
3336 user_id : UserID ,
3437 project_id : ProjectID ,
3538 location_id : int ,
3639):
37- url = URL (f"/v0/locations/{ location_id } /datasets/{ project_id } /metadata" ).with_query (
38- user_id = user_id
39- )
40+ url = url_from_operation_id (
41+ client ,
42+ initialized_app ,
43+ "list_datasets_metadata" ,
44+ location_id = location_id ,
45+ project_id = project_id ,
46+ ).with_query (user_id = user_id )
4047
4148 response = await client .get (f"{ url } " )
4249 assert response .status_code == status .HTTP_200_OK
You can’t perform that action at this time.
0 commit comments