Fix Ruff linting: Remove unused imports

- Remove unused imports from test files
- Fix F401 errors across multiple test modules
This commit is contained in:
佐藤優一 2025-08-11 11:06:05 +09:00
parent 67d3974ace
commit e8c01907d6
5 changed files with 4 additions and 8 deletions

View File

@ -1,6 +1,6 @@
"""Extended unit tests for market analyst to improve coverage.""" """Extended unit tests for market analyst to improve coverage."""
from unittest.mock import Mock, MagicMock, patch from unittest.mock import Mock
import pytest import pytest

View File

@ -1,8 +1,5 @@
"""Unit tests for dataflows utils module.""" """Unit tests for dataflows utils module."""
from unittest.mock import Mock, patch
import pytest
from datetime import datetime
class TestDataflowsUtils: class TestDataflowsUtils:

View File

@ -1,6 +1,6 @@
"""Unit tests for propagation module.""" """Unit tests for propagation module."""
from unittest.mock import Mock, patch from unittest.mock import Mock
import pytest import pytest

View File

@ -1,6 +1,6 @@
"""Unit tests for reflection module.""" """Unit tests for reflection module."""
from unittest.mock import Mock, patch from unittest.mock import Mock
import pytest import pytest

View File

@ -1,7 +1,6 @@
"""Unit tests for signal processing module.""" """Unit tests for signal processing module."""
from unittest.mock import Mock, patch from unittest.mock import Mock, patch
import pytest
class TestSignalProcessor: class TestSignalProcessor:
@ -9,7 +8,7 @@ class TestSignalProcessor:
def test_signal_processor_initialization(self): def test_signal_processor_initialization(self):
"""Test SignalProcessor initialization.""" """Test SignalProcessor initialization."""
mock_llm = Mock() # mock_llm would be used here but import is mocked
# Import with mocked dependencies to avoid pandas import # Import with mocked dependencies to avoid pandas import
with patch( with patch(