Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ You can use either traditional pip/venv or the modern uv tool for dependency man
#### Using uv

```bash
# Navigate to model-download service directory
cd microservices/model-download

# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# or
pip install uv

# Create and activate virtual environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_download_success(self, mock_getenv, mock_call_script, ultralytics_plugi

assert result["model_name"] == "yolov8n.pt"
assert result["source"] == "ultralytics"
assert result["return_code"] == 0
assert result["success"] == True
assert "ultralytics" in result["download_path"]

@patch.object(UltralyticsDownloader, '_call_bash_script')
Expand Down Expand Up @@ -246,7 +246,7 @@ def test_download_without_quantization(self, mock_call_script, ultralytics_plugi

assert result["model_name"] == "yolov8n.pt"
assert result["source"] == "ultralytics"
assert result["return_code"] == 0
assert result["success"] == True

@patch.object(UltralyticsDownloader, '_call_bash_script')
@patch('os.getenv')
Expand Down Expand Up @@ -327,7 +327,7 @@ def test_download_different_parameters(self, mock_call_script, ultralytics_plugi
assert mock_call_script.call_count == expected_calls
assert result["model_name"] == model_name
assert result["source"] == "ultralytics"
assert result["return_code"] == 0
assert result["success"] == True

@patch('os.path.exists')
@patch('subprocess.Popen')
Expand Down Expand Up @@ -444,7 +444,7 @@ def test_end_to_end_download_workflow(self, mock_call_script, ultralytics_plugin
# Verify results
assert result["model_name"] == "yolov8n.pt"
assert result["source"] == "ultralytics"
assert result["return_code"] == 0
assert result["success"] == True
assert "ultralytics" in result["download_path"]

# Test post-processing
Expand Down