Skip to content

adding missing unit testcases#131

Draft
vipul-mittal wants to merge 2 commits intomainfrom
scratch/testcases
Draft

adding missing unit testcases#131
vipul-mittal wants to merge 2 commits intomainfrom
scratch/testcases

Conversation

@vipul-mittal
Copy link
Copy Markdown
Collaborator

Please go to the Preview tab and select the appropriate sub-template:

@patch("sygra.core.dataset.huggingface_handler.HfFileSystem")
def test_init_creates_hf_filesystem(self, mock_fs_cls):
sc = _make_source_config(token="my_token")
handler = HuggingFaceHandler(source_config=sc)
proc.resumable = False
record = proc._get_record()
self.assertIn("id", record)
self.assertTrue(len(record["id"]) > 0)
import sys
import unittest
from pathlib import Path
from unittest.mock import AsyncMock, MagicMock, patch
import sys
import unittest
from pathlib import Path
from unittest.mock import AsyncMock, MagicMock, patch
import tempfile
import unittest
from pathlib import Path
from unittest.mock import MagicMock, patch
import sys
import unittest
from pathlib import Path
from unittest.mock import MagicMock, patch
Comment on lines +8 to +21
from sygra.utils.model_utils import (
InputType,
OutputType,
detect_input_type,
get_model_capabilities,
get_output_type,
has_audio_input,
has_image_input,
is_gpt4o_audio_model,
should_route_to_image,
should_route_to_speech,
should_route_to_transcription,
validate_input_output_compatibility,
)
import sys
import unittest
from pathlib import Path
from typing import TypedDict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant