Merge dev to main: Security improvements and comprehensive test infrastructure #39

Merged
jimmy merged 195 commits from dev into main 2026-04-08 01:42:27 +08:00
Showing only changes of commit 0ac0a32781 - Show all commits
+8
View File
@@ -101,11 +101,19 @@ def mock_docker_client():
"""Mock Docker client for testing."""
client = Mock()
# Mock container image
mock_image = Mock()
mock_image.tags = ["test-image:latest"]
mock_image.id = "sha256:abc123def456"
# Mock container
container = Mock()
container.id = "abc123"
container.short_id = "abc123"
container.name = "test-container"
container.status = "running"
container.image = mock_image
container.ports = {"80/tcp": [{"HostPort": "8080"}]}
container.attrs = {
"State": {"Health": {"Status": "healthy"}},
"Config": {"Image": "test-image:latest"}