We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
omnipy-wrapped pydantic models
omnipy/tests/modules/remote/test_datasets.py
Line 15 in ae3ed8d
from typing import Annotated import pytest from helpers.protocols import AssertModelOrValFunc from omnipy.modules.remote.datasets import HttpUrlDataset def test_http_url_dataset( assert_model_if_dyn_conv_else_val: Annotated[AssertModelOrValFunc, pytest.fixture]) -> None: urls = HttpUrlDataset() urls['url1'] = 'http://abc.net' # type: ignore[assignment] urls['url2'] = 'https://user:[email protected]/def?ghi=jkl#mno' # type: ignore[assignment] # TODO: Support dynamically_convert_elements_to_models also for accessing members of # omnipy-wrapped pydantic models assert urls['url1'].host == 'abc.net' assert_model_if_dyn_conv_else_val(urls['url2'].query['ghi'], str, 'jkl')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
omnipy-wrapped pydantic models
omnipy/tests/modules/remote/test_datasets.py
Line 15 in ae3ed8d
The text was updated successfully, but these errors were encountered: